Skip to content

alokshandilya/arch-install-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Using archinstall script

This is how I set up my Arch Linux system using archinstall script.

Note: I use Arch BTW 🗿

  • check main branch if don't want to use archinstall script

Boot to ISO and check Networking

I usually set bigger font with setfont ter-132n & connect to WiFi :

  • iwctl
  • device list
  • station wlan0 get-networks (it's wlan0 in my case)
  • station wlan0 connect "xxx"
  • ip a
  • ping www.archlinux.org

connecting with Ethernet or mobile USB tethering is enabled by default

Update system clock

  • timedatectl set-ntp true, check with timedatectl status

Install Arch Linux

  • in /etc/pacman.conf
    • uncomment ParallelDownloads
    • add ILoveCandy
    • enable multilib repository
pacman -Syy
pacman -S archinstall neovim archlinux-keyring
archinstall # with btrfs, qtile
reboot

After Install

cd ~
git clone https://github.com/alokshandilya/arch-install-scripts.git
cd arch-install-scripts
./0-arch-install-script.sh # run in parts after checking in neovim term
  • switch to qtile (wayland)
  • edit /usr/share/wayland-sessions/qtile-wayland.desktop
    • Exec=/home/aloks/.local/bin/./wayland-start.sh
  • edit /etc/mkinitcpio.conf
    • MODULES=(btrfs crc32c-intel intel_agp i915 nvidia nvidia_modeset nvidia_uvm nvidia_drm)
    • HOOKS=(.... encrypt filesystems fsck) (if using encryption)
mkinitcpio -P
  • edit /etc/makepkg.conf to reduce compression time while building AURs
    • COMPRESSZST=(zstd -c -T0 --auto-threads=logical --adapt --exclude-compressed -)
  • uncomment BottomUp and NewsOnUpgrade in /etc/paru.conf
  • reboot

Install packages from pkglist.txt

cd ~/arch-install-scripts
paru -S --needed - < pkglist.txt

Reduce Swappiness

su -
touch /etc/sysctl.d/99-swappiness.conf
echo "vm.swappiness=1" >> /etc/sysctl.d/99-swappiness.conf

Also

  • edit /etc/locale.gen and uncomment en_IN and en_US (default by archinstall) UTF-8
  • delete subvolid from /etc/fstab
  • DRM Kernel Mode Setting
    • sudo vim /etc/modprobe.d/nvidia_drm.conf
      • options nvidia_drm modeset=1
  • Gnome Keyring
  • shutdown -h now
    • if using vscode then, configure runtime arguments
      • password-store as gnome
      • disable-hardware-acceleration as true
  • gh auth login to authenticate with GitHub after checking login keyring in seahorse
    • :Copilot signin for neovim copilot
  • setup snapper
  • postgreSQL setup
    • sudo pacman -S postgresql
    • sudo -iu postgres
    • initdb -D /var/lib/postgres/data
    • exit
    • sudo chattr +C /var/lib/postgres/data
    • sudo systemctl enable --now postgresql
    • sudo -iu postgres
    • createuser --interactive
    • createdb $USER
    • exit
    • pgadmin4

About

My personal scripts for installing arch linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages