-
Notifications
You must be signed in to change notification settings - Fork 0
/
2-root-setup.sh
33 lines (33 loc) · 1.36 KB
/
2-root-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
read -p "->] Buat Restore Point Awal Install (y/n) : " shi
rm -rf /mnt/arch-install
source arch-install/install.conf
echo "--------------------------------------------------------"
echo -e " Enabling Login Display Manager"
arch-chroot /mnt sed -i 's/^# MAX_SIZE/MAX_SIZE/' /etc/default/zramd
arch-chroot /mnt sed -i 's/^8192/${zramd}/' /etc/default/zramd
if pacman -Qqe | grep -E "sddm"; then
arch-chroot /mnt systemctl enable sddm.service
echo -e "\nSetup SDDM Theme"
cat <<EOF > /mnt/etc/sddm.conf
[Theme]
Current=Nordic
EOF
elif pacman -Qqe | grep -E "lightdm"; then
arch-chroot /mnt systemctl enable lightdm
fi
arch-chroot /mnt systemctl enable cups
arch-chroot /mnt systemctl enable zramd
arch-chroot /mnt systemctl enable ntpd.service
arch-chroot /mnt systemctl disable dhcpcd.service
arch-chroot /mnt systemctl stop dhcpcd.service
arch-chroot /mnt systemctl enable NetworkManager.service
arch-chroot /mnt systemctl enable bluetooth
arch-chroot /mnt echo "--------------------------------------------------------"
cp -rf arch-install/xorg.conf /mnt/etc/X11/
case $shi in
y|Y|yes|Yes|YES)
echo "--------------------------------------------------------"
echo "=== Membuat Restore Point 2"
echo "--------------------------------------------------------"
arch-chroot /mnt timeshift --create --comments "Awal Install [BASE INSTALL + PACKAGES & CONFIGURATION]"
esac