Skip to content

Instantly share code, notes, and snippets.

@skorotkiewicz
Created September 17, 2019 21:56
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 skorotkiewicz/420a3d56ae36df35e439ebdb1298eb10 to your computer and use it in GitHub Desktop.
Save skorotkiewicz/420a3d56ae36df35e439ebdb1298eb10 to your computer and use it in GitHub Desktop.
Install Archlinux + LUKS
cgdisk /dev/sdb
# Setup Partitions
# /dev/sdb GPT
# /dev/sdb1 Flags ESP/Boot
# /dev/sdb2 100% size root partiton
cryptsetup luksFormat -v -s 512 -h sha512 /dev/sdb2
cryptsetup open /dev/sdb2 luks_root
mkfs.ext4 -L root /dev/mapper/luks_root
mount /dev/mapper/luks_root /mnt
cd /mnt
mkdir boot
mount /dev/sdb1 boot
dd if=/dev/zero of=swap bs=1M count=2048
mkswap swap
swapon swap
chmod 0600 swap
pacman -S pkgfile; pkgfile --update; pkgfile pacstrap; pacman -S extra/arch-install-scripts
pacstrap -i /mnt base base-devel efibootmgr
genfstab -U /mnt > /mnt/etc/fstab
nano /mnt/etc/fstab
arch-chroot /mnt
passwd
nano /etc/locale.gen
locale-gen
localectl set-locale LANG=en_US.UTF-8
echo LANG=en_US.UTF-8 >> /etc/locale.conf
echo LC_ALL= >> /etc/locale.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc --utc
echo Corty > /etc/hostname
nano /etc/hosts
nano /etc/mkinitcpio.conf
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck encrypt)
mkinitcpio -p linux
bootctl --path=/boot install
echo default arch >> /boot/loader/loader.conf
echo timeout 5 >> /boot/loader/loader.conf
blkid
nano /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=PARTUUID=f721d57e-c25a-4f41-9148-3e7572d8e863:root root=/dev/mapper/root rw
pacman -S bash-completion
pacman -S dialog wpa_supplicant wireless_tools rfkill
systemctl enable systemd-timesyncd
useradd -m -G wheel modinfo
passwd modinfo
pacman -S openssh
systemctl enable sshd
pacman -S xf86-video-intel
pacman -S xorg xterm xorg-xrandr
pacman -S i3-gaps i3blocks i3lock i3status dmenu xterm xbindkeys xclip figlet zsh # zenity
pacman -S alsa-utils pulseaudio-alsa
pacman -S lightdm lightdm-gtk-greeter
systemctl enable lightdm.service
pacman -S acpi feh firefox scrot bind-tools bc git mosh nmap p7zip zip unzip unrar tmux wget ncdu net-tools #mpv ed jq gotop
#pacman -S xf86-input-mouse xf86-input-keyboard libinput xf86-video-vesa mesa
# wifi-menu # /etc/netctl/ # scrot #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment