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
2024-09-07 23:43:29 +00:00
#sudo grub-mkconfig -o /boot/grub/grub.cfg
2024-05-23 16:49:21 +00:00
# Configure and enable UFW
2024-09-07 23:43:29 +00:00
# sudo ufw default deny incoming
# sudo ufw default allow outgoing
# sudo ufw limit ssh
# sudo ufw enable
2024-05-23 16:49:21 +00:00
# Update ClamAV
2024-09-07 23:43:29 +00:00
# sudo freshclam
2024-05-23 16:49:21 +00:00
# Enable ClamAV and UFW to run at startup
2024-09-07 23:43:29 +00:00
# sudo systemctl enable clamav-freshclam.service
# sudo systemctl enable clamav-daemon.service
# sudo systemctl enable ufw.service
2024-05-23 16:49:21 +00:00
# Enable SSHD now firewall has been configured
2024-09-07 23:43:29 +00:00
# sudo systemctl enable sshd.service
2024-05-23 16:49:21 +00:00
# Run hBlock
2024-09-07 23:43:29 +00:00
# hblock
2024-05-23 16:49:21 +00:00
# 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
2024-09-07 23:43:29 +00:00
# yay -S apparmor.d-git
# sudo systemctl enable apparmor.service
2024-05-23 16:49:21 +00:00
# Prompt the user to reboot
echo "Install complete, please reboot"
# Cleanup: Remove ~/install
rm -rf ~/install