Compare commits

..

No commits in common. "5e15f19c482453fd1b701b1f9e3bb5255500fa86" and "b594e2ce0f471142c261eaf482acb18671e53a1e" have entirely different histories.

2 changed files with 36 additions and 13 deletions

23
scripts/1-root-config.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/sh
# Install NVIDIA driver
echo "Installing GPU drivers"
pacman -S --noconfirm nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings
# Tweak systemd.conf and enable services for proper suspend/resume
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1" >> /lib/modprobe.d/systemd.conf
systemctl enable nvidia-suspend.service
systemctl enable nvidia-hibernate.service
systemctl enable nvidia-resume.service
# Required to enable network changes
sysctl --system
# Install essential utilities
pacman -S --noconfirm yay ufw clamav hblock apparmor
# Move user script and associated files and change ownership to the new user
mkdir /home/$user/install
cp /buildscripts/2-* /home/$user/install
cp /userfiles/* /home/$user/install
chown -R $user:$user /home/$user/install
# Prompt the user to reboot
echo "Install complete, please reboot"
# Cleanup: Remove /buildscripts and /userfiles
rm -rf /buildscripts
rm -rf /userfiles

View File

@ -1,22 +1,22 @@
#!/bin/sh #!/bin/sh
# Run grub-mkconfig again to detect Windows install # Run grub-mkconfig again to detect Windows install
#sudo grub-mkconfig -o /boot/grub/grub.cfg sudo grub-mkconfig -o /boot/grub/grub.cfg
# Configure and enable UFW # Configure and enable UFW
# sudo ufw default deny incoming sudo ufw default deny incoming
# sudo ufw default allow outgoing sudo ufw default allow outgoing
# sudo ufw limit ssh sudo ufw limit ssh
# sudo ufw enable sudo ufw enable
# Update ClamAV # Update ClamAV
# sudo freshclam sudo freshclam
# Enable ClamAV and UFW to run at startup # Enable ClamAV and UFW to run at startup
# sudo systemctl enable clamav-freshclam.service sudo systemctl enable clamav-freshclam.service
# sudo systemctl enable clamav-daemon.service sudo systemctl enable clamav-daemon.service
# sudo systemctl enable ufw.service sudo systemctl enable ufw.service
# Enable SSHD now firewall has been configured # Enable SSHD now firewall has been configured
# sudo systemctl enable sshd.service sudo systemctl enable sshd.service
# Run hBlock # Run hBlock
# hblock hblock
# Install the noto fonts library # Install the noto fonts library
sudo pacman -S --noconfirm noto-fonts noto-fonts-cjk noto-fonts-emoji sudo pacman -S --noconfirm noto-fonts noto-fonts-cjk noto-fonts-emoji
# Install KDE Plasma, SDDM and essential utilities # Install KDE Plasma, SDDM and essential utilities
@ -27,8 +27,8 @@ sudo systemctl enable sddm.service
mkdir -p ~/.config/fontconfig/conf.d mkdir -p ~/.config/fontconfig/conf.d
mv install/user-fonts.conf ~/.config/fontconfig/conf.d/60-assign-preferred-fonts.conf 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 # Install the apparmor.d-git package from the AUR and start the service
# yay -S apparmor.d-git yay -S apparmor.d-git
# sudo systemctl enable apparmor.service sudo systemctl enable apparmor.service
# Prompt the user to reboot # Prompt the user to reboot
echo "Install complete, please reboot" echo "Install complete, please reboot"
# Cleanup: Remove ~/install # Cleanup: Remove ~/install