til/install-archlinux.md

112 lines
4.5 KiB
Markdown
Raw Normal View History

2020-02-02 04:02:43 +00:00
# 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.
2020-02-24 15:33:09 +00:00
Assume your laptop/PC is UEFI-capable.
2020-02-02 04:02:43 +00:00
---
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**.
2020-02-24 15:33:09 +00:00
Enable wifi with `wifi-menu`.
2020-02-02 04:02:43 +00:00
In step **Partition the disks**.
Use `cfdisk`.
2020-02-24 15:33:09 +00:00
Mount point `/mnt/efi` with `512 MiB`.
2020-02-02 04:02:43 +00:00
Skip swap because use swap file later.
In step **Boot loader**.
2020-03-06 04:41:33 +00:00
Use [GRUB: UEFI systems](https://wiki.archlinux.org/index.php/GRUB#UEFI_systems).
2020-02-02 04:02:43 +00:00
---
After finish **Installation guide**, don't rush to restart, read [General recommendations](https://wiki.archlinux.org/index.php/General_recommendations) to continue.
2020-02-23 17:54:34 +00:00
Always remember to check dependencies when install packages.
2020-02-02 04:02:43 +00:00
In step **System administration**.
2020-02-23 17:54:34 +00:00
Read [Users and groups](https://wiki.archlinux.org/index.php/Users_and_groups):
- Add user with [Zsh](https://wiki.archlinux.org/index.php/Zsh) shell.
- Set password.
- Enable [Sudo](https://wiki.archlinux.org/index.php/Sudo#Using_visudo) access.
2020-02-02 04:02:43 +00:00
In step **Graphical user interface**.
Display server - install [Xorg](https://wiki.archlinux.org/index.php/Xorg).
2020-02-18 09:00:53 +00:00
Desktop environments - install [Xfce](https://wiki.archlinux.org/index.php/Xfce) or [MATE](https://wiki.archlinux.org/index.php/MATE).
Display manager - install [LightDM](https://wiki.archlinux.org/index.php/LightDM) or [xinit](https://wiki.archlinux.org/index.php/Xinit).
2020-02-02 04:02:43 +00:00
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
```
2020-03-02 08:30:11 +00:00
Install [Reflector](https://wiki.archlinux.org/index.php/Reflector) to generate mirror list:
```sh
sudo reflector --verbose \
--country Singapore \
--country "Hong Kong" \
--age 12 --protocol https --sort rate \
--save /etc/pacman.d/mirrorlist
```
2020-02-02 04:02:43 +00:00
---
2020-02-24 15:33:09 +00:00
Final step is to read [List of applications](https://wiki.archlinux.org/index.php/List_of_applications). Only read section you need.
2020-02-04 13:19:22 +00:00
---
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.
2020-02-02 04:02:43 +00:00
---
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 13:19:22 +00:00
**2020-02-04** Add how to center windows in Xfce.
2020-02-18 09:00:53 +00:00
**2020-02-18** Add MATE and xinit.
2020-03-02 08:30:11 +00:00
**2020-03-02** Add Reflector.