-
Notifications
You must be signed in to change notification settings - Fork 0
/
arch.html
232 lines (194 loc) · 5.26 KB
/
arch.html
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Gunnar Halvorsen</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel='stylesheet' type='text/css' href='style.css'>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='alternate' type='application/rss+xml' title='Gunnar Halvorsen RSS' href='/rss.xml'>
</head>
<body>
<header>
<h1>Installasjonsguide for GNU/Linux</h1>
</header>
<nav><ul>
<a href="index.html"><li>🏡 Hjem</li></a>
<a href="linux.html"><li>🐧 GNU/Linux</li></a>
<a href="nvimr.html"><li><img src="pix/vim.png" alt="Vim logo"> EDB</li></a>
<a href="bibliotek.html"><li>📚 Ymse</li></a>
<a href="https://gitlab.com/ghalv"><li><img src="pix/git.svg" alt="Github logo"> GitLab</li></a>
</ul></nav>
<main>
<h2>Arch Linux, BIOS</h2>
<hr />
<a href="linux.html">Artix Linux</a>
|
<a href="arch.html">Arch Linux</a>
|
<a href="arch32.html">Arch Linux 32</a>
<hr />
<a href="#forbered">1 - forbered</a>
|
<a href="#installer">2 - installer</a>
|
<a href="#konfigurer">3 - konfigurer</a>
|
<a href="#personlig">4 - personliggjør</a>
<hr />
ISO: <a href="https://archlinux.uib.no/iso/2021.10.01/archlinux-2021.10.01-x86_64.iso">Arch Linux 10.01 x86_64</a><br />
Guide: <a href="https://wiki.archlinux.org/title/Installation_guide">text</a>
/ <a href="https://youtu.be/4PBqpX0_UOc">video</a>
<pre># dd bs=4M if=sti/til/arch.iso of=/dev/sdx status=progress oflag=sync
</pre>
<h2 id="forbered">1. FORBERED SYSTEMET</h2>
1.1. Bytt til norsk tastaturoppsett
<pre># loadkeys no-latin1
</pre>
1.2. Koble til internett - ping gjerne en url
<pre># <a href="https://wiki.archlinux.org/title/Wpa_supplicant#Connecting_with_wpa_cli">wpa_cli</a>
# ping -c 4 www.nrk.no
</pre>
1.3. Oppdater systemklokke
<pre># timedatectl set-ntp true
</pre>
1.4. List opp lagringsenheter og identifiser måldisk
<pre># lsblk
</pre>
1.5. Partisjonér måldisk med hhv. "boot", "swap", "root" og "home"
<div class="codebox">
<code>
/boot +200M<br />
/swap +1.5xRAM<br />
/root +40G<br />
/home +resterende<br />
</code>
</div>
<pre># fdisk /dev/sda
</pre>
1.6. Formatér partisjonene
<pre># mkfs.ext4 /dev/sda1
# mkfs.ext4 /dev/sda3
# mkfs.ext4 /dev/sda4
</pre>
1.7. Formatér og montér swap
<pre># mkswap /dev/sda2
# swapon /dev/sda2
</pre>
1.8. Opprett systemmapper
<pre># mkdir /mnt/boot
# mkdir /mnt/home
</pre>
1.9. Montér filsystem
<pre># mount /dev/sda3 /mnt
# mount /dev/sda1 /mnt/boot
# mount /dev/sda4 /mnt/home
</pre>
1.10. Kontrollér
<pre># lsblk
</pre>
<h2 id="installer">2. INSTALLÉR SYSTEMET</h2>
2.1. Velg norsk <a href="https://archlinux.org/mirrorlist/">speil</a>
<pre>/etc/pacman.d/mirrorlist
<hr />
##
## Arch Linux repository mirrorlist
## Generated on 2019-11-15
##
## Norway
Server = http://archlinux.uib.no/$repo/os/$arch
Server = http://mirror.archlinux.no/$repo/os/$arch
Server = http://mirror.neuf.no/archlinux/$repo/os/$arch
Server = https://mirror.neuf.no/archlinux/$repo/os/$arch
Server = http://mirror.terrahost.no/linux/archlinux/$repo/os/$arch
</pre>
<br />
2.2. Installér Arch Linux og essensielle pakker I
<pre># pacstrap /mnt base base-devel linux linux-firmware vim dialog
</pre>
2.3. Angi hvilke partisjoner som skal monteres ved oppstart
<pre># genfstab -U /mnt >> /mnt/etc/fstab
</pre>
2.4. Gå inn i ny installasjon
<pre># arch-chroot /mnt
</pre>
<h2 id="konfigurer">3. KONFIGURÉR SYSTEMET</h2>
<h3>3.1 LOKALE INSTILLINGER</h3><br />
3.1.1. Angi tidssone og sett <i>adjtime</i>
<pre># ln -sf /usr/share/zoneinfo/Europe/Oslo /etc/localtime
# hwclock --systohc
</pre>
3.1.2. Angi korrekt visning av klokkeslett, dato og valuta
<pre>/etc/locale.gen
<hr />
en_DK.UTF-8 UTF-8
en_DK ISO-8859-1
</pre>
<pre># locale-gen
</pre>
3.1.3. Angi språk
<pre>/etc/locale.conf
<hr />
LANG=en_DK.UTF-8
</pre>
<br />
3.1.4. Angi tastaturoppsett
<pre>/etc/vconsole.conf
<hr />
KEYMAP=no-latin1
</pre>
<br />
3.1.5. Angi systemnavn
<pre># vim /etc/hostname
</pre>
<h3>3.2 GENERELLE INSTILLINGER</h3><br />
3.2.1. Installér essensielle pakker II
<pre># pacman -S networkmanager network-manager-applet xorg-server xorg-xinit grub dmenu ttf-inconsolata noto-fonts git
</pre>
3.2.2. Aktiver nettverksdemon
<pre># systemctl enable NetworkManager
</pre>
3.2.3. Installér og konfigurér grub
<pre># grub-install --target=i386-pc /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
</pre>
3.2.4. Sett rot-passord
<pre># passwd
</pre>
<!--
3.2.5. Gå ut av ny installasjon
<pre># exit
</pre>
3.2.6. Avmontér partisjoner
<pre># umount -R /mnt
</pre>
3.2.7. Omstart
<pre># reboot
</pre>
-->
<h2 id="personlig">4. PERSONLIGGJØR SYSTEMET</h2>
4.1.A. Kjør skript for installasjon av <a href="progs.csv">programmer</a> og personlige instillinger.
<pre># curl -LO ghalv.no/linux.sh
# bash linux.sh <!-- larbs.sh -r https://gitlab.com/ghalvorsen/dotfiles -p ghalv.no/progs.csv -->
</pre>
4.1B. Opprett personlig bruker
<pre># useradd -m -G wheel gunnar
# passwd gunnar
</pre>
4.2B. Gi rot-tilgang
<pre># vim /etc/sudoers
</pre>
4.3B. Last ned window manager
<pre># git clone https://gitlab.com/ghalvorsen/dwm
# cd dwm
# make clean install
</pre>
4.4B. Konfigurer WM
<pre>~/.xinitrc
<hr />
exec dwm
</pre>
</main>
<footer><a href="https://ghalv.no">https://ghalv.no</a></footer>
</body>
</html>