unixwz0r

THL4-Installation-Setup.txt

Sep 12th, 2021 (edited)
852
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.16 KB | None | 0 0
  1. Arch Linux K.I.S.S. system with Gnome40 setup (intel nuc, intel laptop & intel desktop)
  2. ========================================================================================
  3.  
  4. Network
  5. =======
  6. ip a
  7. iwctl
  8.  
  9. Partition
  10. =========
  11. lsblk
  12. gpart efi +300M hex ef00
  13. root all disk w q
  14. mkfs.fat -F32 /dev/sdx1
  15. mkfs.btrfs /dev/sdx2
  16. mount /dev/sdx2 /mnt
  17. btrfs su cr /mnt/@
  18. btrfs su cr /mnt/@home
  19. umount /mnt
  20. mount -o noatime,compress=lzo,space_cache=v2,subvol=@ /dev/sdx2 /mnt
  21. mkdir -p /mnt/{boot,home}
  22. mount -o noatime,compress=lzo,space_cache=v2,subvol=@home /dev/sdx2 /mnt/home
  23.  
  24. base setup
  25. ==========
  26. pacstrap /mnt base base-devel linux-firmware nano intel-ucode intel-media-driver libva-intel-driver mc zsh gnome gdm geany alsa-utils pulseaudio-bluetooth bluez bluez-utils pulseaudio neofetch git        
  27. genfstab -U /mnt >> /mnt/etc/fstab
  28. arch-chroot
  29.  
  30. timezone
  31. ========
  32. ln -sf /usr/share/zoneinfo/America/Halifax /etc/localtime
  33. timedatectl list-time | grep <city> Halifax
  34. hwclock --systohc
  35. nano /etc/locale.gen
  36. choose your locale en_US.UTF-8
  37. locale-gen
  38. nano /etc/locale.conf LANG=en_US.UTF-8
  39.  
  40. hostname
  41. ========
  42. nano /etc/hostname <<-- put whatever you want for your hostname
  43.  
  44. root passwd & pacman grub efi network linux
  45. ============================================
  46. passwd <<-- type a root password
  47. pacman -S grub efibootmgr networkmanager network-manager-applet dialog wpa_supplican xdg-utils xdg-user-dirs inetutils linux-headers bash-completion
  48.  
  49. Kernel modules setup intel kms modesetting & btrfs
  50. ===================================================
  51. nano /etc/mkinitcpio.conf
  52. MODULES=(i915 btrfs)
  53. mkinitcpio -p linux
  54.  
  55. UEFI Bootloader Grub
  56. =====================
  57. grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
  58. grub-mkconfig -o /boot/grub/grub.cfg
  59.  
  60. setting up systemd stuff
  61. =========================
  62. systemctl enable NetworkManager
  63. systemctl enable bluetooth
  64. systemctl enable gdm
  65.  
  66. User & passwd
  67. ==============
  68. useradd -mG wheel <username> tuxhat
  69. passwd <username> tuxhat
  70. visudo
  71. Uncomment to allow members of group wheel to exec any command
  72. %wheel ALL=(ALL) ALL
  73. :x
  74.  
  75. Setting up Yay AUR Package Manager
  76. ==================================
  77. git clone https://aur.archlinux.org/yay.git
  78. cd yay
  79. makepkg -sri --noconfirm --needed
  80. yay -S gnome-shell-extension-dash-to-dock-gnome40-git <<-- Dash-to-Dock for gnome 40
  81.  
  82. ==============
  83.  
  84. Example script
  85. ==============
  86. install-yay.sh
  87.  
  88. if ! command -v yay >/dev/null; then
  89.     tmp=$(mktemp -d)
  90.     function finish { rm -rf "$tmp"; }  # clean up after yourself...
  91.     trap finish EXIT                    # ...no matter how you exist
  92.  
  93.     git clone https://aur.archlinux.org/yay.git "$tmp"
  94.     pushd "$tmp"
  95.     makepkg -sri --noconfirm --needed
  96.     popd
  97.  
  98.     if ! command -v yay >/dev/null; then
  99.         >&2 echo "yay failed to install"
  100.         exit 1
  101.     fi
  102. fi
  103.  
  104. =================================================
  105. Timeshift & Timeshift-autosnap Setup (need yay)
  106. =================================================
  107. yay -S timeshift timeshift-autosnap
  108.  
  109. Gnome-Terminal Themes
  110. ======================
  111. bash -c  "$(wget -qO- https://git.io/vQgMr)"
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
Add Comment
Please, Sign In to add comment