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> * 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-utilsserver:/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 ====== Installkde-gtk-configand*-gtk-theme'' (I used Adwaita-dark).
arch_install_cheat_sheet.1747851724.txt.gz · Last modified: by josh
