packer.sh 634 B

12345678910111213141516171819
  1. #!/usr/bin/bash -x
  2. # re-secure ssh
  3. sed -i "/^#\?PasswordAuthentication/d" /etc/ssh/sshd_config
  4. sed -i "/^#\?PermitRootLogin/d" /etc/ssh/sshd_config
  5. echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
  6. echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
  7. # VirtualBox Guest Additions
  8. # https://wiki.archlinux.org/index.php/VirtualBox
  9. pacman -S --noconfirm linux-headers virtualbox-guest-utils virtualbox-guest-modules-arch nfs-utils
  10. echo -e 'vboxguest\nvboxsf\nvboxvideo' > /etc/modules-load.d/virtualbox.conf
  11. systemctl enable vboxservice.service
  12. systemctl enable rpcbind.service
  13. # Clean the pacman cache.
  14. yes | pacman -Scc
  15. sync