-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharch-uefi.html
More file actions
372 lines (351 loc) · 11.4 KB
/
Copy patharch-uefi.html
File metadata and controls
372 lines (351 loc) · 11.4 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
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Install Arch Linux in UEFI system</title>
<link rel="shortcut icon" href="../img/arch.png" type="image/x-icon">
<link rel="stylesheet" href="../css/arch-install.css">
</head>
<body>
<style>
body {
background-color: black;
color:white;
}
</style>
<meta name="viewport" content="480*800, user-scalable=yes">
<meta name="viewport" content="480*854, user-scalable=yes">
<meta name="viewport" content="1024*600, user-scalable=yes">
<meta name="viewport" content="1280*800, user-scalable=yes">
<meta name="viewport" content="1280*720, user-scalable=yes">
<a href="index.html" style="text-decoration: none;font-family: monospace;"><p class="head" style="color: white; font-size: 30px;">SpaceLegion<span style="color: aqua;">.wiki</span></p></a>
<br>
<br>
<p style="font-family:'monospace'"><strong>After booting into Arch iso</strong>
<br>
<br>
1 <em># ping stallman.org</em> (to check internet connectivity)
<br>
<br>
2 <em># timedatectl set-ntp true</em> (to ensure the system clock is accurate)
<br>
<br>
3 <em># lsblk</em> (to list all partitions with drives)
<br>
<br>
4 <em># cfdisk /dev/sda</em> (your hardisk name)
<br>
<br>
<br>
<strong> For a basic partition.</strong>
<br>
=====================
<br>
<br>
EFI System partition (/dev/sda1) with 512M size, FAT32 formatted.
<br>
<br>
Root partition (/dev/sda2) with at least 20G size or rest of HDD space, ext4 formatted.
<br>
<br>
Home directory is optional.
<br>
<br>
=> Select new type the partition size in MB (512M) and press enter key, select Type from the bottom menu and choose EFI
<br>
<br>
=> For /(root) partition use the following configuration: New -> Size: rest of free space -> Type Linux filesystem.
<br>
<br>
Then select Write, answer with yes in order to apply disk changes and then Quit the utility
<br>
<br>
Type lsblk to review your changes.
<br>
<br>
<br>
5 <em># mkfs.fat -F32 /dev/sda1</em> (creates a FAT32 file system for EFI System partition)
<br>
<br>
6 <em># mkfs.ext4 /dev/sda2</em> (create the EXT4 file system for the root partition)
<br>
<br>
--------------------------------------------------------------------------
<br>
<br>
<em># mkfs.ext4 /dev/sdX</em>
<br>
<br>
<em># mkdir /mnt/home</em>
<br>
<br>
<em># mount /dev/sdX /mnt/home</em> - optional, if you need home partition
<br>
<br>
--------------------------------------------------------------------------
<br>
<br>
7 <em># mount /dev/sda2 /mnt</em> (In order to install Arch Linux, the /(root) partition must be mounted to /mnt directory mount point)
<br>
<br>
8 <em># mkdir -p /mnt/boot/efi</em> (making directory for EFI installation)
<br>
<br>
9 <em># mount /dev/sda1 /mnt/boot/efi</em> (mounting efi for installation)
<br>
<br>
10 <em># pacman -Syy</em> (to sync)
<br>
<br>
11 <em># pacstrap /mnt base base-devel linux linux-firmware vim</em> (installs base system, base development tools, linux kernel, firmware, cli editor)
<br>
<br>
12 <em># genfstab -U /mnt >> /mnt/etc/fstab</em> (generates fstab file for your new Linux system)
<br>
<br>
<strong>Arch Linux System configuration</strong>
<br>
===============================
<br>
<br>
13 <em># arch-chroot /mnt</em> (chroots into /mnt the system path)
<br>
<br>
14 <em># ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</em> (configure your region and city, This is an example)
<br>
<br>
15 <em># hwclock --systohc</em> (configure the hardware clock to use UTC, the hardware clock is usually set to the local time)
<br>
<br>
16 <em># vim /etc/locale.gen</em> (Configuring your system Language. Choose and uncomment your preferred encoding languages from /etc/locale.gen)
<br>
<br>
In this scenario- "en_US.UTF-8 UTF-8", "en_US ISO-8859-1"
<br>
<br>
17 <em># locale-gen</em> (Generates your system language layout)
<br>
<br>
18 <em># echo LANG=en_US.UTF-8 >> /etc/locale.conf</em> (This assigns english as default language)
<br>
<br>
19 <em># echo Arch Linux >> /etc/hostname</em> (type a name for your host, eg: Archlinux)
<br>
<br>
20 <em># passwd</em> (create a password for root user)
<br>
<br>
21 <em># pacman -S grub efibootmgr networkmanager</em> (installs grub, efibootmgr for uefi system and network manager)
<br>
<br>
22 <em># grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB</em> (installs grub)
<br>
<br>
23 <em># grub-mkconfig -o /boot/grub/grub.cfg</em> (creating GRUB configuration file)
<br>
<br>
24 <em># systemctl enable NetworkManager</em> (enabling it from boot itself)
<br>
<br>
25 <em># useradd -mG wheel "username"</em> (creates a user account with sudo permissions)
<br>
<br>
26 <em># passwd "username"</em> (create a password for user account)
<br>
<br>
27 <em># EDITOR=vim visudo</em> (adding user account to sudoers group)
<br>
<br>
uncomment "%wheel ALL=(ALL) ALL" Then save and exit
<br>
<br>
28 <em># exit</em> (exiting chroot environment)
<br>
<br>
29 <em># umount -R /mnt</em> (This will unmount drives)
<br>
<br>
30 <em># reboot</em>
<br>
<br>
<strong>The base installation has been finished</strong>
<br>
***************************************
<br>
<br>
Setting up your desktop
<br>
=======================
<br>
<br>
24 # <em>pacman -S xorg</em> (display server)
<br>
<br>
Installing Graphics drivers
<br>
===========================
<br>
If you're installing Arch in VirtualBox you should install the VirtualBox Guest Additions. The VirtualBox Guest Additions contain the video drivers, You can install the guest additions from the Arch repositories
<br>
<br>
# <em>pacman -S linux-headers</em>
<br>
# <em>pacman -S virtualbox-guest-utils</em>
<br>
# <em>systemctl enable vboxservice</em>
<br>
<br>
For AMD GPU
<br>
===========
<br>
# <em>pacman -S xf86-video-amdgpu</em>
<br>
# <em>pacman -S xf86-video-ati</em> (older cards only)
<br>
<br>
For Intel
<br>
=========
<br>
# <em>pacman -S xf86-video-intel</em> (Warning, If you are planning to install cinnamon destop environment, skip this driver install)
<br>
<br>
For Nvidia
<br>
==========
<br>
# <em>pacman -S xf86-video-nouveau</em>
<br>
# <em>pacman -S nvidia</em> (This is a properietary driver)
<br>
<br>
Installing a desktop environment
<br>
================================
<br>
<br>
Listed below are most of the popular desktop environments and their associated packages. Pick the one you like and install it!
<br>
<br>
* XFCE- <em>xfce4 xfce4-goodies</em>
<br>
* GNOME- <em>gnome gnome-extra</em>
<br>
* KDE- <em>plasma kde-applications</em>
<br>
* Cinnamon- <em>cinnamon</em>
<br>
* MATE- <em>mate mate-extra</em>
<br>
* LXDE- <em>lxde</em>
<br>
* LXQt- <em>lxqt</em>
<br>
<br>
Note:- For the GTK-based desktops (XFCE, GNOME, Cinnamon, MATE and LXDE), you'll want to install gvfs alongside the desktop to get
wastebasket and mounting support for regular users. Install gvfs-mtp as well if you're planning to connect your Android phone.
<br>
<br>
Cinnamon as an example:
<br>
======================
<br>
<br>
# <em>pacman -S cinnamon gvfs gvfs-mtp gnome-terminal gnome-screenshot blueberry </em>
<br>
<br>
(gvfs & gvfs-mtp- Mounting support for android devices, terminal for linux terminal emulator, screenshot for there purpose, blueberry for bluetooth adapter)
<br>
<br>
Installing and setting up a Display Manager
<br>
===========================================
<br>
XFCE- <em>lightdm gdm</em>
<br>
GNOME- <em>gdm lightdm</em>
<br>
KDE- <em>sddm</em>
<br>
LXDE- <em>lightdm</em>
<br>
LXQt- <em>sddm</em>
<br>
<br>
LightDM as an example:
<br>
=====================
<br>
<br>
# <em>pacman -S lightdm lightdm-webkit2-greeter</em>
<br>
# <em>sudo nano /etc/lightdm/lightdm.conf</em> (uncomment greeter-sessions)
<br>
<br>
rename it to <em>greeter-sessions=lightdm-webkit2-greeter</em>
<br>
<br>
To enable it from boot
<br>
======================
<br>
<br>
# <em>systemctl enable lightdm</em>
<br>
<br>
For Audio
<br>
=========
<br>
Pulseaudio is recommended. To install:-
<br>
<br>
# <em>pacman -S pulseaudio pulseaudio-alsa pavucontrol</em>
<br>
<br>
Recommended Common Packages
<br>
===========================
<br>
<br>
# <em>pacman -S ntfs-3g git celluloid vlc rhythmbox feh xed chromium firefox gvfs gvfs-mtp </em>
<br>
<br>
(ntfs-3g- support for ntfs drives, git- git tools, celluloid- video player, Vlc- video player, rhythmbox- muisc player, feh- image viewer, xed- text editor, chromium & firefox- browsers,gvfs & gvfs-mtp- Mounting support for android devices)
<br>
<br>
25 # reboot
<br>
<br>
<strong>Extras:-</strong> If your mirrors are slow you can change it by using the following command, reflector package is required.
<br>
<br>
# <em>pacman -S reflector </em>
<br>
<br>
# <em>reflector --verbose --latest 50 --sort rate --save /etc/spacman.d/mirrorlist</em> (Add all mirrors generated from the arch linux official website.)
<br>
<br>
<strong>
<a href="https://www.archlinux.org/mirrorlist/all/"style="color:green"; text-decoration:none;>Arch linux Mirrors</a>
</strong>
<br>
<br>
# <em>reflector --verbose --country 'Canada' -l 5 --sort rate --save /etc/pacman.d/mirrorlist</em>
<br>
<br>
Retrieves top five mirrors of Canada according to the download rate, and save them to the mirrorlist file.
<br>
<br>
<strong>Extras:-</strong> opening tty- Alt+control+F2, closing tty- Alt+control+F7
<br>
<br>
<strong>Bonus:-</strong> Cinnamon DE recommendations - lightdm-slick-greeter lightdm-settings (edit it from /etc/lightdm/lightdm.conf,modify value of greeter-session) (from yay), arc-gtk-theme papirus-icon-theme (pacman)
<br>
<br>
By <strong> <a href="https://github.com/nebulaxyz"style="color:yellow"; text-decoration:none;>Nebulaxyz</a></strong>
</p>
</body>
</html>