mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-21 17:11:34 -05:00
Added services.
This commit is contained in:
parent
ee00b01d01
commit
e5f1a7968e
21
easy-arch.sh
21
easy-arch.sh
@ -132,9 +132,10 @@ chmod 600 /mnt/swap/swapfile
|
|||||||
mkswap /mnt/swap/swapfile
|
mkswap /mnt/swap/swapfile
|
||||||
swapon /mnt/swap/swapfile
|
swapon /mnt/swap/swapfile
|
||||||
echo "/swap/swapfile none swap defaults 0 0" >> /mnt/etc/fstab
|
echo "/swap/swapfile none swap defaults 0 0" >> /mnt/etc/fstab
|
||||||
|
|
||||||
|
|
||||||
|
# Configuring the system.
|
||||||
arch-chroot /mnt /bin/bash -xe <<"EOF"
|
arch-chroot /mnt /bin/bash -xe <<"EOF"
|
||||||
|
|
||||||
# Setting up clock.
|
# Setting up clock.
|
||||||
hwclock --systohc
|
hwclock --systohc
|
||||||
|
|
||||||
@ -149,7 +150,17 @@ arch-chroot /mnt /bin/bash -xe <<"EOF"
|
|||||||
|
|
||||||
# Creating grub config file.
|
# Creating grub config file.
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
# Create user
|
EOF
|
||||||
useradd -m user
|
|
||||||
EOF
|
# Setting root password.
|
||||||
|
print "Setting root password."
|
||||||
|
arch-chroot /mnt /bin/passwd
|
||||||
|
|
||||||
|
# Enabling auto-trimming.
|
||||||
|
echo "Enabling auto-trimming."
|
||||||
|
systemctl enable fstrim.timer --root=/mnt
|
||||||
|
|
||||||
|
# Enabling NetworkManager.
|
||||||
|
echo "Enabling NetworkManager."
|
||||||
|
systemctl enable NetworkManager --root=/mnt
|
Loading…
Reference in New Issue
Block a user