<!doctype html><metacharset=utf-8><metaname=viewportcontent="width=device-width,initial-scale=1"><linkrel=stylesheethref=https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.1.0/github-markdown-dark.css><style>.markdown-body{box-sizing:border-box;min-width:200px;max-width:980px;margin:0auto;padding:45px}@media(max-width:767px){.markdown-body{padding:15px}}</style><bodyclass=markdown-body><ahref=index>Index</a><h1><aid=user-content-install-arch-linuxclass=anchoraria-hidden=truehref=#install-arch-linux><spanaria-hidden=trueclass="octicon octicon-link"></span></a>Install Arch Linux</h1><p>Install Arch Linux is thing I always want to do for my laptop/PC since I had my laptop in ninth grade.<p>This is not a guide for everyone, this is just save for myself in a future and for anyone who want to walk in my shoes.<h2><aid=user-content-installation-guideclass=anchoraria-hidden=truehref=#installation-guide><spanaria-hidden=trueclass="octicon octicon-link"></span></a><ahref=https://wiki.archlinux.org/index.php/Installation_guiderel=nofollow>Installation guide</a></h2><h3><aid=user-content-pre-installationclass=anchoraria-hidden=truehref=#pre-installation><spanaria-hidden=trueclass="octicon octicon-link"></span></a>Pre-installation</h3><p>Check disks carefully:<divclass="highlight highlight-source-shell"><pre>lsblk</pre></div><p><ahref=https://wiki.archlinux.org/index.php/USB_flash_installation_mediumrel=nofollow>USB flash installation medium</a><h4><aid=user-content-verify-the-boot-modeclass=anchoraria-hidden=truehref=#verify-the-boot-mode><spanaria-hidden=trueclass="octicon octicon-link"></span></a>Verify the boot mode</h4><p>Check UEFI mode:<divclass="highlight highlight-source-shell"><pre>ls /sys/firmware/efi/efivars</pre></div><h4><aid=user-content-connect-to-the-internetclass=anchoraria-hidden=truehref=#connect-to-the-internet><spanaria-hidden=trueclass="octicon octicon-link"></span></a>Connect to the internet</h4><p>For wifi, use <ahref=https://wiki.archlinux.org/index.php/Iwdrel=nofollow>iwd</a>.<h4><aid=user-content-partition-the-disksclass=anchoraria-hidden=truehref=#partition-the-disks><spanaria-hidden=trueclass="octicon octicon-link"></span></a>Partition the disks</h4><p><ahref=https://wiki.archlinux.org/index.php/GPT_fdiskrel=nofollow>GPT fdisk</a>:<divclass="highlight highlight-source-shell"><pre>cgdisk /dev/sdx</pre></div><p><ahref=https://wiki.archlinux.org/index.php/Partitioning#Partition_schemerel=nofollow>Partition scheme</a><p>UEFI/GPT layout:<table><thead><tr><th>Mount point<th>Partition<th>Partition type<th>Suggested size<tbody><tr><td><code>/mnt/efi</code><td><code>/dev/efi_system_partition</code><td>EFI System Partition<td>512 MiB<tr><td><code>/mnt/boot</code><td><code>/dev/extended_boot_loader_partition</code><td>Extended Boot Loader Partition<td>1 GiB<tr><td><code>/mnt</code><td><code>/dev/root_partition</code><td>Root Partition<td></table><p>BIOS/GPT layout:<table><thead><tr><th>Mount point<th>Partition<th>Partition type<th>Suggested size<tbody><tr><td><td><td>BIOS boot partition<td>1 MiB<tr><td><code>/mnt</code><td><code>/dev/root_partition</code><td>Root Partition<td></table><p>LVM:<divclass="highlight highlight-source-shell"><pre><spanclass=pl-c><spanclass=pl-c>#</span> Create physical volumes</span>
mount --mkdir /dev/extended_boot_loader_partition /mnt/boot</pre></div><h3><aid=user-content-installationclass=anchoraria-hidden=truehref=#installation><spanaria-hidden=trueclass="octicon octicon-link"></span></a>Installation</h3><divclass="highlight highlight-source-shell"><pre>pacstrap -K /mnt base linux linux-firmware
Can not run <code>homectl</code> when install Arch Linux.
Should run on the first boot.<h3><aid=user-content-desktop-environmentclass=anchoraria-hidden=truehref=#desktop-environment><spanaria-hidden=trueclass="octicon octicon-link"></span></a>Desktop Environment</h3><p>Install <ahref=https://wiki.archlinux.org/index.php/Xorgrel=nofollow>Xorg</a>:<divclass="highlight highlight-source-shell"><pre>pacman -Syu xorg-server</pre></div><h4><aid=user-content-gnomeclass=anchoraria-hidden=truehref=#gnome><spanaria-hidden=trueclass="octicon octicon-link"></span></a><ahref=https://wiki.archlinux.org/index.php/GNOMErel=nofollow>GNOME</a></h4><divclass="highlight highlight-source-shell"><pre>pacman -Syu gnome-shell \
gst-plugin-pipewire pipewire-v4l2</pre></div><h3><aid=user-content-flatpak-wipclass=anchoraria-hidden=truehref=#flatpak-wip><spanaria-hidden=trueclass="octicon octicon-link"></span></a><ahref=https://wiki.archlinux.org/title/Flatpakrel=nofollow>Flatpak (WIP)</a></h3><divclass="highlight highlight-source-shell"><pre>pacman -Syu flatpak</pre></div><h2><aid=user-content-improving-performanceclass=anchoraria-hidden=truehref=#improving-performance><spanaria-hidden=trueclass="octicon octicon-link"></span></a><ahref=https://wiki.archlinux.org/index.php/improving_performancerel=nofollow>Improving performance</a></h2><p><ahref=https://wiki.archlinux.org/index.php/swap#Swap_filerel=nofollow>https://wiki.archlinux.org/index.php/swap#Swap_file</a><p><ahref=https://wiki.archlinux.org/index.php/swap#Swappinessrel=nofollow>https://wiki.archlinux.org/index.php/swap#Swappiness</a><p><ahref=https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limitrel=nofollow>https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limit</a><p><ahref=https://wiki.archlinux.org/index.php/Core_dump#Disabling_automatic_core_dumpsrel=nofollow>https://wiki.archlinux.org/index.php/Core_dump#Disabling_automatic_core_dumps</a><p><ahref=https://wiki.archlinux.org/index.php/Solid_state_drive#Periodic_TRIMrel=nofollow>https://wiki.archlinux.org/index.php/Solid_state_drive#Periodic_TRIM</a><p><ahref=https://wiki.archlinux.org/index.php/Silent_bootrel=nofollow>https://wiki.archlinux.org/index.php/Silent_boot</a><p><ahref=https://wiki.archlinux.org/title/Improving_performance#Watchdogsrel=nofollow>https://wiki.archlinux.org/title/Improving_performance#Watchdogs</a><p><ahref=https://wiki.archlinux.org/title/PRIMErel=nofollow>https://wiki.archlinux.org/title/PRIME</a><h2><aid=user-content-in-the-endclass=anchoraria-hidden=truehref=#in-the-end><spanaria-hidden=trueclass="octicon octicon-link"></span></a>In the end</h2><p>This guide is updated regularly I promise.</p><ahref=mailto:hauvipapro+posts@gmail.com>Feel free to ask me via email</a>