Install
Install Arch Linux
Disk
Boot Arch linux.
Check your disks.
fdisk -lCreate a partition.
fdisk /dev/sdaHit o (letter o) to create a new DOS disklabel.
Hit n to create a new partition.
Hit p for primary partition.
You accept the defaults then.
Hit w to write your changes.
Create a filesystem.
mkfs.ext4 /dev/sda1Configure pacman
Check if you have internet.
ping google.comIf not, run:
dhcpcdSync pacman.
pacman -SyyInstall reflector.
pacman -S reflectorBackup your mirror list.
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bakSet mirrors form your country.
reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlistInstall
Mount the disk.
mount /dev/sda1 /mntRun pacstrap.
pacstrap /mnt base linux linux-firmware vim nanoSetup fstab.
genfstab /mnt >> /mnt/etc/fstabChroot.
arch-chroot /mntList available timezones.
timedatectl list-timezonesSet your timezone.
timedatectl set-timezone America/Sao_PauloSetup locale.
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8Setup your hostname.
echo myarch > /etc/hostnameCreate /etc/hosts file.
nano /etc/hostsWith the following content.
127.0.0.1 localhost
::1 localhost
127.0.1.1 myarchSetup root password.
passwrdInstall grub.
pacman -S grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfgConfigure networking following the steps here.
Reboot.
exit
rebootReferences
https://itsfoss.com/install-arch-linux/
https://www.howtoforge.com/tutorial/arch-linux-installation-with-xfce-desktop/
Last updated