|
2 | 2 |
|
3 | 3 | *The basis for this tutorial is [this one](https://sollus-soft.blogspot.com/2017/01/arch-linux-windows-10-uefi-systemd-boot.html)* |
4 | 4 |
|
| 5 | +Always keep tabs on this [extended official tutorial](https://wiki.archlinux.org/index.php/installation_guide). |
| 6 | + |
5 | 7 | ## Preparing |
6 | 8 | First of all, install arch ISO on your USB stick. [Here](https://www.archlinux.org/download/) you can find an official image. |
7 | 9 |
|
@@ -62,22 +64,32 @@ Now format partition and mount them. Root: |
62 | 64 | mkfs.ext4 /dev/sda{root number} -L "ARCH" |
63 | 65 | mount /dev/sda{root number} /mnt |
64 | 66 | ``` |
| 67 | + |
65 | 68 | Boot: |
66 | 69 | ``` |
67 | 70 | mkdir -p /mnt/boot |
68 | 71 | mkfs.fat -F32 /dev/sda{boot number} |
69 | 72 | mount /dev/sda{boot number} /mnt/boot |
70 | 73 | ``` |
| 74 | + |
71 | 75 | Or just mount Windows EFI partition, if you didn't create new one |
72 | 76 | ``` |
73 | 77 | mount /dev/sda{windows boot number} /mnt/boot |
74 | 78 | ``` |
| 79 | + |
75 | 80 | Swap: |
76 | 81 | ``` |
77 | 82 | mkswap /dev/sda{swap num} |
78 | 83 | swapon /dev/sda{swap num} |
79 | 84 | ``` |
80 | 85 |
|
| 86 | +Home: |
| 87 | +``` |
| 88 | +mkdir -p /mnt/home |
| 89 | +mkfs.ext4 /dev/sda{home number} -L "home" |
| 90 | +mount /dev/sda{home number} /mnt/home |
| 91 | +``` |
| 92 | + |
81 | 93 | Now let's update pacman: `pacman -Syy` |
82 | 94 |
|
83 | 95 | Install base system and packet for future AUR using: `pacstrap /mnt base linux linux-firmware base-devel linux-headers` |
@@ -111,23 +123,26 @@ en_US.UTF-8 UTF-8 |
111 | 123 | ru_RU.UTF-8 UTF-8 |
112 | 124 | uk_UA.UTF-8 UTF-8 |
113 | 125 | ``` |
114 | | -Don't forget to save |
| 126 | +Don't forget to save and actually generate the locales: |
| 127 | +``` |
| 128 | +locale-gen |
| 129 | +``` |
115 | 130 |
|
116 | | -Adjust time zone and time : |
| 131 | +Adjust time zone and time: |
117 | 132 | ``` |
118 | 133 | ln -sf /usr/share/zoneinfo/Europe/Kiev /etc/localtime |
119 | 134 | hwclock --systohc |
120 | 135 | ``` |
121 | 136 |
|
122 | | -Adjust the name of the computer: `vim /etc/hostname` and write there _"userhost - YOUR_USERNAME"_ |
| 137 | +Adjust the name of the computer: `vim /etc/hostname` and write there _"YOUR_HOSTNAME"_ |
123 | 138 |
|
124 | 139 | Adjust hosts: `vim /etc/hosts` and write there -_"127.0.0.1 pavlik_giley.localdomain YOUR_USERNAME"-_ |
125 | 140 | DONT FORGET TO SAVE EVERYTHING |
126 | 141 |
|
127 | 142 | Password for root: `passwd` |
128 | 143 |
|
129 | 144 | Add new user: `useradd -G wheel -s /bin/bash -m YOUR_USERNAME`, and give him sudo permissions: `vim /etc/sudoers` |
130 | | -and uncomment _"%wheel ALL=(ALL) ALL"_ |
| 145 | +and uncomment `%wheel ALL=(ALL) ALL` |
131 | 146 |
|
132 | 147 | user's password: `passwd YOUR_USERNAME` |
133 | 148 |
|
|
0 commit comments