Skip to content

hey-adora/guide-arch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Requirements

  • AMD GPU
  • UEFI
  • Make sure to turn off secure/fast boot in your UEFI settings.

Features

Index

  1. Pre-installation
    1. Double check
    2. Connecting to wifi (optional)
    3. Confirm that you have Internet conenction
    4. Update kerings if installer outdated (optional)
  2. Formatting
    1. Create partitions
    2. Mount partitions
  3. Installation
    1. Base install
    2. Bootloader setup
    3. Configuration setup
    4. Install the rest of the packages
    5. User setup
    6. AUR setup
  4. Post installation
    1. Reboot

Pre-installation

Double check

  1. Confirm that its EFI
ls /sys/firmware/efi/efivars

If you see huge text output, its efi. Else if you get error, make sure you selected to boot with UEFI via bootmenu.

Connecting to wifi (optional)

  1. Enter iwctl shell
iwctl
  1. Show wifi devices
device list
  1. Scan for wifis
station wlan0 scan
  1. Show wifis
station wlan0 get-networks
  1. Connect to wifi
station wlan0 connect "name"
  1. Leave iwctl shell
exit

Confirm that you have Internet conenction

  1. Confirm that you have internet connection
ping google.com

Update kerings if installer outdated (optional)

  1. Update kerings
pacman -Sy archlinux-keyring

This is to prevent errors when using pacman later, that can accur if you are not using the latest installer. (skip if you just now flashed .iso)

Formatting

Create partitions.

  1. Check where you want to install disk NAME and SIZE
lsblk
  1. Carefully choose disk and format it with
mkfs.ext4 /dev/nvme0n1

Be sure to replace nvme0n1 with your disk name from lsblk if its not the same

  1. Calculate how much you want to have swap (i recommend 20gb at least). So for example if lsblk shows that u have 465G size disk, subtract 1 for boot partition, 20 for swap parition. So you will have left 444G for main parition, 1G for boot partition and 20G for swap partition

  2. Run partitioning tool

gdisk /dev/nvme0n1
  1. Create 1G boot partition

    1. For "Command (? for help)" write n and press enter
    2. For "Partition number" just press enter
    3. For "First sector ..." just press enter
    4. For "Last sector ..." write +1G and press enter
    5. For "Hex code or GUID ..." write ef00 and press enter
  2. Create 444G main partition

    1. For "Command (? for help)" write n and press enter
    2. For "Partition number" just press enter
    3. For "First sector ..." just press enter
    4. For "Last sector ..." write +444G and press enter
    5. For "Hex code or GUID ..." just press enter
  3. Create 20G swap partition

    1. For "Command (? for help)" write n and press enter
    2. For "Partition number" just press enter
    3. For "First sector ..." just press enter
    4. For "Last sector ..." just press enter
    5. For "Hex code or GUID ..." write 8200 and press enter
  4. Write w and press enter

  5. Format the boot partition

mkfs.fat -F32 /dev/nvme0n1p1
  1. Format the main partition
mkfs.ext4 /dev/nvme0n1p2
  1. Format the swap partitoin
mkswap /dev/nvme0n1p3

Mount partitions.

  1. Mount the main partition
mount /dev/nvme0n1p2 /mnt
  1. Create boot folder
mkdir /mnt/boot
  1. Mount boot partitoin
mount /dev/nvme0n1p1 /mnt/boot
  1. Mount swap partition
swapon /dev/nvme0n1p3

Installation

Base install

  1. Install base pacakges
pacstrap /mnt base linux linux-firmware grub efibootmgr amd-ucode os-prober git nano 
  1. Generate mount points
genfstab -U /mnt >> /mnt/etc/fstab
  1. Enter installed linux environment
arch-chroot /mnt

Bootloader setup

  1. Create initial ramdisk environment
mkinitcpio -p linux
  1. Install grub bootloader
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
  1. Generate grub bootloader config
grub-mkconfig -o /boot/grub/grub.cfg

Configuration setup

  1. Set timezone
ln -sf /usr/share/zoneinfo/Europe/Vilnius /etc/localtime

You can list zones with ls /usr/share/zoneinfo/ or with ls /usr/share/zoneinfo/Europe/

  1. Sync hardware clock
hwclock --systohc
  1. Uncomment UTF-8 languages that you want by deleting # then save and exist
nano /etc/locale.gen

For example en_US.UTF-8

  1. Generate the languages that you selected
locale-gen
  1. Set the default language
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
  1. Set pc name
echo "angel-pc" >> /etc/hostname

You can "angel-pc" to whatever you want, but don't write special characters or spaces.

  1. Setup host file with nano /etc/hosts and write in it
127.0.0.1 localhost
::1       localhost
127.0.1.1 angel-pc.localdomain angel-pc

Then save and exit

  1. Enable multilib support with nano /etc/pacman.conf and uncomment by deleting # from:
[multilib]  
Include = /etc/pacman.d/mirrorlist

Then save and exit

  1. (Optional) multi-threading compiling with nano /etc/makepkg.conf by uncommenting line:
MAKEFLAGS="-j2"

To uncomment, delete # on specified line like previous times, then save and exit. Change the number 2 to how many threads you have on your cpu, you can check with nproc

Install the rest of the packages

  1. First update pacman database with
pacman -Sy
  1. Install packages
pacman -S networkmanager network-manager-applet dialog wpa_supplicant mtools dosfstools reflector inetutils base-devel linux-headers   bluez bluez-utils xdg-utils xdg-user-dirs alsa-utils pipewire lib32-pipewire pipewire-alsa pipewire-pulse pipewire-jack   gnome gnome-extra gdm xdg-desktop-portal-gnome   xdg-desktop-portal fish xorg wayland qt5-wayland qt6-wayland breeze   mesa lib32-mesa xf86-video-amdgpu vulkan-radeon lib32-vulkan-radeon vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau steam wine-staging lutris wine-mono wine-gecko gamemode lib32-gamemode  noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-liberation
  1. Enable services (case sensitive)
systemctl enable NetworkManager
systemctl enable bluetooth
systemctl enable gdm
  1. Set default shell for root (Optional)
chsh -s /bin/fish

User setup

  1. Set root password
passwd
  1. Create user
useradd -mG wheel angel

You can name it whatever you want, but don't use special characters or spaces.

  1. Set password for angel user
passwd angel
  1. Add sudo support for wheel group with EDITOR=nano visudo by uncommenting %wheel ALL=(ALL) ALL like this:
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL

Then save and exit.

  1. Switch to your user
su angel
  1. Set default shell for user (Optional)
chsh -s /bin/fish
  1. Go to your home folder
cd ~

AUR setup

  1. Clone the repository locally
git clone https://aur.archlinux.org/yay
  1. Enter the repository
cd yay
  1. Install yay
makepkg -si PKGBUILD

Post installation

Reboot

  1. First exist your user by pressing ctrl+d then exist arch-chroot by pressing ctrl+d again

  2. Then unmount all partitions

umount -a

Errors are expected, continue.

  1. Reboot
reboot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published