| 1 | # Arch Install |
| 2 | |
| 3 | ## Connect to Internet |
| 4 | If you are using wifi, use [iwd](https://wiki.archlinux.org/title/Iwd) |
| 5 | ``` |
| 6 | device list |
| 7 | station *device* get-networks |
| 8 | station *d |
| 9 | ``` |
| 10 | |
| 11 | ## Install Guide |
| 12 | |
| 13 | 1. Turn on parallel downloads |
| 14 | ``sed -i "s/^#ParallelDownloads = 5$/ParallelDownloads = 15/" /etc/pacman.conf`` |
| 15 | |
| 16 | 2. Install archlinux keyring |
| 17 | ``pacman --noconfirm -Sy archlinux-keyring`` |
| 18 | |
| 19 | 3. Load layout, set time |
| 20 | ``` |
| 21 | loadkeys us |
| 22 | timedatectl set-ntp true |
| 23 | ``` |
| 24 | |
| 25 | 4. Create ext4, efi, swap partition |
| 26 | ``` |
| 27 | lsblk |
| 28 | cfdisk /dev/sdx or /dev/nvme0x |
| 29 | |
| 30 | # Efi partition |
| 31 | mkfs.fat -F32 $efipartition |
| 32 | |
| 33 | # Swap partition |
| 34 | mkswap $swappartition |
| 35 | swapon $swappartition |
| 36 | |
| 37 | # ext4 partition |
| 38 | mkfs.ext4 $partition |
| 39 | ``` |
| 40 | |
| 41 | 5. Mount linux partition to /mnt |
| 42 | ``mount $partition /mnt`` |
| 43 | |
| 44 | 6. Pacstrap |
| 45 | ``` |
| 46 | pacstrap /mnt base base-devel linux linux-firmware |
| 47 | ``` |
| 48 | |
| 49 | 7. genstab |
| 50 | ``` |
| 51 | genfstab -U /mnt >> /mnt/etc/fstab |
| 52 | ``` |
| 53 | |
| 54 | 8. chroot |
| 55 | ``` |
| 56 | arch-chroot /mnt |
| 57 | ``` |
| 58 | |
| 59 | 9. set timezone |
| 60 | ``` |
| 61 | ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime |
| 62 | ``` |
| 63 | |
| 64 | 10. set hardware clock from system clock |
| 65 | ``` |
| 66 | hwclock --systohc |
| 67 | ``` |
| 68 | |
| 69 | 11. set locale |
| 70 | ``` |
| 71 | echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen |
| 72 | locale-gen |
| 73 | echo "LANG=en_US.UTF-8" > /etc/locale.conf |
| 74 | echo "KEYMAP=us" > /etc/vconsole.conf |
| 75 | ``` |
| 76 | |
| 77 | 12. set hostname |
| 78 | ``` |
| 79 | echo $hostname > /etc/hostname |
| 80 | echo "127.0.0.1 localhost" >> /etc/hosts |
| 81 | echo "::1 localhost" >> /etc/hosts |
| 82 | echo "127.0.1.1 $hostname.localdomain $hostname" >> /etc/hosts |
| 83 | ``` |
| 84 | |
| 85 | 13. Initramfs |
| 86 | ``` |
| 87 | mkinitcpio -P |
| 88 | ``` |
| 89 | |
| 90 | 14. Set root password |
| 91 | ``` |
| 92 | passwd |
| 93 | ``` |
| 94 | |
| 95 | 15. install grub |
| 96 | ``` |
| 97 | pacman --noconfirm -S grub efibootmgr os-prober |
| 98 | mkdir /boot/efi |
| 99 | mount $efipartition /boot/efi |
| 100 | |
| 101 | grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=archlinux --recheck |
| 102 | |
| 103 | sed -i 's/quiet/pci=noaer/g' /etc/default/grub |
| 104 | sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub |
| 105 | |
| 106 | grub-mkconfig -o /boot/grub/grub.cfg |
| 107 | ``` |
| 108 | |
| 109 | 16. Install all the required user packages |
| 110 | ``` |
| 111 | pacman -S --noconfirm hyprland waybar hyprlock hyprpaper hyprpolkitagent hyprshot gammastep swaync \ |
| 112 | noto-fonts noto-fonts-emoji noto-fonts-cjk ttf-jetbrains-mono-nerd ttf-font-awesome \ |
| 113 | awesome-terminal-fonts bat libnotify ntfs-3g \ |
| 114 | jq mpv ncdu transmission-cli yt-dlp cowsay \ |
| 115 | pacman-contrib pavucontrol rsync ripgrep python-pywal \ |
| 116 | imlib2 zip unzip wget pcmanfm lf chafa stow fuzzel\ |
| 117 | fzf man-db pipewire pipewire-pulse pamixer kanshi \ |
| 118 | imagemagick networkmanager git dash papirus-icon-theme \ |
| 119 | neovim lua xdg-user-dirs mpd ncmpcpp unclutter \ |
| 120 | zsh zsh-autosuggestions zathura zathura-pdf-poppler |
| 121 | |
| 122 | ``` |
| 123 | |
| 124 | 17. Enable networkmanager |
| 125 | ``` |
| 126 | # network manager |
| 127 | systemctl enable NetworkManager.service |
| 128 | ``` |
| 129 | |
| 130 | 18. set shell |
| 131 | ``` |
| 132 | rm /bin/sh |
| 133 | ln -s dash /bin/sh |
| 134 | ``` |
| 135 | |
| 136 | 19. Set user permissions |
| 137 | ``` |
| 138 | echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers |
| 139 | ``` |
| 140 | |
| 141 | 20. Create user |
| 142 | ``` |
| 143 | useradd -m -G wheel -s /bin/zsh $username |
| 144 | passwd $username |
| 145 | ``` |
| 146 | |
| 147 | 21. Setup dotfiles |
| 148 | ``` |
| 149 | cd $HOME |
| 150 | git clone git@github.com:krolyxon/dotfiles.git ~/.dotfiles/ |
| 151 | cd ~/.dotfiles; stow . |
| 152 | ``` |
| 153 | |
| 154 | 22. nsxiv: image viewer |
| 155 | ``` |
| 156 | git clone --depth=1 git@github.com:krolyxon/nsxiv.git ~/.local/src/nsxiv |
| 157 | sudo make -C ~/.local/src/nsxiv install |
| 158 | ``` |
| 159 | |
| 160 | 23. nvim: Text editor |
| 161 | ``` |
| 162 | git clone --depth=1 git@github.com:krolyxon/nvim.git ~/.config/nvim |
| 163 | ``` |
| 164 | |
| 165 | 24. paru: AUR helper |
| 166 | ``` |
| 167 | git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -sri && cd .. && rm -rf paru-bin |
| 168 | paru -S --noconfirm htop-vim zsh-fast-syntax-highlighting-git keyd-git zen-browser-bin |
| 169 | ``` |
| 170 | |
| 171 | 25. set zsh as default shell |
| 172 | ``` |
| 173 | chsh -s $(which zsh) |
| 174 | ``` |