User Tools

Site Tools


arch_install_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arch_install_cheat_sheet [2025/01/21 10:51] josharch_install_cheat_sheet [2025/06/23 14:35] (current) – Add plasma-x11-session josh
Line 1: Line 1:
 ====== Wireless Network Setup ====== ====== Wireless Network Setup ======
  
-  * iwctl device list +<code> 
-  iwctl station wlan0 scan +iwctl device list 
-  iwctl station wlan0 get-networks +iwctl station wlan0 scan 
-  iwctl --passphrase <passphrase> station wlan0 connect SSID+iwctl station wlan0 get-networks 
 +iwctl --passphrase <passphrase> station wlan0 connect <SSID
 +</code>
  
 ====== Base ====== ====== Base ======
  
-  * gdisk +<code> 
-  cryptsetup luksFormat /dev/<root> +gdisk 
-  mkfs.ext4 /dev/<boot> +cryptsetup luksFormat /dev/<root> 
-  cryptsetup open /dev/<root> <crypt-root> +mkfs.ext4 /dev/<boot> 
-  mkfs.ext4 /dev/mapper/<crypt-root> +cryptsetup open /dev/<root> <crypt-root> 
-  mount /dev/mapper/<crypt-root> /mnt +mkfs.ext4 /dev/mapper/<crypt-root> 
-  mkdir /mnt/boot +mount /dev/mapper/<crypt-root> /mnt 
-  mount /dev/<boot> /mnt/boot +mkdir /mnt/boot 
-  mkdir /mnt/efi +mount /dev/<boot> /mnt/boot 
-  mount /dev/<efi> /mnt/efi +mkdir /mnt/efi 
-  pacstrap -K /mnt base linux linux-firmware vim +mount /dev/<efi> /mnt/efi 
-  genfstab -U /mnt >> /mnt/etc/fstab +pacstrap -K /mnt base linux linux-firmware vim 
-  arch-chroot /mnt +genfstab -U /mnt >> /mnt/etc/fstab 
-  ln -sf /usr/share/zoneinfo/<Region>/<City> /etc/localtime +arch-chroot /mnt 
-  vim /etc/locale.gen # uncomment en_US entries +ln -sf /usr/share/zoneinfo/America/Detroit /etc/localtime 
-  locale-gen +vim /etc/locale.gen # uncomment en_US entries 
-  vim /etc/hostname +locale-gen 
-  vim /etc/mkinitcpio.conf # add encrypt hook between block and filesystems https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#Configuring_mkinitcpio +vim /etc/hostname 
-  mkinitcpio -P +vim /etc/mkinitcpio.conf # add encrypt hook between block and filesystems 
-  passwd+</code> 
 + 
 +Reference https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#Configuring_mkinitcpio 
 + 
 +<code> 
 +mkinitcpio -P 
 +passwd 
 +</code> 
 + 
  
 ====== GRUB ====== ====== GRUB ======
  
-  * pacman -S grub efibootmgr +<code> 
-  * # grub-install for primary boot partition +pacman -S grub efibootmgr 
-  vim /etc/default/grub # add cryptdevice and root parameters - https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#Configuring_the_boot_loader +grub-install --efi-directory=/efi --bootloader-id=GRUB 
-  * # to boot Windows, add to ''/etc/grub.d/40_custom'':+vim /etc/default/grub 
 +Add cryptdevice=UUID=<UUID>:<crypt_root> 
 +</code>
  
-  menuentry 'Windows'+Reference https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#Configuring_the_boot_loader
-    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:+To boot Windows, add to ''/etc/grub.d/40_custom'':
  
-  menuentry 'Arch Secure' { +<code> 
-    insmod part_gpt +menuentry 'Windows' { 
-    search --no-floppy --fs-uuid --set=root <UUID> +  insmod part_gpt 
-    configfile ($root)/grub/grub.cfg +  insmod chain 
-  }+  search --no-floppy --fs-uuid --set=root ABCD-EFGH 
 +  chainloader /EFI/Microsoft/Boot/bootmgfw.efi 
 +} 
 +</code>
  
-  * grub-mkconfig -o /boot/grub/grub.cfg+To chain to another Linux partition: 
 + 
 +<code> 
 +menuentry 'Arch Secure'
 +  insmod part_gpt 
 +  search --no-floppy --fs-uuid --set=root <UUID> 
 +  configfile ($root)/grub/grub.cfg 
 +
 +</code> 
 + 
 +<code> 
 +grub-mkconfig -o /boot/grub/grub.cfg 
 +</code>
  
 ====== Desktop Environment ====== ====== Desktop Environment ======
  
-  * pacman -S xorg-server xorg-apps sddm sddm-kcm plasma-desktop dolphin okular xfce4-terminal firefox vlc kmix +<code> 
-  systemctl enable sddm.service+pacman -S xorg-server xorg-apps sddm sddm-kcm plasma-desktop plasma-x11-session dolphin okular 
 +  xfce4-terminal firefox vlc kscreen 
 +systemctl enable sddm.service 
 +</code> 
 + 
 +====== Audio ====== 
 + 
 +<code> 
 +pacman -S alsa-utils pulseaudio pulseaudio-alsa kmix 
 +</code>
  
 ====== Network ====== ====== Network ======
Line 62: Line 94:
 ===== Dynamic - Option 1 ===== ===== Dynamic - Option 1 =====
  
-  * # pacman -S dhcpcd +<code> 
-  * # systemctl enable dhcpcd.service+pacman -S dhcpcd 
 +systemctl enable dhcpcd.service 
 +</code>
  
-===== Dynamic - Option 2 ===== +===== Dynamic - Option 2 (good for wireless) ===== 
-  * # pacman -S networkmanager plasma-nm + 
-  * # systemctl enable NetworkManager.service+<code> 
 +pacman -S iwd networkmanager plasma-nm 
 +systemctl enable NetworkManager.service 
 +</code>
  
 ===== Static ===== ===== Static =====
Line 73: Line 110:
 Create ''/etc/systemd/network/20-wired.network '': Create ''/etc/systemd/network/20-wired.network '':
  
-  [Match] +<code> 
-  Name=enp8s0 +[Match] 
-   +Name=enp8s0 
-  [Network] + 
-  Address=192.168.16.68/24 +[Network] 
-  Gateway=192.168.16.1 +Address=192.168.16.68/24 
-  DNS=192.168.16.10+Gateway=192.168.16.1 
 +DNS=192.168.16.10 
 +</code>
  
 ====== User ====== ====== User ======
  
-  * pacman -S sudo +<code> 
-  useradd -m josh +pacman -S sudo 
-  passwd josh +useradd -m josh 
-  visudo # enable wheel line +passwd josh 
-  vim /etc/group # wheel, games+visudo # enable wheel line 
 +vim /etc/group # wheel, games 
 +</code>
  
 ====== SSH ====== ====== SSH ======
  
-  * pacman -S openssh x11-ssh-askpass +<code> 
-  * https://wiki.archlinux.org/title/SSH_keys#Start_ssh-agent_with_systemd_user+pacman -S openssh x11-ssh-askpass 
 +</code> 
 + 
 +====== Printing ====== 
 + 
 +<code> 
 +pacman -S cups print-manager system-config-printer 
 +systemctl enable cups.service 
 +</code>
  
 ====== Misc ====== ====== Misc ======
  
-  * pacman -S which man-pages alsa-utils rsync+<code> 
 +pacman -S which man man-pages rsync kwalletmanager base-devel less 
 +</code> 
 + 
 +===== Setting GTK application theme ===== 
 + 
 +<code> 
 +pacman -S kde-gtk-config adw-gtk-theme 
 +</code>
  
 ====== NFS ====== ====== NFS ======
  
-  * pacman -S nfs-utils+<code> 
 +pacman -S nfs-utils 
 +</code>
  
-  server:/path /path nfs _netdev,noauto,x-systemd.automount,x-systemd.mount-timeout=10,rsize=8192,wsize=8192,timeo=14,intr 0 0+In ''/etc/fstab'': 
 + 
 +<code> 
 +server:/path /path nfs _netdev,noauto,x-systemd.automount,x-systemd.mount-timeout=10,rsize=8192,wsize=8192,timeo=14,intr 0 0 
 +</code>
  
 ====== Reboot ====== ====== Reboot ======
  
-  * exit +<code> 
-  umount -R /mnt +exit 
-  reboot+umount -R /mnt 
 +reboot 
 +</code> 
 + 
 +====== After reboot, as user ====== 
 + 
 +===== ssh-agent setup ===== 
 + 
 +<code> 
 +systemctl --user enable ssh-agent.service 
 +</code> 
 + 
 +Put in profile: 
 + 
 +<code> 
 +export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" 
 +</code>
  
-====== Setting GTK application theme ======+Reference https://wiki.archlinux.org/title/SSH_keys#Start_ssh-agent_with_systemd_user
  
-Install ''kde-gtk-config'' and ''*-gtk-theme'' (I used Adwaita-dark). 
arch_install_cheat_sheet.1737474715.txt.gz · Last modified: by josh