Added service enabling

This commit is contained in:
2025-07-30 14:20:31 +02:00
parent 30f38e1c7f
commit a990818ea0

View File

@@ -20,16 +20,19 @@ 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
echo -e "${GREEN}Configuring and enabling default firewall...${NOCOL}"
echo -e "${GREEN}Configuring default firewall...${NOCOL}"
curl -so /etc/iptables/iptables.rules $REPO/raw/branch/master/post/iptables.rules
curl -so /etc/iptables/ip6tables.rules $REPO/raw/branch/master/post/ip6tables.rules
systemctl enable iptables
systemctl enable ip6tables
echo -e "${GREEN}Install minimal required packages...${NOCOL}"
pacman --noconfirm -S cronie rsync iftop htop bash-completion iotop lsof screen fastfetch neovim man-db inetutils base-devel git networkmanager
ln -s /usr/bin/nvim /usr/bin/vi
echo -e "${GREEN}Activating required services...${NOCOL}"
systemctl enable iptables
systemctl enable ip6tables
systemctl enable NetworkManager
systemctl enable cronie
echo -e "${GREEN}Setup motd default...${NOCOL}"
echo "" > /etc/motd