-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-arch.sh
55 lines (51 loc) · 1.26 KB
/
install-arch.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
#!/bin/bash
drive=/dev/sda
hostname=new-arch-box
user=alex
passwd=password
echo "--------------------------"
echo "- Welcome to -"
echo "- Alex Kinch's -"
echo "- Arch Install -"
echo "- script! -"
echo "--------------------------"
sleep 1
echo -e "\nYou will need to know what drive to install Arch Linux on."
echo "If it is not /dev/sda, you will need to change the script."
sleep 1
fdisk ${drive} << EOF
o
n
p
1
-2G
n
p
2
a
1
t
2
82
p
w
q
EOF
echo -e "\nDrive $drive was formatted!"
mkfs.ext4 ${drive}1
mkswap ${drive}2
swapon ${drive}2
mount ${drive}1 /mnt
echo -e "\nSwap activated and drive mounted!"
timedatectl set-ntp true
timedatectl status
echo -e "\nTime and date set!"
echo -e "\nInstalling base system..."
sleep 1
pacstrap /mnt base linux linux-firmware nano vim sudo base-devel git wget networkmanager dhcpcd grub xorg-server xf86-video-vesa xorg-xinit neofetch openbox tint2 nitrogen gdm firefox konsole xterm mpv thunar dolphin picom inkscape gimp cmatrix lynx lolcat cowsay
echo -e "\nBase system installed!"
genfstab -U /mnt >> /mnt/etc/fstab
echo -e "\nFstab configured!"
cp install-arch2.sh /mnt/
echo -e "\nYou will have to type ./install-arch2.sh to continue."
arch-chroot /mnt