Adapted to Matebook D (AMD Ryzen 5 2500U model KPL-W0X in 2018)
- systemd-boot (with Pacman hook for automatic updates)
- Automatic login (with systemd)
- AMD microcode
- Automatic sort of mirrors list by speed, synced within the last 12 hours and filtered by HTTPS protocol (Reflector with Pacman hook)
- Hibernate (power key) + suspend (lid close)
- Matebook D KPL-W0X hardware or similar
| Name | Type | Mountpoint |
|---|---|---|
| nvme0n1 | disk | |
| ├─nvme0n1p1 | part | /boot |
| ├─nvme0n1p2 | part | / |
| ├─nvme0n1p3 | part | /home |
- UFW (deny incoming, allow outgoing)
- TLP (default settings)
- base16-material-darker (alacritty, neovim, rofi, waybar, VS Code)
- swaywm:
- autostart on tty1
- waybar: onclick pavucontrol (volume control) and nmtui (ncli network manager)
- swayidle and swaylock: automatic sleep and lock
- Alacritty terminal
- rofi as application launcher
- slurp and grim for screenshots
- zsh:
- powerlevel9k theme
- History
- oh-my-zsh
- GTK theme and icons: Qogir
- Other applications: sublime-text, chromium, git, openssh, thunar, upower, htop, nnn and a few others
See 'Detailed installation guide' below for the expanded version
- Increase cowspace partition so that git can be downloaded without before chroot:
mount -o remount,size=2G /run/archiso/cowspace - Install git:
pacman -Sy git - Clone repository:
git clone https://github.com/luca-a/minimal-arch-linux.git - Run install script:
bash minimal-arch-linux/1_arch_install.sh
- Download and boot into the latest Arch Linux iso
- Connect to the internet. If using wifi, you can use
wifi-menuto connect to a network - Clear all existing partitions (see below: MISC - How to clear all partitions)
- (optional) Give highest priority to the closest mirror to you on /etc/pacman.d/mirrorlist by moving it to the top
wget https://raw.githubusercontent.com/luca-a/minimal-arch-linux/master/1_arch_install.sh- Change the variables at the top of the file (lines 3 through 9)
- continent_country must have the following format: Zone/SubZone . e.g. Europe/Berlin
- run
timedatectl list-timezonesto see full list of zones and subzones
- Make the script executable:
chmod +x 1_arch_install.sh - Run the script:
./1_arch_install.sh - Reboot into Arch Linux
- Connect to wifi with
nmtui wget https://raw.githubusercontent.com/luca-a/minimal-arch-linux/master/2_arch_post_install.sh- Make the script executable:
chmod +x 2_arch_post_install.sh - Run the script:
./2_arch_post_install.sh
gdisk /dev/nvme0n1
x
z
y
y
git config --global user.email "Github external email"
git config --global user.name "Github username"
ssh-keygen -t rsa -b 4096 -C "Github email"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
copy SSH key and add to Github (eg. nvim ~/.ssh/id_rsa.pub and copy content)
mkdir -p /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot
cryptsetup luksOpen /dev/nvme0n1p2 cryptoVols
mount /dev/mapper/Arch-root /mnt
arch-chroot /mnt
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
yes | makepkg -si
cd ..
rm -rf yay-bin
- Ricing: First rice on my super old MacBook Air!
- Wallpaper: Photo by WestBoundary Photography chris gill on Unsplash
- Linux on MateBook: GNU/Linux on MateBook D 14" AMD Ryzen 5 2500U
- Change GTK theme colors to match Horizon's
- Improve font rendering with this or this
- Support secure boot
- Waybar: add battery discharge rate. Use this config as reference: snippets and modules
- Use swaylock-blur
- Add gestures to switch workspaces: example