Compare commits

...

2 Commits

Author SHA1 Message Date
5e15f19c48 Commented out duplicated commands 2024-09-08 00:43:29 +01:00
ec3a26041f Removed root-config script 2024-09-08 00:43:07 +01:00
2 changed files with 13 additions and 36 deletions

View File

@ -1,23 +0,0 @@
#!/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
# 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
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw limit ssh
sudo ufw enable
# sudo ufw default deny incoming
# sudo ufw default allow outgoing
# sudo ufw limit ssh
# sudo ufw enable
# Update ClamAV
sudo freshclam
# 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
# 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
# sudo systemctl enable sshd.service
# Run hBlock
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
@ -27,8 +27,8 @@ sudo systemctl enable sddm.service
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
# yay -S apparmor.d-git
# sudo systemctl enable apparmor.service
# Prompt the user to reboot
echo "Install complete, please reboot"
# Cleanup: Remove ~/install