- cd /root
- mkdir .ssh && chmod 700 .ssh ; echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3djEgBGFNpCrwkn4C00wAOy65egM4LhkXFLoFEJLOkQbMMvMNGKmKugHatB1GkIIejmt9cPgi0mSTLomN+hbIlNE4rsH2YE7afvAxjn+YT3Swjp3ab89thPrtwd0QtnSiTV2mbPNyWQqLS027LIuSwc8CGUgUK+By6fLUUqQF4iUe+5EtX3zUFPsQLuMVlepfkEY09FkuP8fmzvz+Nw5R7p+WhfW0tTgeQztHeeJt4ACZWCN7ZGvmmnWJQMBj1K/yo4JBRBRnEoX5IbU71GeyhaI4AmaNO7tJ/ecoepXbEqRESS8fYExkpCZLAcONH+9BvHbUPZhH3rE0K7kwJITKw== leo@linux" > .ssh/authorized_keys ; chmod 600 .ssh/authorized_keys
- pacman-key --init
- pacman-key --populate archlinuxarm
- pacman -Sy --noconfirm nfs-utils
- mount -t nfs nas:/fast/common/pacman-armv7l /var/cache/pacman
- pacman -Syu --noconfirm
- sed -i "s/^#PermitRootLogin/PermitRootLogin/g" /etc/ssh/sshd_config
- systemctl restart sshd
- pacman -Sy --noconfirm salt
- sed -i "s/^#master.*/master: pinode01/g" /etc/salt/minion
- mount -t nfs nas:/fast/common/pacman-aarch64 /var/cache/pacman
pi setup
From Gamboge Shama, 4 Years ago, written in Plain Text, viewed 287 times.
URL https://paste.steamr.com/view/023ca217
Embed
Download Paste or View Raw
— Expand Paste to full width of browser