setup/scripts/2-user-config.sh

35 lines
1.2 KiB
Bash
Raw Normal View History

2024-05-23 16:49:21 +00:00
#!/bin/sh
# Run grub-mkconfig again to detect Windows install
sudo grub-mkconfig -o /boot/grub/grub.cfg
# Configure and enable UFW
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw limit ssh
sudo ufw enable
# Update ClamAV
sudo freshclam
# Enable ClamAV and UFW to run at startup
sudo systemctl enable clamav-freshclam.service
sudo systemctl enable clamav-daemon.service
sudo systemctl enable ufw.service
# Enable SSHD now firewall has been configured
sudo systemctl enable sshd.service
# Run hBlock
hblock
# Install the noto fonts library
sudo pacman -S --noconfirm noto-fonts noto-fonts-cjk noto-fonts-emoji
# Install KDE Plasma, SDDM and essential utilities
sudo pacman -S --noconfirm $(cat install/user-kde-package-list.txt)
# Enable SDDM as the display manager
sudo systemctl enable sddm.service
# Create the fontconfig directory and copy the
mkdir -p ~/.config/fontconfig/conf.d
mv install/user-fonts.conf ~/.config/fontconfig/conf.d/60-assign-preferred-fonts.conf
# Install the apparmor.d-git package from the AUR and start the service
yay -S apparmor.d-git
sudo systemctl enable apparmor.service
# Prompt the user to reboot
echo "Install complete, please reboot"
# Cleanup: Remove ~/install
rm -rf ~/install