1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-22 01:21:34 -05:00

Update install.sh

This commit is contained in:
TommyTran732 2021-07-01 05:19:51 -04:00 committed by tommytran732
parent a776ec585b
commit 1862d6bdcf
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -259,7 +259,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
mkdir /.snapshots mkdir /.snapshots
mount -a mount -a
chmod 750 /.snapshots chmod 750 /.snapshots
systemctl enable grub-btrfs.path
# Installing GRUB. # Installing GRUB.
echo "Installing GRUB on /boot." echo "Installing GRUB on /boot."
@ -276,28 +275,36 @@ echo "Setting root password."
arch-chroot /mnt /bin/passwd arch-chroot /mnt /bin/passwd
# Enabling auto-trimming service. # Enabling auto-trimming service.
echo "Enabling auto-trimming."
systemctl enable fstrim.timer --root=/mnt &>/dev/null systemctl enable fstrim.timer --root=/mnt &>/dev/null
# Enabling NetworkManager service. # Enabling NetworkManager service.
echo "Enabling NetworkManager." echo "Enabling NetworkManager"
systemctl enable NetworkManager --root=/mnt &>/dev/null systemctl enable NetworkManager --root=/mnt &>/dev/null
# Enabling GDM. # Enabling GDM.
systemctl enable gdm --root=/mnt &>/dev/null systemctl enable gdm --root=/mnt &>/dev/null
# Enabling AppArmor. # Enabling AppArmor.
echo "Enabling AppArmor."
systemctl enable apparmor --root=/mnt &>/dev/null systemctl enable apparmor --root=/mnt &>/dev/null
# Enabling Firewalld. # Enabling Firewalld.
echo "Enabling Firewalld."
systemctl enable firewalld --root=/mnt &>/dev/null systemctl enable firewalld --root=/mnt &>/dev/null
# Enabling Bluetooth Service (If you don't want bluetooth, disable it with GNOME, don't disable the service). # Enabling Bluetooth Service (If you don't want bluetooth, disable it with GNOME, don't disable the service).
systemctl enable bluetooth --root=/mnt &>/dev/null systemctl enable bluetooth --root=/mnt &>/dev/null
# Enabling Reflector timer. # Enabling Reflector timer.
echo "Enabling Reflector."
systemctl enable reflector.timer --root=/mnt &>/dev/null systemctl enable reflector.timer --root=/mnt &>/dev/null
# Enabling Snapper automatic snapshots.
echo "Enabling Snapper and automatic snapshots entries."
systemctl enable snapper-timeline.timer --root=/mnt &>/dev/null
systemctl enable snapper-cleanup.timer --root=/mnt &>/dev/null
systemctl enable grub-btrfs.path --root=/mnt &>/dev/null
# Setting umask to 077. # Setting umask to 077.
sed -i 's/022/077/g' /mnt/etc/profile sed -i 's/022/077/g' /mnt/etc/profile
echo "" >> /mnt/etc/bash.bashrc echo "" >> /mnt/etc/bash.bashrc