From cb49dab032768453bcd35b17ca7fbf44d184c7b0 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 13 Sep 2024 10:06:20 +0200 Subject: [PATCH] update arch --- technology/linux/Arch Linux.md | 61 ++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 3 deletions(-) diff --git a/technology/linux/Arch Linux.md b/technology/linux/Arch Linux.md index 4e1cd67..7898134 100644 --- a/technology/linux/Arch Linux.md +++ b/technology/linux/Arch Linux.md @@ -1,12 +1,67 @@ --- -website: https://archlinux.org/ +website: https://archlinux.org obj: os +rev: 2024-09-13 --- # Arch Linux Arch is a very minimal [Linux](Linux.md) Distribution. It features many [packages](https://archlinux.org/packages/) installable with [Pacman](../applications/package%20managers/arch-linux/Pacman.md) and a useful [wiki](https://wiki.archlinux.org/). Additional software support is based on the [AUR](https://aur.archlinux.org/) -Installation of Arch Linux is typically done manually following the Wiki. Additionally there are install scripts like this one: +Installation of Arch Linux is typically done manually following the [Wiki](https://wiki.archlinux.org/title/Installation_guide). Additionally there are install scripts like this one: ```shell curl -L matmoul.github.io/archfi | bash -``` \ No newline at end of file +``` + +## Basic Install +```shell +# Set keyboard +loadkeys + +# List drives +fdisk -l + +# Partition +cfdisk /dev/ + +# Format +mkfs.fat -F 32 /dev/ +mkfs.ext4 /dev/ + +# Mount +mount /dev/ /mnt +mount --mkdir /dev/ /mnt/boot + +# Install Base +pacstrap -K /mnt base linux linux-firmware nano [...] + +# Configure +genfstab -U /mnt >> /mnt/etc/fstab + +arch-chroot /mnt + +# Time +ln -sf /usr/share/zoneinfo/Region/City /etc/localtime +hwclock --systohc + +# Language +nano /etc/locale.gen +locale-gen + +# Persist keyboard +nano /etc/vconsole.conf + +# Set hostname +nano /etc/hostname + +# ramfs +mkinitcpio -P + +# root password +passwd + +# Bootloader +bootctl install + +# Restart +reboot +```