arch_install_cheat_sheet
This is an old revision of the document!
Table of Contents
Wireless Network Setup
iwctl device listiwctl station wlan0 scaniwctl station wlan0 get-networksiwctl –passphrase <passphrase> station wlan0 connect <SSID>
Base
gdiskcryptsetup luksFormat /dev/<root>mkfs.ext4 /dev/<boot>cryptsetup open /dev/<root> <crypt-root>mkfs.ext4 /dev/mapper/<crypt-root>mount /dev/mapper/<crypt-root> /mntmkdir /mnt/bootmount /dev/<boot> /mnt/bootmkdir /mnt/efimount /dev/<efi> /mnt/efipacstrap -K /mnt base linux linux-firmware vimgenfstab -U /mnt » /mnt/etc/fstabarch-chroot /mntln -sf /usr/share/zoneinfo/America/Detroit /etc/localtimevim /etc/locale.gen# uncomment en_US entrieslocale-genvim /etc/hostnamevim /etc/mkinitcpio.conf# add encrypt hook between block and filesystems - https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#Configuring_mkinitcpiomkinitcpio -Ppasswd
GRUB
pacman -S grub efibootmgrgrub-install –efi-directory=/efi –bootloader-id=GRUBvim /etc/default/grub- Add
cryptdevice=UUID=<UUID>:<crypt_root>
- # to boot Windows, add to
/etc/grub.d/40_custom:
menuentry 'Windows' {
insmod part_gpt
insmod chain
search --no-floppy --fs-uuid --set=root ABCD-EFGH
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
- # to chain to another Linux partition:
menuentry 'Arch Secure' {
insmod part_gpt
search --no-floppy --fs-uuid --set=root <UUID>
configfile ($root)/grub/grub.cfg
}
grub-mkconfig -o /boot/grub/grub.cfg
Desktop Environment
pacman -S xorg-server xorg-apps sddm sddm-kcm plasma-desktop dolphin okular xfce4-terminal firefox vlc kmixsystemctl enable sddm.service
Network
Dynamic - Option 1
pacman -S dhcpcdsystemctl enable dhcpcd.service
Dynamic - Option 2 (good for wireless)
pacman -S iwd networkmanager plasma-nmsystemctl enable NetworkManager.service
Static
Create /etc/systemd/network/20-wired.network :
[Match] Name=enp8s0 [Network] Address=192.168.16.68/24 Gateway=192.168.16.1 DNS=192.168.16.10
User
pacman -S sudouseradd -m joshpasswd joshvisudo# enable wheel linevim /etc/group# wheel, games
SSH
pacman -S openssh x11-ssh-askpass
Printing
pacman -S cups print-manager system-config-printersystemctl enable cups.service
Misc
pacman -S which man-pages alsa-utils rsync kwalletmanager
Setting GTK application theme
pacman -S kde-gtk-config awd-gtk-theme
NFS
pacman -S nfs-utils
server:/path /path nfs _netdev,noauto,x-systemd.automount,x-systemd.mount-timeout=10,rsize=8192,wsize=8192,timeo=14,intr 0 0
Reboot
exitumount -R /mntreboot
After reboot, as user
ssh-agent setup
systemctl –user enable ssh-agent.service- Put in profile:
export SSH_AUTH_SOCK=“$XDG_RUNTIME_DIR/ssh-agent.socket”
arch_install_cheat_sheet.1747913268.txt.gz · Last modified: by josh
