Krolyxon
Commit 93299df

Branches

Refs →

arch-installarch_install.md

129 lines · 2.1 KB · Markdown

1# Arch Install
2
3## Connect to Internet
4If you are using wifi, use [iwd](https://wiki.archlinux.org/title/Iwd)
5```
6device list
7station *device* get-networks
8station *d
9```
10
11## Install Guide
12
131. Turn on parallel downloads
14``sed -i "s/^#ParallelDownloads = 5$/ParallelDownloads = 15/" /etc/pacman.conf``
15
162. Install archlinux keyring
17``pacman --noconfirm -Sy archlinux-keyring``
18
193. Load layout, set time
20```
21loadkeys us
22timedatectl set-ntp true
23```
24
254. Create ext4, efi, swap partition
26```
27lsblk
28cfdisk /dev/sdx or /dev/nvme0x
29
30# Efi partition
31mkfs.fat -F32 $efipartition
32
33# Swap partition
34mkswap $swappartition
35swapon $swappartition
36
37# ext4 partition
38mkfs.ext4 $partition
39```
40
415. Mount linux partition to /mnt
42``mount $partition /mnt``
43
446. Pacstrap
45```
46pacstrap /mnt base base-devel linux linux-firmware
47```
48
497. genstab
50```
51genfstab -U /mnt >> /mnt/etc/fstab
52```
53
548. chroot
55```
56arch-chroot /mnt
57```
58
599. set timezone
60```
61ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
62```
63
6410. set hardware clock from system clock
65```
66hwclock --systohc
67```
68
6911. set locale
70```
71echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
72locale-gen
73echo "LANG=en_US.UTF-8" > /etc/locale.conf
74echo "KEYMAP=us" > /etc/vconsole.conf
75```
76
7712. set hostname
78```
79echo $hostname > /etc/hostname
80echo "127.0.0.1 localhost" >> /etc/hosts
81echo "::1 localhost" >> /etc/hosts
82echo "127.0.1.1 $hostname.localdomain $hostname" >> /etc/hosts
83```
84
8513. Initramfs
86```
87mkinitcpio -P
88```
89
9014. Set root password
91```
92passwd
93```
94
9515. install grub
96```
97pacman --noconfirm -S grub efibootmgr os-prober
98mkdir /boot/efi
99mount $efipartition /boot/efi
100
101grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=archlinux --recheck
102
103sed -i 's/quiet/pci=noaer/g' /etc/default/grub
104sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub
105
106grub-mkconfig -o /boot/grub/grub.cfg
107```
108
10916. Install all the required user packages
110```
111pacman -S --noconfirm networkmanager git
112```
113
11417. Enable networkmanager
115```
116systemctl enable NetworkManager.service
117```
118
11918. Set user permissions
120```
121echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers
122```
123
12419. Create user
125```
126useradd -m -G wheel -s /bin/zsh $username
127passwd $username
128```
129