You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read any command before using it. If you dont understand it don't run it.
Each sections contains link to important Arch wiki articles. Read them before running any commands.
Commands are in order following Arch wiki articles and I recommend following Arch wiki step by step while running them.
Separate boot, data, and swap partition. (data will be choped with btrfs subvolumes)
Partitioning (cfdisk to see current layout)
parted /dev/sda mklabel gpt
# sda1 EFI boot partition
parted /dev/sda mkpart ESP fat32 1MiB 513MiB
parted /dev/sda set 1 boot on
# sda2 swap (Maybe not mark as linux swap because encrpytion)
parted /dev/sda mkpart primary linux-swap 513MiB 8.5GiB
# sda3 data
parted /dev/sda mkpart primary btrfs 8.5GiB 100%
Create LUKS encrypted partition
# Find out how fast are ciphers on your machine (AES should have hardware acceleration therefore win)
cryptsetup benchmark
# Make data partition LUKS formated
cryptsetup --cipher aes-xts-plain64 --key-size 512 --use-random --verify-passphrase luksFormat /dev/sda3
# Check if everything looks good
cryptsetup luksDump /dev/sda3
# Open encrypted partation
cryptsetup open --type luks /dev/sda3 cryptdata
#Create BTRFS on cryptdata
mkfs.btrfs -L data /dev/mapper/cryptdata
# Mount BTRFS with flags
mount /dev/mapper/cryptdata /mnt -t btrfs -o defaults,noatime,nodiratime,discard,autodefrag,ssd,compress=lzo,space_cache
# Create subvolumes
btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home
btrfs subvolume create /mnt/@boot
# Mount subvolumes
umount /mnt
mount -o defaults,noatime,nodiratime,discard,autodefrag,ssd,compress=lzo,space_cache,subvol=@ /dev/mapper/cryptdata /mnt
mkdir /mnt/home
mount -o defaults,noatime,nodiratime,discard,autodefrag,ssd,compress=lzo,space_cache,subvol=@home /dev/mapper/cryptdata /mnt/home
mkdir /mnt/boot
mount -o defaults,noatime,nodiratime,discard,autodefrag,ssd,compress=lzo,space_cache,subvol=@boot /dev/mapper/cryptdata /mnt/boot
When using AUR, your machine will create a new Arch package (compress it) and then immediately install it (decompress it). You can disable it (but backup of the package will take more space) or use parallel compressor.
# add this line to allow all members of wheel to use sudo `%wheel ALL=(ALL) ALL`
EDITOR=nvim; visudo
pacman -S zsh
echo"ZDOTDIR=\$HOME/.config/zsh">> /etc/zsh/zshenv
useradd -m -s /bin/zsh -G wheel $USERNAME
passwd $USERNAME
# uses acpilight instead of xorg-xbacklight because it uses device directly and works without xorg-server (from CLI or in Wayland)
pacaur -S xorg-server xorg-xinit xorg-xrand acpilight xf86-input-libinput
# Java has a problem with certains WM like bspwm echo"export _JAVA_AWT_WM_NONREPARENTING=1">> .xinitrc