Advertisement
coldReactive

Arch Linux XFCE Installation Guide

Jul 28th, 2024 (edited)
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. # Before continuing, make sure Arch is installed fully:
  2. #
  3. # 1. Make sure Internet is working with ping archlinux.org (CTRL+C to stop.)
  4. # 2. Use cfdisk to remove all the Windows Partitions and Make new ones. (Use gpt label type if needed.)
  5. # Make sure to use it on the correct drive so said partitions appear. Use lsblk to find drives/partitions.
  6. # Make three partitions: 1G, 16G and the final one with the remaining free space.
  7. # 3. Confirm all the blocks are right with lsblk
  8. # 4. Format the drive blocks.
  9. # mkfs.ext4 /dev/[Largest Block]
  10. # mkfs.fat -F 32 /dev/[1G Block]
  11. # mkswap /dev/[16G Block]
  12. # 5. Mount the largest partition.
  13. # mount /dev/[Largest Block] /mnt
  14. # 6. Make the Boot Directory.
  15. # mkdir -p /mnt/boot/efi
  16. # 7. Mount the boot partition and turn on swap.
  17. # mount /dev/[1G Block] /mnt/boot/efi
  18. # swapon /dev/[16G Block]
  19. # 8. Base Package Installation
  20. # pacstrap /mnt base linux linux-firmware sof-firmware base-devel grub efibootmgr nano networkmanager
  21. # Make sure to clear the terminal with CTRL+L afterward.
  22. # 9. Generate fstab
  23. # genfstab -U /mnt > /mnt/etc/fstab
  24. # Make sure that swap is set in it.
  25. # Find UUIDs by running lsblk -f
  26. # nano /mnt/etc/fstab
  27. # Insert the swap partition as such if not found:
  28. # UUID=########-####-####-####-############ none swap defaults 0 0
  29. # CTRL+O then Enter, then CTRL+X to exit.
  30. # A. Enter the installed system.
  31. # arch-chroot /mnt
  32. # B. Set up Time-zone and Localization. (Check the zoneinfo directory for your specific time.)
  33. # ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
  34. # Confirm with date
  35. # hwclock --systohc
  36. # nano /etc/locale.gen
  37. # Find
  38. # #en_US.UTF-8 UTF-8
  39. # #ja_JP.UTF-8 UTF-8
  40. # Uncomment them by hitting DEL on the hash/pound symbol.
  41. # CTRL+O then Enter, then CTRL+X to exit.
  42. # locale-gen
  43. # nano /etc/locale.conf
  44. # LANG=en_US.UTF-8
  45. # CTRL+O then Enter, then CTRL+X to exit.
  46. # C. hostname (Note: DO NOT put a trailing space/new line in this file.)
  47. # nano /etc/hostname
  48. # localhost
  49. # CTRL+O then Enter, then CTRL+X to exit.
  50. # D. Root password, Users and sudoers.
  51. # passwd
  52. # Enter in the password for root.
  53. # useradd -m -G wheel -s /bin/bash ian
  54. # passwd ian
  55. # Enter in the password for ian.
  56. # EDITOR=nano visudo
  57. # Find and uncomment %wheel ALL=(ALL) ALL
  58. # CTRL+O then Enter, then CTRL+X to exit.
  59. # E. Enabling Core Services
  60. # systemctl enable NetworkManager
  61. # F. Install microcode and setup GRUB. Substitute intel-ucode if using that.
  62. # pacman -S amd-ucode
  63. # grub-install /dev/sda
  64. # grub-mkconfig -o /boot/grub/grub.cfg
  65. # G. Exit the mounted install, unmount and reboot.
  66. # exit
  67. # umount -a
  68. # reboot
  69.  
  70. # Packages to install after arch:
  71. #
  72. # sudo pacman -S xfce4 xfce4-goodies seahorse blueman system-config-printer cups-pk-helper vlc gimp simple-scan discord firefox qt5ct qt6ct pipewire-alsa pipewire-pulse pipewire-jack transmission-gtk pavucontrol ntfs-3g lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings light-locker geany noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-liberation ttf-droid ttf-dejavu unzip zip unrar p7zip nss-mdns cups cups-pdf gst-plugins-good gst-plugins-bad gst-plugins-ugly ffmpeg imagemagick gvfs ffmpegthumbnailer webp-pixbuf-loader poppler-glib libappindicator-gtk3
  73.  
  74. # Enable services for booting:
  75. # sudo systemctl enable lightdm
  76. # sudo systemctl enable cups
  77. # sudo systemctl enable avahi-daemon
  78.  
  79. # Enable mdns in nsswitch (if sudoedit does nothing, use sudo nano instead.)
  80. # sudoedit /etc/nsswitch.conf
  81. # On the hosts line,
  82. # Add mdns_minimal to just before [!UNAVAIL=return]
  83. # Add mdns to the end of the line
  84.  
  85. # Enable LightDM's Greeter
  86. # sudoedit /etc/lightdm/lightdm.conf
  87. # Change #greeter-session= to greeter-session=lightdm-gtk-greeter
  88. # CTRL+O then Enter, then CTRL+X to exit.
  89.  
  90. # Configure bashrc for qt5ct / qt6ct so it syncs to GTK.
  91. # nano ~/.bashrc
  92. # add QT_QPA_PLATFORMTHEME=qt5ct:qt6ct
  93. # CTRL+O then Enter, then CTRL+X to exit.
  94.  
  95. # Open /etc/pacman.conf and uncomment the multilib section.
  96. # Do sudo pacman -Syu after
  97. # Then, if you have an nvidia GPU, do
  98. # sudo pacman -S lib32-nvidia-utils lib32-opencl-nvidia opencl-nvidia nvidia-open-dkms nvidia-utils nvidia-settings steam mangohud
  99. # If you instead have an AMD GPU, use
  100. # sudo pacman -S vulkan-radeon lib32-vulkan-radeon lib32-mesa lib32-vulkan-icd-loader vulkan-tools llvm lib32-llvm lib32-llvm-libs llvm-libs corectrl steam mangohud
  101.  
  102. # Configure MangoHud.
  103. # 1. Get the MangoHud Configuration File
  104. # mkdir -p ~/.config/MangoHud/
  105. # curl -L https://raw.githubusercontent.com/flightlessmango/MangoHud/master/data/MangoHud.conf --output MangoHud.conf --output-dir ~/.config/MangoHud/
  106. # 2. Environment Variable (This starts mangohud when games run.)
  107. # mkdir -p ~/.config/environment.d/
  108. # echo 'MANGOHUD=1' | tee ~/.config/environment.d/mangohud.conf
  109. # 3. Change the FPS Limit and enable no overlay.
  110. # nano ~/.config/MangoHud/MangoHud.conf
  111. # CTRL+O then Enter, then CTRL+X to exit once edited.
  112.  
  113. # Get the yay AUR Helper:
  114. #
  115. # sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si
  116.  
  117. # Install some of the AUR packages you want.
  118. # Octopi is a graphical package manager that acts similar to old Synaptic.
  119. # mugshot is needed for the XFCE Whisker Menu to fully function.
  120. #
  121. # yay -S octopi mugshot geany-themes ttf-ms-fonts
  122. #
  123. # If you need Java, use jdk-temurin (Latest), or jdk##-temurin (EG: jdk8-temurin) from the AUR.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement