pi setup

From Gamboge Shama, 4 Years ago, written in Plain Text, viewed 263 times.
URL https://paste.steamr.com/view/023ca217 Embed
Download Paste or View Raw
  1. cd /root
  2. 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
  3. pacman-key --init
  4. pacman-key --populate archlinuxarm
  5. pacman -Sy --noconfirm nfs-utils
  6. mount -t nfs nas:/fast/common/pacman-armv7l /var/cache/pacman
  7. pacman -Syu --noconfirm
  8. sed -i "s/^#PermitRootLogin/PermitRootLogin/g" /etc/ssh/sshd_config
  9. systemctl restart sshd
  10.  
  11. pacman -Sy --noconfirm salt
  12. sed -i "s/^#master.*/master: pinode01/g" /etc/salt/minion
  13.  
  14.  
  15.  
  16. mount -t nfs nas:/fast/common/pacman-aarch64 /var/cache/pacman

Reply to "pi setup"

Here you can reply to the paste above