commit 9d024f89052ef1e1b38fd5f96388c17a57d7b7f9
parent 22b3e7a8a22078bcdc90873ade24155124672da8
Author: Julian Piribauer <julian.piribauer@gmail.com>
Date: Thu, 19 Feb 2026 21:15:30 +0100
Using console language
Diffstat:
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/arch_install.md b/arch_install.md
@@ -6,7 +6,7 @@ This installation method was tested Lenovo's X200s and T420.
We assume a working ethernet connection.
After booting into the Arch linux USB stick, we enable network time synchronisation:
-```bash
+```console
# timedatectl set-ntp true
```
@@ -20,7 +20,7 @@ Since we will use a swap file, no swap partition will be necessary for us.
For simplicity, we will assume installation on /dev/sda.
Using parted, the commands are
-```bash
+```console
# parted /dev/sda
```
@@ -35,35 +35,35 @@ quit
Then, we encrypt the second partition and give it the name "crypt":
-```bash
+```console
# cryptsetup luksFormat /dev/sda2
# cryptsetup open /dev/sda2 crypt
```
We initialise a physical volume with a volume group "vg":
-```bash
+```console
# pvcreate /dev/mapper/crypt
# vgcreate vg /dev/mapper/crypt
```
On the volume group, we create the root and home partitions as logical volumes:
-```bash
+```console
# lvcreate -L 60G vg -n root
# lvcreate -l 100%FREE vg -n home
```
These logical volumes shall again have the filesystem ext4:
-```bash
+```console
# mkfs.ext4 /dev/mapper/vg-root
# mkfs.ext4 /dev/mapper/vg-home
```
Then, we can perform the mounting:
-```bash
+```console
# mount /dev/mapper/vg-root /mnt
# mount -m /dev/mapper/vg-home /mnt/home
# mount -m /dev/sda1 /mnt/boot
@@ -71,25 +71,25 @@ Then, we can perform the mounting:
We download the necessary (and useful) packages
-```bash
+```console
# pacstrap /mnt base base-devel linux linux-firmware lvm2 vim man networkmanager grub
```
and generate the file system table with
-```bash
+```console
# genfstab -U /mnt >> /mnt/etc/fstab
```
Finally, we dive into the new system:
-```bash
+```console
# arch-chroot /mnt
```
We link our timezone and set the clock:
-```bash
+```console
# ln -s /usr/share/timezone/Europe/Zurich /etc/localtime
# hwclock --systohc
```
@@ -97,7 +97,7 @@ We link our timezone and set the clock:
Inside /etc/locale.gen, uncomment the regional settings you prefer, e.g. de_CH.UTF-8.
After saving, execute
-```bash
+```console
# locale-gen
```
@@ -112,7 +112,7 @@ Hooks=(base udev autodetect keyboard keymap consolefont modconf block lvm2 encry
Install grub with
-```bash
+```console
# grub-install /dev/sda
```
@@ -132,19 +132,19 @@ GRUB_ENABLE_CRYPTODISK="y"
We create the grub config file with
-```bash
+```console
# grub-mkconfig -o /boot/grub/grub.cfg
```
and generate an initial RAM disk for the boot process:
-```bash
+```console
# mkinitcpio -P
```
Finally, we set a root password, create a new user part of group wheel and give him a password, too.
-```bash
+```console
# passwd
# useradd -m -G wheel julian
# passwd julian
@@ -152,7 +152,7 @@ Finally, we set a root password, create a new user part of group wheel and give
Optionally, we can asign root privileges to all members of wheel by entering
-```bash
+```console
# visudo
```