knowledge/technology/linux/Arch Linux.md

70 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2023-12-04 10:02:23 +00:00
---
2024-09-13 08:06:20 +00:00
website: https://archlinux.org
2023-12-04 10:02:23 +00:00
obj: os
2024-09-13 08:06:20 +00:00
rev: 2024-09-13
2023-12-04 10:02:23 +00:00
---
# Arch Linux
2024-01-17 08:00:45 +00:00
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/)
2023-12-04 10:02:23 +00:00
2024-09-13 08:06:20 +00:00
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:
2023-12-04 10:02:23 +00:00
```shell
2024-01-17 08:44:04 +00:00
curl -L matmoul.github.io/archfi | bash
2024-09-13 08:06:20 +00:00
```
2024-12-17 13:25:09 +00:00
You can create a (custom) ISO with [archiso](./archiso.md).
2024-09-13 08:06:20 +00:00
## Basic Install
```shell
# Set keyboard
loadkeys <layout>
# List drives
fdisk -l
# Partition
cfdisk /dev/<device>
# Format
mkfs.fat -F 32 /dev/<boot>
mkfs.ext4 /dev/<root>
# Mount
mount /dev/<root> /mnt
mount --mkdir /dev/<boot> /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
```