-
Notifications
You must be signed in to change notification settings - Fork 0
/
InstallPt2.sh
executable file
·112 lines (66 loc) · 2.34 KB
/
InstallPt2.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/bin/env bash
# File : InstallPt2.sh
echo "--------------------------------------------------------------------------------------------------------------------------"
echo ""
echo " ARCH CHROOT "
echo ""
echo "---------------------------------------------------------------------------------------------------------------------------"
echo "TIME ZONE"
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
echo Run hwclock to generate /etc/adjtime
sleep 1
hwclock --systohc
echo "Localization "
echo Uncomment en_US.UTF-8 UTF-8
sleep 4
cp locale.gen /etc/
echo "TO GENERATE LOCALE"
sleep 4
locale-gen
echo "Create The Locale.conf and set Lang Accordingly "
cp locale.conf /etc/
cat /etc/locale.conf
sleep 3
echo ""
echo "CREATE HOSTNAME FILE "
cp hostname /etc/
cat /etc/hostname
sleep 4
echo "CREATE HOSTS FILE "
cp hosts /etc/
cat /etc/hosts
sleep 4
echo "---------------------------------------------------"
echo ""
echo " ENTER ROOT PASSWORD : "
echo ""
echo "---------------------------------------------------"
passwd
echo "---------------------------------------------------------------------------------------------"
echo " BOOTLOADER "
echo ""
echo "----------------------------------------------------------------------------------------------"
pacman -S grub efibootmgr os-prober
os-prober
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=Arch
mkdir /mnt2
fdisk -l
read -p "Enter Name Of the EFI Partition [for example /dev/sda1 ] : " efi_part
mount $efi_part /mnt2
grub-mkconfig -o /boot/grub/grub.cfg
echo "------------------------------------------------------------------------------------------"
echo ""
echo " MICROCODE "
echo ""
echo "-------------------------------------------------------------------------------------------"
echo For Intel Processors
pacman -S intel-ucode
grub-mkconfig -o /boot/grub/grub.cfg
echo "------------------------------------------------------------------------------------------------------------------------"
echo ""
echo " REBOOT "
echo ""
echo "----------------------------------------------------------------------------------------------------------------------------"
systemctl enable NetworkManager.service
echo Reboot now
echo Enter exit or ctrl-d , then enter reboot and then remove the installation media