summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup-arch-vm5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup-arch-vm b/setup-arch-vm
index 0c0a275..b722924 100644
--- a/setup-arch-vm
+++ b/setup-arch-vm
@@ -22,7 +22,7 @@ cat <<EOF >/etc/pacman.d/mirrorlist
Server = http://mirror.server-speed.net/\$repo/os/\$arch
EOF
-pacstrap /mnt base syslinux sudo openssh haveged htop git
+pacstrap /mnt base syslinux sudo openssh haveged htop git zsh screen dnsutils
genfstab -p /mnt >> /mnt/etc/fstab
echo "archvm" > /mnt/etc/hostname
ln -s /usr/share/zoneinfo/Europe/Athens /mnt/etc/localtime
@@ -70,6 +70,9 @@ chmod 600 /mnt/home/$newuser/.ssh/authorized_keys
arch-chroot /mnt chown -R $newuser:users /home/$newuser/.ssh
arch-chroot /mnt passwd -d $newuser
+curl https://git.server-speed.net/users/flo/bin/plain/init_new_user.sh | arch-chroot /mnt sudo -u $newuser bash
+arch-chroot /mnt chsh -s /bin/zsh $newuser
+
arch-chroot /mnt systemctl enable sshd multi-user.target haveged dhcpcd.service
sync