Skip to content

Instantly share code, notes, and snippets.

@elnappo
Created June 10, 2017 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elnappo/56512d222e180d73f6b6defc3fd41a55 to your computer and use it in GitHub Desktop.
Save elnappo/56512d222e180d73f6b6defc3fd41a55 to your computer and use it in GitHub Desktop.
Arch Linux install commands
loadkeys de-latin1
ls /sys/firmware/efi/efivars
ping google.de
timedatectl set-ntp true
fdisk -l
fdisk /dev/sdb
cryptsetup -s 512 luksFormat /dev/sdb2
cryptsetup open /dev/sdb2 cryptroot
mkfs.btrfs /dev/mapper/cryptroot
mount /dev/mapper/cryptroot /mnt
btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@snapshots
btrfs subvolume create /mnt/@home
umount /mnt
mount -o compress=lzo,subvol=@ /dev/mapper/cryptroot /mnt/
mkdir /mnt/home
mkdir /mnt/.snapshots
mount -o compress=lzo,subvol=@home /dev/mapper/cryptroot /mnt/home
mount -o compress=lzo,subvol=@snapshots /dev/mapper/cryptroot /mnt/.snapshots
btrfs subvolume create /mnt/var/abs
btrfs subvolume create /mnt/var/tmp
btrfs subvolume create /mnt/srv
mkdir -p /mnt/var/cache/pacman
btrfs subvolume create /mnt/var/cache/pacman/pkg
mkdir -p /mnt/boot
mkfs.fat -F32 /dev/sdb1
mount /dev/sdb1 /mnt/boot
pacstrap /mnt base base-devel btrfs-progs
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc
pacman -Syu
pacman -S vim intel-ucode
vim /etc/locale.gen
locale-gen
vim /etc/locale.conf
vim /etc/vconsole.conf
vim /etc/hostname
vim /etc/hosts
passwd
vim /etc/mkinitcpio.conf
mkinitcpio -p linux
cd /boot/
bootctl --path=/boot/ install
vim loader/loader.conf
blkid -s PARTUUID -o value /dev/sdb2 >> /boot/loader/entries/arch.conf
vim loader/entries/arch.conf
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment