2020-05-24 10:44:40 +00:00
|
|
|
# Install Arch Linux
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-05-24 10:44:40 +00:00
|
|
|
Install Arch Linux is thing I always want to do for my laptop/PC since I had my laptop in ninth grade.
|
2020-02-02 04:02:43 +00:00
|
|
|
|
|
|
|
This is not a guide for everyone, this is just save for myself in a future and for anyone who want to taste a bit.
|
|
|
|
|
2020-02-24 15:33:09 +00:00
|
|
|
Assume your laptop/PC is UEFI-capable.
|
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
## [Installation guide](https://wiki.archlinux.org/index.php/Installation_guide)
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-05-20 09:14:22 +00:00
|
|
|
Check disks carefully:
|
2020-05-19 18:49:39 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
lsblk
|
|
|
|
```
|
|
|
|
|
2021-01-30 07:14:03 +00:00
|
|
|
[USB flash installation medium](https://wiki.archlinux.org/index.php/USB_flash_installation_medium)
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
### Connect to the internet
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-11-24 03:32:09 +00:00
|
|
|
Read [iwd/iwctl](Applications/System/iwd.md).
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
### Partition the disks
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
Partition:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cfdisk
|
|
|
|
```
|
|
|
|
|
2020-03-28 14:38:17 +00:00
|
|
|
| Mount point | Partition type | Suggested size |
|
|
|
|
| ----------- | -------------------- | -------------- |
|
2020-10-07 08:40:52 +00:00
|
|
|
| `/mnt/efi` | EFI system partition | 512 MiB |
|
|
|
|
| `/mnt/boot` | Linux extended boot | 1 GiB |
|
2020-10-11 17:26:10 +00:00
|
|
|
| `/mnt` | Linux | 24 GiB |
|
2020-11-12 07:02:30 +00:00
|
|
|
| `/mnt/var` | Linux | 24 GiB |
|
2020-10-07 08:40:52 +00:00
|
|
|
| `/mnt/home` | Linux | |
|
2020-03-28 14:38:17 +00:00
|
|
|
|
2020-05-19 18:49:39 +00:00
|
|
|
Format:
|
|
|
|
|
|
|
|
```sh
|
2020-10-11 17:26:10 +00:00
|
|
|
# /efi, /boot
|
2020-10-07 08:40:52 +00:00
|
|
|
mkfs.fat -F32 /dev/sdxY
|
2020-05-19 18:49:39 +00:00
|
|
|
|
2020-10-11 17:26:10 +00:00
|
|
|
# /, /var, /home
|
2020-10-07 08:40:52 +00:00
|
|
|
mkfs.ext4 /dev/sdxY
|
2020-05-19 18:49:39 +00:00
|
|
|
```
|
|
|
|
|
2020-08-11 06:05:09 +00:00
|
|
|
Mount:
|
|
|
|
|
|
|
|
```sh
|
2020-10-07 08:40:52 +00:00
|
|
|
# /
|
|
|
|
mount /dev/sdxY /mnt
|
|
|
|
|
|
|
|
# /efi
|
|
|
|
mkdir -p /mnt/efi
|
|
|
|
mount /dev/sdxY /mnt/efi
|
2020-08-11 06:05:09 +00:00
|
|
|
|
2020-10-07 08:40:52 +00:00
|
|
|
# /boot
|
2020-08-11 06:05:09 +00:00
|
|
|
mkdir -p /mnt/boot
|
2020-10-07 08:40:52 +00:00
|
|
|
mount /dev/sdxY /mnt/boot
|
2020-08-11 06:05:09 +00:00
|
|
|
|
2020-10-11 17:26:10 +00:00
|
|
|
# /var
|
|
|
|
mkdir -p /mnt/var
|
|
|
|
mount /dev/sdxY /mnt/var
|
|
|
|
|
2020-10-07 08:40:52 +00:00
|
|
|
# /home
|
2020-08-11 06:05:09 +00:00
|
|
|
mkdir -p /mnt/home
|
2020-10-07 08:40:52 +00:00
|
|
|
mount /dev/sdxY /mnt/home
|
2020-08-11 06:05:09 +00:00
|
|
|
```
|
|
|
|
|
2020-08-11 17:00:24 +00:00
|
|
|
### Installation
|
|
|
|
|
|
|
|
```sh
|
2021-02-13 06:45:01 +00:00
|
|
|
pacstrap /mnt base base-devel linux linux-lts linux-zen linux-firmware neovim
|
|
|
|
```
|
|
|
|
|
|
|
|
Using Intel:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pacstrap /mnt intel-ucode
|
|
|
|
```
|
|
|
|
|
|
|
|
Using AMD:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pacstrap /mnt amd-ucode
|
2020-08-11 17:00:24 +00:00
|
|
|
```
|
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
### Boot loader
|
|
|
|
|
2020-08-11 17:00:24 +00:00
|
|
|
[systemd-boot](Applications/System/systemd-boot.md)
|
2020-03-13 04:04:51 +00:00
|
|
|
|
|
|
|
## [General recommendations](https://wiki.archlinux.org/index.php/General_recommendations)
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-03-28 14:38:17 +00:00
|
|
|
Always remember to check **dependencies** when install packages.
|
2020-02-23 17:54:34 +00:00
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
### System administration
|
|
|
|
|
2020-08-11 17:00:24 +00:00
|
|
|
Add user:
|
2020-03-28 14:38:17 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
useradd -m -G additional_groups -s login_shell username
|
|
|
|
```
|
|
|
|
|
2020-08-11 17:00:24 +00:00
|
|
|
Set password:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
passwd username
|
|
|
|
```
|
|
|
|
|
|
|
|
Enable sudo:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
EDITOR=nvim visudo
|
|
|
|
|
|
|
|
# Uncomment group wheel
|
|
|
|
```
|
|
|
|
|
|
|
|
| Pseudo | Real |
|
2020-05-19 19:27:28 +00:00
|
|
|
| ------------------- | ----------- |
|
|
|
|
| `additional_groups` | `wheel` |
|
|
|
|
| `login_shell` | `/bin/bash` |
|
2020-08-11 17:00:24 +00:00
|
|
|
| `username` | `joker` |
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-08-11 17:00:24 +00:00
|
|
|
### Desktop Environment
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-05-19 19:27:28 +00:00
|
|
|
Install [Xorg](https://wiki.archlinux.org/index.php/Xorg):
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-05-19 19:27:28 +00:00
|
|
|
```sh
|
|
|
|
pacman -Syu xorg-server
|
|
|
|
```
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-05-19 19:27:28 +00:00
|
|
|
Install [GNOME](https://wiki.archlinux.org/index.php/GNOME):
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
```sh
|
2021-02-13 06:17:05 +00:00
|
|
|
pacman -Syu gnome
|
2020-03-13 04:04:51 +00:00
|
|
|
```
|
|
|
|
|
2021-02-13 06:17:05 +00:00
|
|
|
Install [MATE](https://wiki.archlinux.org/index.php/MATE)
|
2020-03-13 04:04:51 +00:00
|
|
|
|
|
|
|
```sh
|
2021-02-13 06:17:05 +00:00
|
|
|
pacman -Syu mate mate-extra
|
|
|
|
```
|
|
|
|
|
|
|
|
Install [Xfce](https://wiki.archlinux.org/index.php/xfce#Installation)
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pacman -Syu xfce4 xfce4-goodies
|
|
|
|
```
|
|
|
|
|
|
|
|
Install and enable [GDM](https://wiki.archlinux.org/index.php/GDM) for GNOME:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pacman -Syu gdm
|
|
|
|
|
2020-05-19 19:27:28 +00:00
|
|
|
systemctl enable gdm.service
|
2021-02-13 06:17:05 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Install and enable [LightDM](https://wiki.archlinux.org/index.php/LightDM) for MATE, Xfce:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pacman -Syu lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings
|
|
|
|
|
|
|
|
systemctl enable lightdm.service
|
|
|
|
```
|
|
|
|
|
|
|
|
Install and enable [NetworkManager](https://wiki.archlinux.org/index.php/NetworkManager):
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pacman -Syu networkmanager
|
|
|
|
|
|
|
|
# Support OpenVPN
|
|
|
|
pacman -Syu networkmanager-openvpn
|
2020-02-02 04:02:43 +00:00
|
|
|
|
2021-02-13 06:28:09 +00:00
|
|
|
# Support MATE, Xfce
|
|
|
|
pacman -Suy network-manager-applet
|
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
systemctl enable NetworkManager.service
|
2021-02-13 06:17:05 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Install and enable [Bluetooth](https://wiki.archlinux.org/index.php/Bluetooth):
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pacman -Syu bluez bluez-utils
|
2020-03-13 04:04:51 +00:00
|
|
|
|
2020-08-11 17:00:24 +00:00
|
|
|
systemctl enable bluetooth.service
|
2021-02-13 06:17:05 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Enable [systemd-timesyncd](https://wiki.archlinux.org/index.php/systemd-timesyncd)
|
2020-08-11 17:00:24 +00:00
|
|
|
|
2021-02-13 06:17:05 +00:00
|
|
|
```sh
|
2020-03-13 04:04:51 +00:00
|
|
|
timedatectl set-ntp true
|
|
|
|
```
|
|
|
|
|
|
|
|
## [List of applications](https://wiki.archlinux.org/index.php/List_of_applications)
|
|
|
|
|
2020-05-06 18:38:17 +00:00
|
|
|
### [pacman](https://wiki.archlinux.org/index.php/pacman)
|
|
|
|
|
2020-10-07 08:40:52 +00:00
|
|
|
Uncomment in `/etc/pacman.conf`:
|
2020-05-06 18:38:17 +00:00
|
|
|
|
|
|
|
```txt
|
|
|
|
# Misc options
|
|
|
|
Color
|
|
|
|
```
|
|
|
|
|
|
|
|
### [AUR](https://wiki.archlinux.org/index.php/Arch_User_Repository)
|
|
|
|
|
|
|
|
Install AUR package:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
makepkg -sric
|
|
|
|
```
|
|
|
|
|
2020-03-13 04:04:51 +00:00
|
|
|
## In the end
|
2020-02-04 13:19:22 +00:00
|
|
|
|
2020-03-28 14:38:17 +00:00
|
|
|
This guide is updated regularly I promise.
|