Update README.md
This commit is contained in:
parent
e05abf3bad
commit
ee5bd518d3
49
README.md
49
README.md
|
@ -1,15 +1,15 @@
|
||||||
# Simple, modern and secure installation of Arch Linux with KDE Plasma.
|
# 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
|
$ loadkeys de
|
||||||
|
|
||||||
# _List devices to make sure you partition the right device._
|
**List devices to make sure you partition the right device.**
|
||||||
$ lsblk
|
$ lsblk
|
||||||
|
|
||||||
# _Partition the device using gdisk (assuming /dev/sda)._
|
**Partition the device using gdisk (assuming /dev/sda).**
|
||||||
$ gdisk /dev/sda
|
$ gdisk /dev/sda
|
||||||
|
|
||||||
# _Create GPT and EFI-partion._
|
Create GPT and EFI-partion.
|
||||||
$ o # _Creates new GPT-partition table._
|
$ o # _Creates new GPT-partition table._
|
||||||
$ y # _Accept._
|
$ y # _Accept._
|
||||||
$ n # _New partition._
|
$ n # _New partition._
|
||||||
|
@ -17,56 +17,55 @@ $ +512M # _512 MB should be plenty for /boot._
|
||||||
$ ef00 # _Mark as EFI._
|
$ ef00 # _Mark as EFI._
|
||||||
$ n # _New main partition, accept all the following using "y"._
|
$ n # _New main partition, accept all the following using "y"._
|
||||||
|
|
||||||
# _Print and check your partitions._
|
Print and check your partitions.
|
||||||
$ p
|
$ p
|
||||||
|
|
||||||
# _Write partitions to device._
|
Write partitions to device.
|
||||||
$ w
|
$ w
|
||||||
$ y # _Accept._
|
$ y # _Accept._
|
||||||
|
|
||||||
# _Encrypt primary partition._
|
# Encrypt primary partition.
|
||||||
$ cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2
|
$ cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2
|
||||||
$ YES
|
$ YES
|
||||||
|
|
||||||
# _Open encrypted partition, map as "root" and create filesystem._
|
# Open encrypted partition, map as "root" and create filesystem.
|
||||||
$ cryptseup luksOpen /dev/sda2 root
|
$ cryptseup luksOpen /dev/sda2 root
|
||||||
$ mkfs.fat -F 32 -n UEFI /dev/sda1
|
$ mkfs.fat -F 32 -n UEFI /dev/sda1
|
||||||
# _-F specifies the type of file allocation tables used (12, 16 or 32 bit)._
|
# -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"._
|
# -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
|
$ mkfs.ext4 /dev/mapper/root
|
||||||
|
|
||||||
# _Create mountpoints and mount partitions._
|
# Create mountpoints and mount partitions.
|
||||||
$ mount /dev/mapper/root /mnt
|
$ mount /dev/mapper/root /mnt
|
||||||
$ mkdir /mnt/boot
|
$ mkdir /mnt/boot
|
||||||
$ mount /dev/sda1 /mnt/boot
|
$ mount /dev/sda1 /mnt/boot
|
||||||
|
|
||||||
# _Optionally update mirrorlist using reflector._
|
# 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_
|
# 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.
|
||||||
# _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
|
$ reflector --verbose --latest 10 --country Germany --age 24 --sort rate --save /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# _Install base system and basic packages (network, editor, sudo)._
|
# Install base system and basic packages (network, editor, sudo).
|
||||||
# _The package base-devel is not necessary but recommended._
|
# The package base-devel is not necessary but recommended.
|
||||||
$ pacstrap /mnt base base-devel linux linux-firmware networkmanager nano sudo
|
$ pacstrap /mnt base base-devel linux linux-firmware networkmanager nano sudo
|
||||||
|
|
||||||
# _Generate fstab._
|
# Generate fstab.
|
||||||
$ genfstab -Lp /mnt > /mnt/etc/fstab
|
$ genfstab -Lp /mnt > /mnt/etc/fstab
|
||||||
# _-L = Use labels for source identifiers (shortcut for -t LABEL)._
|
# -L = Use labels for source identifiers (shortcut for -t LABEL).
|
||||||
# _-p Exclude pseudofs mounts (default behavior)._
|
# -p Exclude pseudofs mounts (default behavior).
|
||||||
|
|
||||||
# _Chroot into your installation._
|
# Chroot into your installation.
|
||||||
$ arch-chroot /mnt
|
$ arch-chroot /mnt
|
||||||
|
|
||||||
# _Set your hostname._
|
# Set your hostname.
|
||||||
$ echo mycomputer > /etc/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
|
$ 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
|
$ locale-gen
|
||||||
|
|
||||||
# Add necessary HOOKS and MODULES.
|
# Add necessary HOOKS and MODULES.
|
||||||
|
|
Loading…
Reference in New Issue