This is an unofficial Arch Linux installation guide. This guide tries to make the Arch Linux installation easier. If you have a question, you can open an issue.
First of all you have to install the ISO file from the official Arch Linux website. I would recommend installing this file with qBitTorrent or another Torrent client.
After installing you have to write this ISO file in to a USB. I am going to recommend Ventoy for this. You can download this from the official Ventoy website. After opening Ventoy you will see a menu. First select the USB device that you want to write the ISO file. After selecting click install and it will start installing.
Caution
This will erase the USB disk.
After installing Ventoy you can create a new folder in that disk and you can name it something like Linux. Now you can move the ISO file to that folder.
You first have to enter the BIOS. This process depends on your system. If you don't know how you can search how to do it. When you enter the BIOS menu you have to select an option called something like live boot. You have to select that USB disk. A Ventoy menu will pop up. From there select Arch Linux. When you enter, you have to wait few seconds.
First of all you are going to load the keyboard layout. The command below will list all of the layouts.
localectl list-keymaps
To load a layout you can use the command below. You can use the arrow keys to navigate and you can press q to exit.
loadkeys KEYBOARD_LAYOUTExample:
loadkeys trqYou have to ensure our network interface is defined. Use ip link to list them.
ip linkIf you want to connect to Ethernet, you can plug the cable. You can now skip the Wi-Fi part.
To connect to the Wi-Fi you will use iwctl. Type the command below.
iwctlNow you will get a prompt looking like [iwd]#. You are now going to look at the devices you can use.
[iwd] device listThis device is probably wlan0 but this can change. If your device is turned off you can use the command below.
[iwd] device YOUR_DEVICE set-property Powered onIf your adapter is turned off you can use the command below.
[iwd] adapter YOUR_ADAPTER set-property Powered on
Now you are going to scan and get the networks.
[iwd] station YOUR_DEVICE scan
[iwd] station YOUR_DEVICE get-networksNow you can connect.
station YOUR_DEVICE connect YOUR_SSIDIf your network is hidden
station YOUR_DEVICE connect-hidden YOUR_SSIDNow you can press Control + D to exit iwctl.
After these steps you should be able to connect to the internet. You can try by using the command below.
ping google.comYou should be able to send packages. You can press Control + C to stop.
This is probably one of the hardest parts. You are going to use fdisk to set the partition.
lsblkWith this commands you will see disks. You can find out the disk by looking at the size. Now You are going to use fdisk.
fdisk /dev/YOUR_DISKExample:
fdisk /dev/nvme0n1Now press the d key and delete all of the partitions one by one. If you deleted all of them you can create new ones. Type n to create a new partition.
- Type n
- Press enter
- Press enter
- Press enter
- Type
+1G
- Type n
- Press enter
- Press enter
- Press enter
- Type
+8G
- Type n
- Press enter
- Press enter
- Press enter
- Press enter
Type t, select 1, type L at the end you will see most common types. Near them you will see their code.
- Uefi
- Swap
- Linux
You can type w to save the changes.
You are going to use ext4 for the filesystem.
lsblkThis will show us the partitions.
- Fat
- Swap
- Ext4
Fat
mkfs.fat -F 32 /dev/efi_system_partitionSwap
mkswap /dev/swap_partitionExt4
mkfs.ext4 /dev/root_partitionFat
mkdir -p /mnt/boot/efi
mount /dev/efi_system_partition /mnt/boot/efi
Swap
swapon /dev/swap_partitionExt4
mount /dev/root_partition /mntTo install Linux and other needed dependencies you can type the command below.
pacstrap -K /mnt base linux linux-firmware micro grub base-devel sudo efibootmgr networkmanager nano os-proberNote
This can take a while
You can generate an Fstab with this code.
genfstab -U /mnt >> /mnt/etc/fstabYou are going to change root into the new system.
arch-chroot /mntYou are first going to generate the locales.
locale-genNow you can edit the settings. You can do Control + Q to exit.
micro /etc/locale.confHere type your language and encoding type. Example:
LANG=en_US.UTF-8
or
LANG=tr_TR.UTF-8
Now you can change the keyboard layout.
micro /etc/vconsole.conf
Example:
KEYMAP=trq
To set the timezone you are going to make a symbolic link.
ln -sf /usr/share/zoneinfo/Region/City /etc/localtimeExample:
ln -sf /usr/share/zoneinfo/Europe/Istanbul /etc/localtimemicro /etc/hostnamepasswdsystemctl enable NetworkManager --nowTo add a user you are going to use useradd.
useradd -m -G wheel -s /bin/bash YOUR_USER_NAMENow you can set the user's password.
passwd YOUR_USER_NAMEEDITOR=micro
visudoNow you can uncomment the line.
Old:
# %wheel ALL=(ALL:ALL) ALLNew:
%wheel ALL=(ALL:ALL) ALLGRUB is the most common Bootloader for Linux. You first have to find the boot mode.
ls /sys/firmware/efiIf you see some files and directories you are in Uefi mode but if you don't see, you are in BIOS mode.
Uefi mode:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUBBIOS mode:
grub-install --target=i386-pc /dev/YOUR_DISKLet's generate the GRUB configuration file.
grub-mkconfig -o /boot/grub/grub.cfgexit
umount -R /mnt
rebootYour system will reboot and you will see the GRUB menu. Open Arch Linux from there.
archlinux login: YOUR_USER_NAME
Password: YOUR_PASSWORDFirst thing you should do is to update the system.
sudo pacman -SyuThere isn't a desktop environment installed. If you want one you can check here.