-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_arch.txt
More file actions
133 lines (108 loc) · 2.25 KB
/
install_arch.txt
File metadata and controls
133 lines (108 loc) · 2.25 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
1) Normal Way Method
#Check signature
gpg --keyserver-options auto-key-retrieve --verify archlinux-version-x86_64.iso.sig
#Keyboard Layout
ls /usr/share/kbd/keymaps/**/*.map.gz
#Veriffy boot mode
ls /sys/firmware/efi/efivars
#Internet
ip link
Wifi - authenticate to the wireless network using iwctl
ping archlinux.org
#System clock
timedatectl set-ntp true
timedatectl status
#Partition the disks
fdisk -l
fdisk /dev/the_disk_to_be_partitioned
mkfs.vfat /dev/sda1 (EFI Partition)
mkfs.ext4 /dev/root_partition (Disk)
mkswap /dev/swap_partition
swapon /dev/swap_partition
OR
lsblk
cfdisk
#Mount partition
mount /dev/root_partitiontition /mnt
#EFI Mount Partition
mount /dev/sda2 (Disk) /mnt
mkdir /mnt/boot
mount /dev/sda1 (EFI) /mnt/boot
#Mirrors
nano /etc/pacman.d/mirrorlist
Select the mirrors to be used, remove unecessary one
#Install the base system
pacstrap /mnt base linux linux-firmware
#Configuration
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
(EFI) bootctl install
(EFI) cd /boot/
(EFI) ls -l
(EFI) cd loader && ls
(EFI) vim loader.conf
(INSERT)
default arch
timeout 4
(END)
(EFI) cd entries/
(EFI) vim arch.conf
(INSERT)
title Archlinux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=<Bunch of number> rw
(COMMAND) :r !blkid
(NOTES) Get PARTUUID of /dev/sda2 (DISK)
#Time Zone
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc
#Localisation
nano /etc/locale.gen
locale-gen
touch /etc/locale.conf
nano /etc/locale.conf
INSERT
LANG=en_US.UTF-8
END
#Keyboard Layout
/etc/vconsole.conf
KEYMAP=de-latin1
#Network Configurationon
nano /etc/hostname
INSERT
linux
END
nano /etc/hosts
INSERT
127.0.0.1 localhost
::1 localhost
127.0.1.1 linux.localdomain linux
#Root password
passwd
INSERT your password
#Post-configuration
pacman -S dhcpcd dhcp
systemctl enable dhcpcd
useradd -m linux
passwd linux
pacman -S sudo
usermod -aG wheel,audio,video,optical,storage linux
groups linux
pacman -S vim
visudo
UNCOMMENT %wheel ALL=(ALL) ALL
#GRUB
pacman -S grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit
#Reboot YAY!
pacman -S base-devel
git clone https://aur.archlinux.org/yay-git.git
cd yay-git/
makepkg -si
2) Lazy Method
pacman -Sy
pacman -S wget pacman-contrib
wget archfi.sf.net/archfi