User Tools

Site Tools


arch_install_cheat_sheet

This is an old revision of the document!


Table of Contents

Wireless Network Setup

  • iwctl device list
  • iwctl station wlan0 scan
  • iwctl station wlan0 get-networks
  • iwctl –passphrase <passphrase> station wlan0 connect <SSID>

Base

  • gdisk
  • cryptsetup luksFormat /dev/<root>
  • mkfs.ext4 /dev/<boot>
  • cryptsetup open /dev/<root> <crypt-root>
  • mkfs.ext4 /dev/mapper/<crypt-root>
  • mount /dev/mapper/<crypt-root> /mnt
  • mkdir /mnt/boot
  • mount /dev/<boot> /mnt/boot
  • mkdir /mnt/efi
  • mount /dev/<efi> /mnt/efi
  • pacstrap -K /mnt base linux linux-firmware vim
  • genfstab -U /mnt » /mnt/etc/fstab
  • arch-chroot /mnt
  • ln -sf /usr/share/zoneinfo/America/Detroit /etc/localtime
  • vim /etc/locale.gen # uncomment en_US entries
  • locale-gen
  • vim /etc/hostname
  • vim /etc/mkinitcpio.conf # add encrypt hook between block and filesystems - https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#Configuring_mkinitcpio
  • mkinitcpio -P
  • passwd

GRUB

  • pacman -S grub efibootmgr
  • grub-install –efi-directory=/efi –bootloader-id=GRUB
  • vim /etc/default/grub
    • Add cryptdevice=UUID=<UUID>:<crypt_root> * Reference https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#Configuring_the_boot_loader * # 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 kmix * systemctl enable sddm.service ====== Network ====== ===== Dynamic - Option 1 ===== * pacman -S dhcpcd * systemctl enable dhcpcd.service ===== Dynamic - Option 2 ===== * pacman -S networkmanager plasma-nm * systemctl 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 sudo * useradd -m josh * passwd josh * visudo # enable wheel line * vim /etc/group # wheel, games ====== SSH ====== * pacman -S openssh x11-ssh-askpass * After reboot, as user: * systemctl –user enable ssh-agent.service * Put in profile: * export SSH_AUTH_SOCK=“$XDG_RUNTIME_DIR/ssh-agent.socket” * Reference https://wiki.archlinux.org/title/SSH_keys#Start_ssh-agent_with_systemd_user ====== Printing ====== * pacman -S cups print-manager system-config-printer * systemctl enable cups.service ====== Misc ====== * pacman -S which man-pages alsa-utils rsync ====== 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 ====== * exit * umount -R /mnt * reboot ====== Setting GTK application theme ====== Install kde-gtk-config and *-gtk-theme'' (I used Adwaita-dark).
arch_install_cheat_sheet.1747851724.txt.gz · Last modified: by josh