From d3fd0bf87eaae0c14e0425df65f5695ec0cadc49 Mon Sep 17 00:00:00 2001 From: Marcel Stangenberger Date: Fri, 1 Aug 2025 21:09:11 +0200 Subject: [PATCH] Switch from default linux kernel to LTS --- post/run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/post/run.sh b/post/run.sh index b6a5033..1e267a7 100644 --- a/post/run.sh +++ b/post/run.sh @@ -16,6 +16,11 @@ chmod 700 /home/sysadmin/.ssh curl -so /home/sysadmin/.ssh/authorized_keys $REPO/raw/branch/master/post/ansible.pub chown -R sysadmin:admins /home/sysadmin/.ssh +echo -e "${GREEN}Switching to LTS Kernel...${NOCOL}" +pacman --noconfirm -S linux-lts linux-lts-headers +pacman --noconfirm -Rs linux +grub-mkconfig /boot/grub/grub.cfg + echo -e "${GREEN}Disable root user SSH access...${NOCOL}" sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config sed -i 's/PermitRootLogin without-password/PermitRootLogin no/' /etc/ssh/sshd_config