From 076055824ba990057d3633c3d952817eeceb2138 Mon Sep 17 00:00:00 2001 From: martin schmidt Date: Fri, 12 Feb 2021 12:23:55 +0000 Subject: [PATCH] Update Installation --- Installation | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/Installation b/Installation index 2bf3527..269db1f 100644 --- a/Installation +++ b/Installation @@ -1,72 +1,72 @@ -### Simple, modern and secure installation of Arch Linux with KDE Plasma. +h1 Simple, modern and secure installation of Arch Linux with KDE Plasma. -# Load the preferred keyboard. In my case it's "de" for Germany. +# _Load the preferred keyboard. In my case it's "de" for Germany._ $ loadkeys de -# List devices to make sure you partition the right device. +# _List devices to make sure you partition the right device._ $ lsblk -# Partition the device using gdisk (assuming /dev/sda). +# _Partition the device using gdisk (assuming /dev/sda)._ $ gdisk /dev/sda -# Create GPT and EFI-partion. -$ o # Creates new GPT-partition table. -$ y # Accept. -$ n # New partition. -$ +512M # 512 MB should be plenty for /boot. -$ ef00 # Mark as EFI. -$ n # New main partition, accept all the following using "y". +# _Create GPT and EFI-partion._ +$ o # _Creates new GPT-partition table._ +$ y # _Accept._ +$ n # _New partition._ +$ +512M # _512 MB should be plenty for /boot._ +$ ef00 # _Mark as EFI._ +$ n # _New main partition, accept all the following using "y"._ -# Print and check your partitions +# _Print and check your partitions._ $ p -# Write partitions to device +# _Write partitions to device._ $ w -$ y # Accept. +$ y # _Accept._ -# Encryp primary partition. +# _Encrypt primary partition._ $ cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2 $ YES -# Open encrypted partition, map as "root" and create filesystem. +# _Open encrypted partition, map as "root" and create filesystem._ $ cryptseup luksOpen /dev/sda2 root $ mkfs.fat -F 32 -n UEFI /dev/sda1 -# -F specifies the type of file allocation tables used (12, 16 or 32 bit). -# -n sets the volume name (label) of the filesystem to "UEFI". +# _-F specifies the type of file allocation tables used (12, 16 or 32 bit)._ +# _-n sets the volume name (label) of the filesystem to "UEFI"._ -# Create ext4 filesystem on primary partition. +# _Create ext4 filesystem on primary partition._ $ mkfs.ext4 /dev/mapper/root -# Create mountpoints and mount partitions. +# _Create mountpoints and mount partitions._ $ mount /dev/mapper/root /mnt $ mkdir /mnt/boot $ mount /dev/sda1 /mnt/boot -# Optionally update mirrorlist using reflector. -# In this case use the latest 10 mirrors from Germany, that have been synchronized within the last 24 hours and -# sort the by download-rate and write them to the pacman mirrorlist. +# _Optionally update mirrorlist using reflector._ +# _In this case use the latest 10 mirrors from Germany, that have been synchronized within the last 24 hours and_ +# _sort the by download-rate and write them to the pacman mirrorlist._ $ reflector --verbose --latest 10 --country Germany --age 24 --sort rate --save /etc/pacman.d/mirrorlist -# Install base system and basic packages (network, editor, sudo). -# The package base-devel is not necessary but recommended. +# _Install base system and basic packages (network, editor, sudo)._ +# _The package base-devel is not necessary but recommended._ $ pacstrap /mnt base base-devel linux linux-firmware networkmanager nano sudo -# Generate fstab. +# _Generate fstab._ $ genfstab -Lp /mnt > /mnt/etc/fstab -# -L = Use labels for source identifiers (shortcut for -t LABEL). -# -p Exclude pseudofs mounts (default behavior). +# _-L = Use labels for source identifiers (shortcut for -t LABEL)._ +# _-p Exclude pseudofs mounts (default behavior)._ -# Chroot into your installation. +# _Chroot into your installation._ $ arch-chroot /mnt -# Set your hostname. +# _Set your hostname._ $ echo mycomputer > /etc/hostname -# Generate locale.gen for your preferred language (and preferribly english). +# _Generate locale.gen for your preferred language (and preferribly english)._ $ nano /etc/locale.gen -# Uncomment your language, e.g. de_DE.UTF-8 UTF-8 (and en_US.UTF-8). +# _Uncomment your language, e.g. de_DE.UTF-8 UTF-8 (and en_US.UTF-8)._ -# Generate the locale. +# _Generate the locale._ $ locale-gen # Add necessary HOOKS and MODULES.