|
@@ -1,7 +1,9 @@
|
|
#!/usr/bin/bash -x
|
|
#!/usr/bin/bash -x
|
|
|
|
|
|
# re-secure ssh
|
|
# re-secure ssh
|
|
|
|
+sed -i "/^#\?PasswordAuthentication/d" /etc/ssh/sshd_config
|
|
sed -i "/^#\?PermitRootLogin/d" /etc/ssh/sshd_config
|
|
sed -i "/^#\?PermitRootLogin/d" /etc/ssh/sshd_config
|
|
|
|
+echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
|
|
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
|
|
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
|
|
|
|
|
|
# VirtualBox Guest Additions
|
|
# VirtualBox Guest Additions
|
|
@@ -14,9 +16,4 @@ systemctl enable rpcbind.service
|
|
|
|
|
|
# Clean the pacman cache.
|
|
# Clean the pacman cache.
|
|
yes | pacman -Scc
|
|
yes | pacman -Scc
|
|
-
|
|
|
|
-# Write zeros to improve virtual disk compaction.
|
|
|
|
-zerofile=$(mktemp /zerofile.XXXXX)
|
|
|
|
-dd if=/dev/zero of="$zerofile" bs=1M
|
|
|
|
-rm -f "$zerofile"
|
|
|
|
sync
|
|
sync
|