aboutsummaryrefslogtreecommitdiffstats
path: root/learn/English
blob: 18362d87429479fe416688cca641928eb023e1a4 (plain)
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
# Arch Linux Fast Install (archfi)
# --------------------------------
# project    : https://github.com/MatMoul/archfi
# language   : English
# translator : matmoul (pseudo, name or e-mail.)
# notes      : misc text...


learnsetkeymap="Set keyboard layout for installation.
\n-------------------------------------
\n
\nBefore start, is best to configure your keyboard.
\nUse the next command to list available keymap :
\nlocalectl list-keymaps
\n
\nAnd to apply your keymap :
\nloadkeys en"

learnreboot="Reboot.
\n-------
\n
\nTo reboot, use the next command :
\nreboot"

learndiskpart="Disk Partitions.
\n----------------
\n
\nTo install Arch Linux, you need to partion your disk.
\nIt has many schemas to format a drive (See the doc for more).
\n
\nIf you don't know how to partion your disk, you can auto partition with dos, gpt or gpt+efi table :
\n - dos     : recommanded for old computer
\n - gpt     : for disk larger than 2Tb
\n - gpt+efi : for EFI computer
"

learndiskpartautodos="Auto partition dos.
\n-------------------
\n
\nAuto partition make this next partitions :
\n - boot 512Mb (linux type) (bootable flag)
\n - swap RAM Size (swap type)
\n - root Free Space (linux type)
"

learndiskpartautogpt="Auto partition gpt.
\n-------------------
\n
\nAuto partition make this next partitions :
\n - bios 31Mb (BIOS boot type)
\n - boot 512Mb (linux type)
\n - swap RAM Size (swap type)
\n - root Free Space (linux type)
"

learndiskpartautoefi="Auto partition gpt,efi.
\n-----------------------
\n
\nAuto partition make this next partitions :
\n - boot 1024Mb (EFI boot type)
\n - swap RAM Size (swap type)
\n - root Free Space (linux type)
"

learndiskpartautoefiusb="Auto partition gpt,bios+efi.
\n----------------------------
\n
\nUse this option for USB Key.
\n
\nAuto partition make this next partitions :
\n - boot 1024Mb (EFI boot type)
\n - bios 31Mb (BIOS boot type / Hybrid MBR)
\n - root Free Space (linux type)
"

learndiskpartcfdisk="Partition Tools : cfdisk
\n------------------------
\n
\ncfdisk is primary maked to edit dos disk.
\n
\nTo enum available drives, use the next command :
\nlsblk -d -p -n -l -o NAME -e 7,11
\n
\nTo edit partition on the desired drive :
\ncfdisk /dev/sdX"

learndiskpartcgdisk="Partition Tools : cgdisk
\n------------------------
\n
\ncgdisk is primary maked to edit gpt disk.
\n
\nTo enum available drives, use the next command :
\nlsblk -d -p -n -l -o NAME -e 7,11
\n
\nTo edit partition on the desired drive :
\ncgdisk /dev/sdX"

learnselectparts="Select install partitions.
\n--------------------------
\n
\nTo enum available partitions, use the next command :
\nlsblk -d -p -n -l -o NAME -e 7,11
\n
\nTo install Arch Linux, select a least one root partition :
\nOptionaly you can select :
\n - A boot partition
\n - A swap partition
\n - A home partition"

learnformatbootdevice="Format boot partition.
\n----------------------
\n
\nFor this partitions, you can choose many format.
\n
\nWith this wizard, you can choose the next format :
\n - ext2     : mkfs.ext2 /dev/sdX
\n - ext3     : mkfs.ext3 /dev/sdX
\n - ext4     : mkfs.ext4 /dev/sdX
\n
\nYou need to learn which format is best for you.
\next2 is a good choice."

learnformatswapdevice="Format swap partition.
\n----------------------
\n
\nTo format swap partition, use the next command :
\nmkswap /dev/sdX"

learnformatdevice="Format root or home partition.
\n------------------------------
\n
\nFor this partitions, you can choose many format.
\n - btrfs    : mkfs.btrfs -f /dev/sdX
\n - reiserfs : mkfs.reiserfs -f /dev/sdX
\n - ext4     : mkfs.ext4 /dev/sdX
\n - ext3     : mkfs.ext3 /dev/sdX
\n - ext2     : mkfs.ext2 /dev/sdX
\n - jfs      : mkfs.jfs -f /dev/sdX
\n - xfs      : mkfs.xfs -f /dev/sdX
\n
\nYou need to learn which format is best for you.
\nbtrfs is a good choice because it work fine with snapper for snapshot (It's a good recovery method)."

learnmountparts="Mount partitions.
\n-----------------
\n
\nTo install Arch Linux, you need to mount selected partitions.
\n
\nFirst mount root device in /mnt :
\nmount /dev/sdX /mnt
\n
\nMake child directories :
\nmkdir /mnt/{boot,home}
\n
\nIf you have a boot partition, mount it in /mnt/boot :
\nmount /dev/sdX /mtn/boot
\n
\nIf you have a swap partition, enable it :
\nswapon /dev/sdX
\n
\nIf you have a home partition, mount it in /mnt/home :
\nmount /dev/sdX /mnt/home"

learninstallbase="Install base packages.
\n----------------------
\n
\nTo install Arch Linux just use the next command :
\npacstrap /mnt base"

learnunmountdevices="Unmount partitions.
\n-------------------
\n
\nWhen operation on new install is terminated, you need to unmount partitions in /mnt.
\nUse the next command :
\numount -R /mnt
\n
\nif you have selected a swap partition, disable it with the next command :
\nswapoff /dev/sdX"

learnarchsetkeymap="Set keyboard layout for the new installation.
\n---------------------------------------------
\n
\nUse the next command for list available keymap :
\nlocalectl list-keymaps
\n
\nAnd to apply the desired keymap :
\necho ""KEYMAP=en"" > /mnt/etc/vconsole.conf"

learnarchsethostname="Set computer name for the new installation.
\n-------------------------------------------
\n
\nTo set your computer name just write it to /etc/hostname with :
\necho ""computer_name"" > /etc/hostname"

learnarchsetlocale="Set locale for the new installation.""
\n------------------------------------
\n
\nFor this, use the next command to enum available locales :
\nls /usr/share/i18n/locales
\n
\nAnd for apply selection (add .UTF-8 to the selection) :
\necho ""LANG=en_US.UTF-8"" > /mnt/etc/locale.conf
\necho ""LC_COLLATE=C"" >> /mnt/etc/locale.conf
\n
\nDon't miss to uncomment your locale in /mnt/etc/locale.gen
\nsed -i '/en_US.UTF-8/s/^#//g' /mnt/etc/locale.gen
\nor
\nnano /mnt/etc/locale.gen
\n
\nNow chroot the new installation and call locale-gen
\narch-chroot /mnt
\nlocale-gen
\nexit"

learnarchsettime="Set time for new installation.
\n------------------------------
\n
\nFor this, use the next command to enum available locale :
\nls -l /mnt/usr/share/zoneinfo
\nls -l /mnt/usr/share/zoneinfo/[zone]
\n
\nMake a symlink from the selection to /mnt/etc/localtime :
\nln -sf /usr/share/zoneinfo/America/New_York /mnt/etc/localtime
\n
\nNow chroot the new installation and set the hardware clock
\narch-chroot /mnt
\n
\nFor utc harware clock, use the next command :
\nhwclock --systohc --utc
\n
\nFor localtime harware clock, use the next command (if you use a dual boot with Windows) :
\nhwclock --systohc --localtime"

learnarchsetrootpassword="Set root password.
\n------------------
\n
\nNow you need to set root password, for this enter chroot and call passwd root :
\narch-chroot /mnt
\npasswd root
\nexit"

learnarchgenfstab="Generate fstab.
\n---------------
\n
\nTo write mounted partition in the installation fstab, use the next command :
\ngenfstab -U -p /mnt >> /mnt/etc/fstab"

learnarchinstallgrub="Install Grub.
\n-------------
\n
\nNow you need a bootloader.
\nFor this, Grub is a great bootloader.
\n
\nFirstly install grub package
\nFor this, use the next command :
\npacstrap /mnt grub
\n
\nTo make configuration, you need to chroot the new installation and call the next commands :
\narch-chroot /mnt
\ngrub-mkconfig -o /boot/grub/grub.cfg
\nexit"

learnarchinstallbootloader="Install Bootloader.
\n-------------------
\n
\nBefore reboot, you need to make bootable your drive.
\n
\nTo install Grub in your MBR, chroot the new installation and call the next commands for bios install:
\narch-chroot /mnt
\ngrub-install --recheck /dev/sdX
\n\nand for EFI install :
\ngrub-install --target=x86_64-efi --efi-directory=/boot --recheck /dev/sdX
\n\nand if you make a USB key, you can choose BIOS+EFI but you need the correct partitions.
\nexit"

learnarchenabledhcpcd="Enable dhcpd.
\n-------------
\n
\nWhen boot the new install, dhcpcd is not enabled by default.
\nTo enable it and get your network connected at boot, enable it with the next command in chroot :
\n
\narch-chroot /mnt
\nsystemctl enable dhcpcd
\nexit"