-
Notifications
You must be signed in to change notification settings - Fork 2
/
install-part2-unprotected.sh
54 lines (43 loc) · 1.43 KB
/
install-part2-unprotected.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
# Install Part 2 script.
# Set variables below for hostnames and other shit.
HOSTNAME=provisioned-system
INSTALLDRIVE=/dev/sda
MIRROR=https://raw.githubusercontent.com/Colean128/CAPS/master
#MIRROR=https://ap.colean.cc/m
FINALISE=gnome
GRAPHICSVENDOR=amd
AURHELPER=pacaur
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
hwclock --systohc
echo Set clock using timezone.
rm /etc/locale.gen
echo en_GB.UTF-8 UTF-8 >> /etc/locale.gen
echo en_GB ISO-8859-1 >> /etc/locale.gen
echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
echo en_US ISO-8859-1 >> /etc/locale.gen
locale-gen
echo Generated locales.
rm /etc/locale.conf
echo LANG=en_GB.UTF-8 >> /etc/locale.conf
echo Set locale.
rm /etc/vconsole.conf
echo KEYMAP=uk >> /etc/vconsole.conf
echo Permanently set UK keymap.
echo $HOSTNAME >> /etc/hostname
echo Set hostname to ${HOSTNAME}.
echo 127.0.0.1 localhost >> /etc/hosts
echo ::1 localhost >> /etc/hosts
echo 127.0.1.1 ${HOSTNAME}.localdomain ${HOSTNAME} >> /etc/hosts
echo Hosts folder set.
pacman -Syu grub
echo Installed GRUB package.
grub-install --target=i386-pc $INSTALLDRIVE
grub-mkconfig -o /boot/grub/grub.cfg
echo Installed GRUB.
echo Enter password for root.
passwd root
curl -L ${MIRROR}/${FINALISE}-finalise.sh >> finalise.sh
curl -L ${MIRROR}/${GRAPHICSVENDOR}-gpudrivers.sh >> gpudrivers.sh
curl -L ${MIRROR}/${AURHELPER}-aurhelper.sh >> aurhelper.sh
echo exit the chroot and reboot the machine.
echo Run systemctl start NetworkManager