-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpchroot.sh
26 lines (21 loc) · 854 Bytes
/
pchroot.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
#!/bin/bash
echo "Enter the Region"
read -r regiona
echo "Enter the City"
read -r citya
echo "Enter the Region"
read -r regiona
echo "Enter the City"
read -r citya
ln -sf /usr/share/zoneinfo/"$regiona"/"$citya" /etc/localtime && echo "Region Set OK";
hwclock --systohc && pacman -Sy linux linux-firmware nano glibc make git wpa_supplicant dhcpcd grub efibootmgr os-prober connman-openrc connman-gtk xorg xorg-xinit && rc-update add connmand && echo "Time set, preliminary utils installed";
nano /etc/locale.gen; locale-gen && export LANG="en_US.UTF-8" ; export LC_COLLATE="C";
mkinitcpio -P && grub-mkconfig -o /boot/grub/grub.cfg &&
echo "Type Your Password (Root Acc)";
passwd &&
echo "Type your user name"
read -r umonk
useradd -m -g users "$umonk" &&
echo "Type password";
passwd "$umonk" && echo "Installation Compelete...Exiting Chroot";
exit