DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
Install
Install Arch Linux

Disk

Boot Arch linux.
Check your disks.
1
fdisk -l
Copied!
Create a partition.
1
fdisk /dev/sda
Copied!
Hit 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.
1
mkfs.ext4 /dev/sda1
Copied!

Configure pacman

Check if you have internet.
1
ping google.com
Copied!
If not, run:
1
dhcpcd
Copied!
Sync pacman.
1
pacman -Syy
Copied!
Install reflector.
1
pacman -S reflector
Copied!
Backup your mirror list.
1
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
Copied!
Set mirrors form your country.
1
reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
Copied!

Install

Mount the disk.
1
mount /dev/sda1 /mnt
Copied!
Run pacstrap.
1
pacstrap /mnt base linux linux-firmware vim nano
Copied!
Setup fstab.
1
genfstab /mnt >> /mnt/etc/fstab
Copied!
Chroot.
1
arch-chroot /mnt
Copied!
List available timezones.
1
timedatectl list-timezones
Copied!
Set your timezone.
1
timedatectl set-timezone America/Sao_Paulo
Copied!
Setup locale.
1
locale-gen
2
echo LANG=en_US.UTF-8 > /etc/locale.conf
3
export LANG=en_US.UTF-8
Copied!
Setup your hostname.
1
echo myarch > /etc/hostname
Copied!
Create /etc/hosts file.
1
nano /etc/hosts
Copied!
With the following content.
1
127.0.0.1 localhost
2
::1 localhost
3
127.0.1.1 myarch
Copied!
Setup root password.
1
passwrd
Copied!
Install grub.
1
pacman -S grub
2
grub-install /dev/sda
3
grub-mkconfig -o /boot/grub/grub.cfg
Copied!
Reboot.
1
exit
2
reboot
Copied!

References