Archlinux Install Guide - Hardware
Due to recent changes in the archlinux base pkg all other install tutorials are pretty much obsolete. This tutorial reflects them changes and should get most people up and running.
Archlinux install guide 2020 (bios)
Anything you don’t understand please feel free to leave a comment below, I will try to help or lead you in the right direction, please don’t be intimidated by the archwiki, its a great resource
Important Conditions: bios install - spare hard drive (unless you know what your doing) - wired connection recommended
Install archlinux On Hardware.
Download archlinux
burn to USB key. Boot the USB archlinux.iso.
Screenshot_20190718_104827.png690×565 50.9 KB
You should see something like this:
Screenshot_20190718_105104.png850×685 11.3 KB
PARTITION & FORMAT THE DRIVE
The hardest part of any archlinux install is setting up your hard disks. Since this on hardware you must absolutely make sure you are installing to the correct drive/partition
You can check your drives with
Codice: Seleziona tutto
lsblk
enter
Screenshot_20190718_111140.png850×685 12.8 KB
Codice: Seleziona tutto
sda 8:0 0 15.4G 0 disk
is the one I will be using, I will use that disk to install archlinux:
Wipe the drive completely using gdisks in my case its /sda yours may differ (this will wipe the drive, you have been warned)
Codice: Seleziona tutto
gdisk /dev/sda
xenter zenter y entery enter
Codice: Seleziona tutto
cfdisk /dev/sda
and select
Codice: Seleziona tutto
dos
enter
Screenshot_20190718_112011.png850×685 11.7 KB
Use the arrow keys to navigate cfdisk: Using the free space select: New
Screenshot_20190718_112353.png850×685 14.4 KB
Here we will use the whole disk 15.4G in my case, enter:
Screenshot_20190718_113140.png850×685 14.5 KB
Select [ Primary ] enter
Screenshot_20190718_113411.png850×685 14.2 KB
Select [ Bootable ] enter
Screenshot_20190718_113524.png850×685 15.2 KB
Select [ Write ] enter
Screenshot_20190718_113743.png850×685 15.6 KB
TYPE
Codice: Seleziona tutto
yes
enter
Screenshot_20190718_114117.png850×685 15.4 KB
Now you can
Codice: Seleziona tutto
quit
out of cfdisk
Screenshot_20190718_114352.png850×685 15.3 KB
As you can see on disk
Codice: Seleziona tutto
sda
we have our partition we just created
Codice: Seleziona tutto
sda1
Screenshot_20190718_114946.png850×685 13.2 KB
Set keyboard, default is US:
Codice: Seleziona tutto
loadkeys uk
e.g
Check you have a internet connection:
Codice: Seleziona tutto
wifi-menu -o
if you are using wireless
Codice: Seleziona tutto
ping archlinux.org
ctrl+c to stop ping
Set up your Hard Drive:
Codice: Seleziona tutto
mkfs.ext4 /dev/sda1
create the filesystem
Codice: Seleziona tutto
mount /dev/sda1 /mnt
mount the drive
for the latest linux kernel:
Codice: Seleziona tutto
pacstrap -i /mnt base base-devel linux linux-headers nano networkmanager linux-firmware
or
for the LTS kernel:
Codice: Seleziona tutto
pacstrap -i /mnt base base-devel linux-lts linux-lts-headers nano networkmanager linux-firmware
option 1 mkinitcpio
Codice: Seleziona tutto
genfstab -U /mnt >> /mnt/etc/fstab
generate the fstab
Codice: Seleziona tutto
cat /mnt/etc/fstab
check you have a UUID
Codice: Seleziona tutto
arch-chroot /mnt
Codice: Seleziona tutto
nano /etc/locale.gen
uncomment your locale e.g:
en_GB.UTF-8 UTF8
Codice: Seleziona tutto
locale-gen
Codice: Seleziona tutto
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
add your time zone
Codice: Seleziona tutto
hwclock --systohc --utc
set clock to utc
Codice: Seleziona tutto
nano /etc/pacman.conf
add the multilib repos
Uncomment the lines:
[multilib] and
include = /etc/pacman.d/mirrorlist
Codice: Seleziona tutto
pacman -Sy
check multilib is working
Codice: Seleziona tutto
echo yourhostname > /etc/hostname
Codice: Seleziona tutto
nano /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 myhostname.localdomain myhostname
Codice: Seleziona tutto
passwd
Codice: Seleziona tutto
useradd -m -g users -G wheel -s /bin/bash yourname
add users to the sudoers
Codice: Seleziona tutto
passwd yourname
Codice: Seleziona tutto
EDITOR=nano visudo
Uncomment the line:
%wheel ALL=(ALL)
Codice: Seleziona tutto
mkinitcpio -p linux
Codice: Seleziona tutto
pacman -S grub
download grub
Codice: Seleziona tutto
grub-install /dev/sda
install grub
Codice: Seleziona tutto
grub-mkconfig -o /boot/grub/grub.cfg
update grub.cfg
Codice: Seleziona tutto
sudo systemctl enable NetworkManager.service
Important: Enable NetworkManager before reboot
Codice: Seleziona tutto
exit
Codice: Seleziona tutto
umount -R /mnt
Codice: Seleziona tutto
reboot
INSTALL ON VIRTUALBOX
INSTALLING A DESKTOP ENVIRONMENT ON ARCH