Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:server:operating_systems:arch_linux [2022/01/06 08:00] – deleted WIP alert dan | en:server:operating_systems:arch_linux [2024/03/07 20:30] (current) – [Microcode] updated upstream changes - microcode hook in mkinitcpio.conf by default dan | ||
---|---|---|---|
Line 12: | Line 12: | ||
* NetworkManager | * NetworkManager | ||
* zram | * zram | ||
- | * doas | + | * doas/sudo |
**Desktop** | **Desktop** | ||
Line 18: | Line 18: | ||
* Xorg | * Xorg | ||
* KDE / Plasma | * KDE / Plasma | ||
- | * SDDM | + | * SDDM/xinit |
===== Download the ISO ===== | ===== Download the ISO ===== | ||
[[https:// | [[https:// | ||
+ | |||
+ | ==== Verify the ISO image ==== | ||
+ | |||
+ | Check the two files in the same folder with the following command(s): | ||
+ | |||
+ | * for Arch users | ||
+ | * '' | ||
+ | * other GnuPGP systems | ||
+ | * '' | ||
+ | * and check the sha256sum with the following command | ||
+ | * '' | ||
+ | |||
+ | <alert type=" | ||
===== Inital setup ===== | ===== Inital setup ===== | ||
Line 141: | Line 154: | ||
< | < | ||
- | pacstrap /mnt base base-devel linux-hardened linux-hardened-docs linux-hardened-headers linux-firmware nano networkmanager lvm2 opendoas | + | pacstrap /mnt base base-devel linux-hardened linux-hardened-docs linux-hardened-headers linux-firmware nano networkmanager lvm2 opendoas |
</ | </ | ||
+ | |||
+ | <alert type=" | ||
===== Configure the system ===== | ===== Configure the system ===== | ||
Line 219: | Line 234: | ||
< | < | ||
- | HOOKS=(base udev autodetect keyboard keymap | + | HOOKS=(base udev autodetect |
</ | </ | ||
Line 243: | Line 258: | ||
linux / | linux / | ||
initrd | initrd | ||
- | options cryptdevice=UUID=$(blkid -s UUID -o value /dev/sda2)=root root=/ | + | options cryptdevice=UUID=$(blkid -s UUID -o value /dev/sda2):root root=/ |
</ | </ | ||
Line 256: | Line 271: | ||
pacman -S amd-ucode | pacman -S amd-ucode | ||
</ | </ | ||
- | |||
- | and add '' | ||
- | |||
- | ==== NetworkManager ==== | ||
- | |||
- | < | ||
- | systemctl enable --now NetworkManager.service | ||
- | </ | ||
- | |||
==== doas ==== | ==== doas ==== | ||
Line 283: | Line 289: | ||
pacman -Rsn opendoas | pacman -Rsn opendoas | ||
pacman -S sudo | pacman -S sudo | ||
+ | </ | ||
+ | |||
+ | Enable '' | ||
+ | |||
+ | < | ||
+ | visudo | ||
+ | </ | ||
+ | < | ||
+ | %wheel ALL=(ALL: | ||
</ | </ | ||
Line 290: | Line 305: | ||
echo "alias sudo=' | echo "alias sudo=' | ||
alias sudoedit=' | alias sudoedit=' | ||
+ | ln -s $(which doas) / | ||
</ | </ | ||
Line 301: | Line 317: | ||
</ | </ | ||
+ | ==== zram ==== | ||
+ | |||
+ | |||
+ | === Module === | ||
+ | |||
+ | < | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | === Modprobe === | ||
+ | |||
+ | < | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | === Udev === | ||
+ | |||
+ | < | ||
+ | echo ' | ||
+ | </ | ||
+ | |||
+ | === Fstab === | ||
+ | |||
+ | < | ||
+ | echo "# swap | ||
+ | /dev/zram0 none swap defaults 0 0 | ||
+ | " >> /etc/fstab | ||
+ | </ | ||
+ | |||
+ | ==== Enable services ==== | ||
+ | |||
+ | < | ||
+ | systemctl enable --now NetworkManager.service | ||
+ | systemctl enable --now sshd.service | ||
+ | </ | ||
==== (Optional) Add key for home partition ==== | ==== (Optional) Add key for home partition ==== | ||
Line 318: | Line 369: | ||
< | < | ||
exit | exit | ||
+ | </ | ||
+ | < | ||
umount -R /mnt | umount -R /mnt | ||
reboot | reboot | ||
</ | </ | ||
- | <alert type=" | + | === (Optional) Connect to wifi if needed |
+ | |||
+ | < | ||
+ | nmcli d wifi list | ||
+ | nmcli dev wifi connect SSID password ' | ||
+ | </ | ||
+ | |||
+ | |||
+ | <alert type=" |