til/install-archlinux.md

109 lines
4.9 KiB
Markdown

# Install Archlinux
Install Archlinux is thing I always want to do for my laptop/PC since I had my laptop in ninth grade.
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.
---
First thing as breathe air is to read [Installation guide](https://wiki.archlinux.org/index.php/Installation_guide). Read through the guide slowly and carefully.
After that, get an USB and follow [USB flash installation media](https://wiki.archlinux.org/index.php/USB_flash_installation_media). Use `dd` on Linux/MacOS or `Rufus` on Windows.
When booting Archlinux ISO, follow **Installation guide**, step by step.
In step **Connect to the internet**.
I mainly use Wifi with `wifi-menu`.
In step **Partition the disks**.
Use `cfdisk`.
Use `UEFI` if possible, and mount point `/mnt/efi` with `512 MiB`.
Skip swap because use swap file later.
In step **Boot loader**.
Use GRUB with [UEFI systems](https://wiki.archlinux.org/index.php/GRUB#UEFI_systems).
Because strange things will likely happen, use `grub-install` with `--removable`, and remove `--bootloader-id`.
---
After finish **Installation guide**, don't rush to restart, read [General recommendations](https://wiki.archlinux.org/index.php/General_recommendations) to continue.
In step **System administration**.
Read [Users and groups](https://wiki.archlinux.org/index.php/Users_and_groups) to add new user, include [Sudo](https://wiki.archlinux.org/index.php/Sudo) and [Zsh](https://wiki.archlinux.org/index.php/Zsh).
In step **Graphical user interface**.
Display server - install [Xorg](https://wiki.archlinux.org/index.php/Xorg).
Desktop environments - install [Xfce](https://wiki.archlinux.org/index.php/Xfce).
Display manager - install [LightDM](https://wiki.archlinux.org/index.php/LightDM).
User directories - install [XDG user directories](https://wiki.archlinux.org/index.php/XDG_user_directories).
Read [File manager functionality](https://wiki.archlinux.org/index.php/File_manager_functionality).
In step **Multimedia**.
Sound - install [ALSA](https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture), [PulseAudio](https://wiki.archlinux.org/index.php/PulseAudio).
In step **Networking**.
Network configuration - install [NetworkManager](https://wiki.archlinux.org/index.php/NetworkManager).
Clock synchronization - install [systemd-timesyncd](https://wiki.archlinux.org/index.php/Systemd-timesyncd).
In step **Optimization**.
Read [Solid state drive](https://wiki.archlinux.org/index.php/Solid_state_drive).
In step **Appearance**.
Read [Fonts](https://wiki.archlinux.org/index.php/Fonts).
Use swap file - install [systemd-swap](https://wiki.archlinux.org/index.php/Swap#systemd-swap).
---
[Improving performance](https://wiki.archlinux.org/index.php/Improving_performance) is small step inside **Optimization**, but it's big to me.
Read [Watchdogs](https://wiki.archlinux.org/index.php/Improving_performance#Watchdogs).
Read [Staggered spin-up](https://wiki.archlinux.org/index.php/Improving_performance/Boot_process#Staggered_spin-up).
Read [Silent boot](https://wiki.archlinux.org/index.php/Silent_boot).
---
`pacman` is your friend!
[Removing unused packages (orphans)](<https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Removing_unused_packages_(orphans)>).
[The Configuration File, pacman.conf](https://wiki.manjaro.org/index.php?title=Pacman_Overview#The_Configuration_File.2C_pacman.conf).
```sh
sudo pacman -Syu && sudo pacman -Rns $(pacman -Qtdq) || true
```
---
Final step is to read [List of applications](https://wiki.archlinux.org/index.php/List_of_applications). Be careful cause it's a long list.
**Web browsers** - install [Chromium](https://wiki.archlinux.org/index.php/Chromium), [Firefox](https://wiki.archlinux.org/index.php/Firefox).
**BitTorrent clients** - install [qBittorrent](https://www.archlinux.org/packages/community/x86_64/qbittorrent/).
**Image organizers** - install [Shotwell](https://www.archlinux.org/packages/community/x86_64/shotwell/).
**Screencast** - install [OBS](https://www.archlinux.org/packages/community/x86_64/obs-studio/).
**Text input** - install [Fcitx](https://wiki.archlinux.org/index.php/Fcitx).
**Color management** - install [Redshift](https://wiki.archlinux.org/index.php/Redshift).
**Bluetooth management** - install [Blueman](https://wiki.archlinux.org/index.php/Blueman).
**Office** - install [LibreOffice](https://wiki.archlinux.org/index.php/LibreOffice).
**Taskbars** - install [Plank](https://wiki.archlinux.org/index.php/Plank).
---
Remove line across screen when using Plank in Xfce: Settings Manager > Window Manager Tweaks > Compositor > **Uncheck** Show shadows under dock windows.
Center windows in Xfce: Settings Manager > Window Manager Tweaks > Placement > Move slider to full large and **Check** At the center of the screen.
---
This is the end. Future update is coming if I feel something need to be changed or I get boring and change my taste :)
**2020-02-04** Add how to center windows in Xfce.