Update Installation
This commit is contained in:
parent
be3eebae80
commit
076055824b
66
Installation
66
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
|
$ 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._
|
||||||
$ +512M # 512 MB should be plenty for /boot.
|
$ +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._
|
||||||
|
|
||||||
# Encryp 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