Howto install archlinux: Difference between revisions
Mandulete1 (talk | contribs) |
Mandulete1 (talk | contribs) |
||
Line 45: | Line 45: | ||
use pacstrap script to install all the necessary packages: | use pacstrap script to install all the necessary packages: | ||
pacstrap /mnt/arch base linux linux-firmware vim nano | pacstrap /mnt/arch base linux linux-firmware vim nano | ||
define disk partitions mounted into the filesystem: | |||
genfstab -U /mnt/arch >> /mnt/arch/etc/fstab | |||
use arch-chroot and enter the mounted disk as root: | |||
arch-chroot /mnt/arch |
Revision as of 17:03, 12 January 2022
download and create archlinux usb
download latest archlinux iso:
http://ftp.osuosl.org/pub/archlinux/iso/latest
create a live usb of archlinux:
dd if=/home/carlito/Desktop/isos/archlinux-2022.01.01-x86_64.iso of=/dev/sdb bs=4M status=progress
if you're using windows download etcher to create the live usb:
https://www.balena.io/etcher
boot the computer with the live usb and select Boot Arch Linux (x86_64):
create partitions
list all the disk and partitions on your system:
fdisk -l
select the disk you are going to format and partition:
parted /dev/vda
inside parted use the following commands:
mklabel gpt mkpart primary 1 1G mkpart primary 1G 100% set 1 boot on set 1 bios_grub on quit
format partitions:
mkfs.fat -F32 /dev/vda1 mkfs.ext4 /dev/vda2
configure network
configure your network interface:
ip addr add 192.168.75.88/24 dev enp1s0 ip route add default via 192.168.75.1
configure nameservers in /etc/resolv.conf:
nameserver 4.2.2.1 nameserver 4.2.2.2
if you have wifi you need to configure the following:
wpa_passphrase your-wifi-ssid your-wifi-password > /etc/wpa_supplicant.conf wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf & dhclient wlan0
mount partitions
create mount directory:
mkdir /mnt/arch
mount partitions:
mount /dev/vda2 /mnt/arch
create boot mount directory:
mkdir /mnt/arch/boot
mount boot partition:
mount /dev/vda1 /mnt/arch/boot
install archlinux
use pacstrap script to install all the necessary packages:
pacstrap /mnt/arch base linux linux-firmware vim nano
define disk partitions mounted into the filesystem:
genfstab -U /mnt/arch >> /mnt/arch/etc/fstab
use arch-chroot and enter the mounted disk as root:
arch-chroot /mnt/arch