🐧 Arch Linux installation guide and packages-scripts for Desktop Environments and Windows Managers. Modify the packages to your liking.
MIT License
Before you get start with the scripts, I would like to thank you for coming to this repository. First, you need to certificate that you have done all installation standard process from the ArchWiki Guide
If you want to know how I build my Arch linux, follow the instructions! If you just want to know about the scripts installation, click here!
Configure your keyboard:
loadkeys br-abnt2 #for brazilian portuguese
loadkeys us #for us keyboard
For wireless and WWAN, make sure your Wi-Fi card is not blocked with rfkill list
. If it returns:
0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: yes
If the Wi-Fi card has the Hard blocked status turned on, then press the function key and the network corresponding key (Fn + network key
). If it has the Soft blocked status turned on, then use the following command:
rfkill unblock wifi
After unlocking your Wi-Fi card, then let's go to the next steps:
iwctl
.mmcli
.How do I use Wi-Fi network here are the steps:
[iwd] device list
[iwd] station device get-networks
[iwd] station device connect SSID
Type your network password and exit the iwctl
typing exit
.
For more information read rfkill and Connect to the internet.
Confirming you are connected:
ping archlinux.org
From now on I separated two paths depending on your system. Read carefully!
Before getting started partitioning the drive and setting our network up, we must make sure we are using the UEFI. Type in the terminal:
ls /sys/firmware/efi/efivars
All right! Now, if there's any error in the directory, it means that the system has been booted up in BIOS Legacy mode.
Personally, I like to partition my EFI system using a pseudo graphical interface cfdisk /dev/partition
, with the following layout:
UEFI with GPT
Mount point | Partitios | Partition type | Size |
---|---|---|---|
/mnt/boot/efi | /dev/efi_partition_system | EFI Partition System | 500M |
[SWAP] | /dev/swap_partition | Linux swap | 2G ~ 8G |
/mnt | /dev/root_partition | Linux x86-64 root (/) | 40%~60% of disk size |
/mnt/home | /dev/home_partition | Linux x86-64 home | 40%~60% of disk size |
Each created partition must be formatted with a proper file system. For a batter guide I recommend listing all partition with lsblk
. Then go for the instructions!
mkfs.vfat /dev/EFI_system_partition
mkswap /dev/swap_partition
mkfs.ext4 /dev/root_partition
mkfs.ext4 /dev/home_partition
mount
command:mount /dev/root_partition /mnt
mkdir
:mkdir -p /mnt/{home,boot/efi}
mount /dev/home_partition /mnt/home
mount /dev/efi_boot_system /mnt/boot/efi
swapon /dev/swap_partition
With the partitions all mounted you can proceed to the final part of the installation.
Personally, I like to partition my BIOS Legacy system using a pseudo graphical interface cfdisk /dev/partition
, with the following layout:
BIOS with MBR
Mount point | Partition | Partition type | Size |
---|---|---|---|
BIOS Legacy | /dev/bios_partition | BIOS Legacy | 500M |
[SWAP] | /dev/swap_partition | Linux swap | 2G ~ 8G |
/mnt | /dev/root_partition | Linux x86-64 root (/) | 40%~60% of the disk size |
/mnt/home | /dev/partio_home | Linux x86-64 home | 40%~60% of the disk size |
Each created partition must be formatted with a proper file system. For a batter guide I recommend listing all partition with lsblk
. Then go for the instructions!
mkswap /dev/swap_partition
mkfs.ext4 /dev/root_partition
mkfs.ext4 /dev/home_partition
mount
command:mount /dev/root_partition /mnt
mkdir
:mkdir -p /mnt/home
mount /dev/home_partition /mnt/home
swapon /dev/swap_partition
OBS: If you paid attention you noticed that the BIOS Legacy doesn't need to be mounted, just formatted. For the rest, the system finishes it all dinamically
With the partitions all mounted you can proceed to the final part of the installation.
If you have a slow connection and don't know much about mirrors I recommend reading about them on Arch wiki.
Use the pacstrap to install the needed packages, such as the linux kernel, hardware firmware, and others.
pacstrap /mnt base linux linux-firmware intel-ucode git vim
OBS: You can exchange intel-ucode for amd-ucode if your hardware is from amd!
I hope you got a coffee because this can take some time (or not so much).
Ending it, let's get to the final step before arch-chroot
and run the scripts!
Generate a fstab (use -U or -L to choose between UUID and labels, respectively):
genfstab -U /mnt >> /mnt/etc/fstab
All done! Now we can change to the new system root:
arch-chroot /mnt
All instruction might be found in INSTALL.md.
Great amount of arch linux installation I got from several youtube videos from Erman Ferrari. The other credits are on their corresponding folders. And, of course, all wallpapers are free for downloading!