mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-24 18:41:33 -05:00
Update install.sh
This commit is contained in:
parent
a776ec585b
commit
1862d6bdcf
13
install.sh
13
install.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user