2023-07-18 18:38:30 +00:00
|
|
|
<!doctype html>
|
2022-12-25 19:13:58 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
2023-08-06 07:41:38 +00:00
|
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown.min.css"
|
2022-12-25 19:13:58 +00:00
|
|
|
/>
|
2023-04-01 03:37:48 +00:00
|
|
|
<title>haunt98 posts</title>
|
2022-12-25 19:13:58 +00:00
|
|
|
</head>
|
|
|
|
<style>
|
|
|
|
.markdown-body {
|
|
|
|
box-sizing: border-box;
|
|
|
|
min-width: 200px;
|
|
|
|
max-width: 980px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 45px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
.markdown-body {
|
|
|
|
padding: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<body class="markdown-body">
|
2023-08-09 07:22:58 +00:00
|
|
|
<h2>
|
|
|
|
<a href="index.html"><code>~</code></a>
|
|
|
|
</h2>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h1 id="user-content-install-arch-linux">
|
|
|
|
<a class="heading-link" href="#install-arch-linux"
|
|
|
|
>Install Arch Linux<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</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>
|
|
|
|
<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.
|
|
|
|
</p>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h2 id="user-content-installation-guide">
|
|
|
|
<a class="heading-link" href="#installation-guide"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a
|
|
|
|
href="https://wiki.archlinux.org/index.php/Installation_guide"
|
|
|
|
rel="nofollow"
|
|
|
|
>Installation guide</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h2>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h3 id="user-content-pre-installation">
|
|
|
|
<a class="heading-link" href="#pre-installation"
|
|
|
|
>Pre-installation<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h3>
|
|
|
|
<p>Check disks carefully:</p>
|
|
|
|
<div class="highlight highlight-source-shell"><pre>lsblk</pre></div>
|
|
|
|
<p>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/USB_flash_installation_medium"
|
|
|
|
rel="nofollow"
|
|
|
|
>USB flash installation medium</a
|
|
|
|
>
|
|
|
|
</p>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-verify-the-boot-mode">
|
|
|
|
<a class="heading-link" href="#verify-the-boot-mode"
|
|
|
|
>Verify the boot mode<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<p>Check UEFI mode:</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>ls /sys/firmware/efi/efivars</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-connect-to-the-internet">
|
|
|
|
<a class="heading-link" href="#connect-to-the-internet"
|
|
|
|
>Connect to the internet<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<p>
|
|
|
|
For wifi, use
|
|
|
|
<a href="https://wiki.archlinux.org/index.php/Iwd" rel="nofollow">iwd</a>.
|
|
|
|
</p>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-partition-the-disks">
|
|
|
|
<a class="heading-link" href="#partition-the-disks"
|
|
|
|
>Partition the disks<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<p>
|
|
|
|
<a href="https://wiki.archlinux.org/index.php/GPT_fdisk" rel="nofollow"
|
|
|
|
>GPT fdisk</a
|
|
|
|
>:
|
|
|
|
</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>cgdisk /dev/sdx</pre>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/Partitioning#Partition_scheme"
|
|
|
|
rel="nofollow"
|
|
|
|
>Partition scheme</a
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
<p>UEFI/GPT layout:</p>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Mount point</th>
|
|
|
|
<th>Partition</th>
|
|
|
|
<th>Partition type</th>
|
|
|
|
<th>Suggested size</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><code>/mnt/efi</code></td>
|
|
|
|
<td><code>/dev/efi_system_partition</code></td>
|
|
|
|
<td>EFI System Partition</td>
|
|
|
|
<td>512 MiB</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><code>/mnt/boot</code></td>
|
|
|
|
<td><code>/dev/extended_boot_loader_partition</code></td>
|
|
|
|
<td>Extended Boot Loader Partition</td>
|
|
|
|
<td>1 GiB</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><code>/mnt</code></td>
|
|
|
|
<td><code>/dev/root_partition</code></td>
|
|
|
|
<td>Root Partition</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-05-06 07:11:26 +00:00
|
|
|
<p>
|
|
|
|
Why not <code>/boot/efi</code>? See
|
|
|
|
<a
|
|
|
|
href="https://github.com/systemd/systemd/pull/3757#issuecomment-234290236"
|
|
|
|
>Lennart Poettering comment</a
|
|
|
|
>.
|
|
|
|
</p>
|
2022-12-30 09:26:06 +00:00
|
|
|
<p>BIOS/GPT layout:</p>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Mount point</th>
|
|
|
|
<th>Partition</th>
|
|
|
|
<th>Partition type</th>
|
|
|
|
<th>Suggested size</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td>BIOS boot partition</td>
|
|
|
|
<td>1 MiB</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><code>/mnt</code></td>
|
|
|
|
<td><code>/dev/root_partition</code></td>
|
|
|
|
<td>Root Partition</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>LVM:</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre><span class="pl-c"><span class="pl-c">#</span> Create physical volumes</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
pvcreate /dev/sdaX
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Create volume groups</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
vgcreate RootGroup /dev/sdaX /dev/sdaY
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Create logical volumes</span>
|
2022-12-30 09:26:06 +00:00
|
|
|
lvcreate -l +100%FREE RootGroup -n rootvol</pre>
|
|
|
|
</div>
|
|
|
|
<p>Format:</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre><span class="pl-c"><span class="pl-c">#</span> efi</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
mkfs.fat -F32 /dev/efi_system_partition
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> boot</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
mkfs.fat -F32 /dev/extended_boot_loader_partition
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> root</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
mkfs.ext4 -L ROOT /dev/root_partition
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> root with btrfs</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
mkfs.btrfs -L ROOT /dev/root_partition
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> root on lvm</span>
|
2022-12-30 09:26:06 +00:00
|
|
|
mkfs.ext4 /dev/RootGroup/rootvol</pre>
|
|
|
|
</div>
|
|
|
|
<p>Mount:</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre><span class="pl-c"><span class="pl-c">#</span> root</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
mount /dev/root_partition /mnt
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> root with btrfs</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
mount -o compress=zstd /dev/root_partition /mnt
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> root on lvm</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
mount /dev/RootGroup/rootvol /mnt
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> efi</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
mount --mkdir /dev/efi_system_partition /mnt/efi
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> boot</span>
|
2022-12-30 09:26:06 +00:00
|
|
|
mount --mkdir /dev/extended_boot_loader_partition /mnt/boot</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h3 id="user-content-installation">
|
|
|
|
<a class="heading-link" href="#installation"
|
|
|
|
>Installation<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h3>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>pacstrap -K /mnt base linux linux-firmware
|
2022-12-25 08:38:53 +00:00
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> AMD</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
pacstrap -K /mnt amd-ucode
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Intel</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
pacstrap -K /mnt intel-ucode
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Btrfs</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
pacstrap -K /mnt btrfs-progs
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> LVM</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
pacstrap -K /mnt lvm2
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Text editor</span>
|
2022-12-30 09:26:06 +00:00
|
|
|
pacstrap -K /mnt neovim</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h3 id="user-content-configure">
|
|
|
|
<a class="heading-link" href="#configure"
|
|
|
|
>Configure<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h3>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-fstab">
|
|
|
|
<a class="heading-link" href="#fstab"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a href="https://wiki.archlinux.org/index.php/Fstab" rel="nofollow"
|
|
|
|
>fstab</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>genfstab -U /mnt <span class="pl-k">>></span> /mnt/etc/fstab</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-chroot">
|
|
|
|
<a class="heading-link" href="#chroot"
|
|
|
|
>Chroot<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>arch-chroot /mnt</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-time-zone">
|
|
|
|
<a class="heading-link" href="#time-zone"
|
|
|
|
>Time zone<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>
|
|
|
|
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
|
2022-12-25 18:52:03 +00:00
|
|
|
|
2022-12-30 09:26:06 +00:00
|
|
|
hwclock --systohc</pre
|
|
|
|
>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-localization">
|
|
|
|
<a class="heading-link" href="#localization"
|
|
|
|
>Localization:<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<p>Edit <code>/etc/locale.gen</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre><span class="pl-c"># Uncomment en_US.UTF-8 UTF-8</span></pre>
|
|
|
|
</div>
|
|
|
|
<p>Generate locales:</p>
|
|
|
|
<div class="highlight highlight-source-shell"><pre>locale-gen</pre></div>
|
|
|
|
<p>Edit <code>/etc/locale.conf</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre>LANG=en_US.UTF-8</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-network-configuration">
|
|
|
|
<a class="heading-link" href="#network-configuration"
|
|
|
|
>Network configuration<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<p>Edit <code>/etc/hostname</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock"><pre>myhostname</pre></div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-initramfs">
|
|
|
|
<a class="heading-link" href="#initramfs"
|
|
|
|
>Initramfs<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<p>Edit <code>/etc/mkinitcpio.conf</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre><span class="pl-c"># LVM</span>
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"># https://wiki.archlinux.org/title/Install_Arch_Linux_on_LVM#Adding_mkinitcpio_hooks</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
HOOKS=(base udev ... block lvm2 filesystems)
|
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"># https://wiki.archlinux.org/title/mkinitcpio#Common_hooks</span>
|
2022-12-30 09:26:06 +00:00
|
|
|
<span class="pl-c"># Replace udev with systemd</span></pre>
|
|
|
|
</div>
|
|
|
|
<div class="highlight highlight-source-shell"><pre>mkinitcpio -P</pre></div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-root-password">
|
|
|
|
<a class="heading-link" href="#root-password"
|
|
|
|
>Root password<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<div class="highlight highlight-source-shell"><pre>passwd</pre></div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-addition">
|
|
|
|
<a class="heading-link" href="#addition"
|
|
|
|
>Addition<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h5 id="user-content-networkmanager-wip">
|
|
|
|
<a class="heading-link" href="#networkmanager-wip"></a
|
2023-01-07 16:57:51 +00:00
|
|
|
><a href="https://wiki.archlinux.org/title/NetworkManager" rel="nofollow"
|
|
|
|
>NetworkManager (WIP)</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2023-01-07 16:57:51 +00:00
|
|
|
</h5>
|
2022-12-30 09:26:06 +00:00
|
|
|
<div class="highlight highlight-source-shell">
|
2023-01-07 16:57:51 +00:00
|
|
|
<pre>pacman -Syu networkmanager dhcpcd iwd
|
2022-12-25 19:13:58 +00:00
|
|
|
systemctl <span class="pl-c1">enable</span> NetworkManager.service
|
2023-01-07 16:57:51 +00:00
|
|
|
systemctl <span class="pl-c1">enable</span> systemd-resolved.service</pre>
|
|
|
|
</div>
|
|
|
|
<p>Edit <code>/etc/NetworkManager/conf.d/dns.conf</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre>[<span class="pl-ii">main</span>]
|
|
|
|
dns=systemd-resolved</pre>
|
|
|
|
</div>
|
|
|
|
<p>Edit <code>/etc/NetworkManager/conf.d/dhcp-client.conf</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre>[<span class="pl-ii">main</span>]
|
|
|
|
dhcp=dhcpcd</pre>
|
|
|
|
</div>
|
|
|
|
<p>Edit <code>/etc/NetworkManager/conf.d/wifi_backend.conf</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre>[<span class="pl-ii">device</span>]
|
|
|
|
wifi.backend=iwd</pre>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
See
|
|
|
|
<a href="https://wiki.archlinux.org/title/Dhcpcd" rel="nofollow"
|
|
|
|
>dhcpcd</a
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
<p>Append <code>/etc/dhcpcd.conf</code></p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre>
|
|
|
|
noarp
|
|
|
|
nohook resolv.conf</pre
|
|
|
|
>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h5 id="user-content-bluetooth">
|
|
|
|
<a class="heading-link" href="#bluetooth"
|
|
|
|
>Bluetooth<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2023-01-07 16:57:51 +00:00
|
|
|
</h5>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>pacman -Syu bluez
|
|
|
|
systemctl <span class="pl-c1">enable</span> bluetooth.service</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h5 id="user-content-clock">
|
|
|
|
<a class="heading-link" href="#clock"
|
|
|
|
>Clock<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2023-01-07 16:57:51 +00:00
|
|
|
</h5>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>timedatectl set-ntp <span class="pl-c1">true</span></pre>
|
2022-12-30 09:26:06 +00:00
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-boot-loader">
|
|
|
|
<a class="heading-link" href="#boot-loader"
|
|
|
|
>Boot loader<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h5 id="user-content-systemd-boot">
|
|
|
|
<a class="heading-link" href="#systemd-boot"></a
|
2023-01-07 16:57:51 +00:00
|
|
|
><a
|
|
|
|
href="https://wiki.archlinux.org/index.php/Systemd-boot"
|
|
|
|
rel="nofollow"
|
|
|
|
>systemd-boot</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2023-01-07 16:57:51 +00:00
|
|
|
</h5>
|
|
|
|
<p>Install using XBOOTLDR:</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
2023-01-07 17:35:48 +00:00
|
|
|
<pre>bootctl --esp-path=/efi --boot-path=/boot install
|
|
|
|
|
|
|
|
systemctl <span class="pl-c1">enable</span> systemd-boot-update.service</pre>
|
2023-01-07 16:57:51 +00:00
|
|
|
</div>
|
2022-12-30 09:26:06 +00:00
|
|
|
<p>
|
2023-01-07 16:57:51 +00:00
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/persistent_block_device_naming#by-label"
|
|
|
|
rel="nofollow"
|
|
|
|
>Label partition</a
|
2022-12-30 09:26:06 +00:00
|
|
|
>
|
|
|
|
</p>
|
2023-01-07 16:57:51 +00:00
|
|
|
<p>Edit <code>/efi/loader/loader.conf</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre>
|
|
|
|
default archlinux.conf
|
|
|
|
timeout 4
|
|
|
|
editor no
|
|
|
|
console-mode max</pre
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<p>Edit <code>/boot/loader/entries/archlinux.conf</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre>title Arch Linux
|
|
|
|
linux /vmlinuz-linux
|
|
|
|
|
|
|
|
<span class="pl-c"># Intel</span>
|
|
|
|
initrd /intel-ucode.img
|
|
|
|
|
|
|
|
<span class="pl-c"># AMD</span>
|
|
|
|
initrd /amd-ucode.img
|
|
|
|
|
|
|
|
initrd /initramfs-linux.img
|
|
|
|
|
|
|
|
<span class="pl-c"># Kernel parameters</span>
|
|
|
|
<span class="pl-c">#</span>
|
|
|
|
<span class="pl-c"># Acer Nitro AN515-45</span>
|
|
|
|
<span class="pl-c"># https://wiki.archlinux.org/title/backlight#Kernel_command-line_options</span>
|
|
|
|
<span class="pl-c"># acpi_backlight=vendor</span>
|
|
|
|
<span class="pl-c">#</span>
|
|
|
|
<span class="pl-c"># NVIDIA</span>
|
|
|
|
<span class="pl-c"># https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting</span>
|
|
|
|
<span class="pl-c"># nvidia-drm.modeset=1</span>
|
|
|
|
options root="LABEL=ROOT" rw</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h2 id="user-content-general-recommendations">
|
|
|
|
<a class="heading-link" href="#general-recommendations"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a
|
|
|
|
href="https://wiki.archlinux.org/index.php/General_recommendations"
|
|
|
|
rel="nofollow"
|
|
|
|
>General recommendations</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h2>
|
|
|
|
<p>
|
|
|
|
Always remember to check <strong>dependencies</strong> when install
|
|
|
|
packages.
|
|
|
|
</p>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h3 id="user-content-system-administration">
|
|
|
|
<a class="heading-link" href="#system-administration"
|
|
|
|
>System administration<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
<a href="https://wiki.archlinux.org/index.php/sudo" rel="nofollow">Sudo</a
|
|
|
|
>:
|
|
|
|
</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>pacman -Syu sudo
|
2022-12-25 08:38:53 +00:00
|
|
|
|
|
|
|
EDITOR=nvim visudo
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Uncomment group wheel</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Add user if don't want to use systemd-homed</span>
|
|
|
|
useradd -m -G wheel -c <span class="pl-s"><span class="pl-pds">"</span>The Joker<span class="pl-pds">"</span></span> joker
|
2022-12-25 08:38:53 +00:00
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Or using zsh</span>
|
|
|
|
useradd -m -G wheel -s /usr/bin/zsh -c <span class="pl-s"><span class="pl-pds">"</span>The Joker<span class="pl-pds">"</span></span> joker
|
2022-12-25 08:38:53 +00:00
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Set password</span>
|
2022-12-30 09:26:06 +00:00
|
|
|
passwd joker</pre>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/Systemd-homed"
|
|
|
|
rel="nofollow"
|
|
|
|
>systemd-homed (WIP)</a
|
|
|
|
>:
|
|
|
|
</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>systemctl <span class="pl-c1">enable</span> systemd-homed.service
|
2022-12-25 08:38:53 +00:00
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
homectl create joker --real-name=<span class="pl-s"><span class="pl-pds">"</span>The Joker<span class="pl-pds">"</span></span> --member-of=wheel
|
2022-12-25 08:38:53 +00:00
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Using zsh</span>
|
2022-12-30 09:26:06 +00:00
|
|
|
homectl update joker --shell=/usr/bin/zsh</pre>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<strong>Note</strong>: Can not run <code>homectl</code> when install Arch
|
|
|
|
Linux. Should run on the first boot.
|
|
|
|
</p>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h3 id="user-content-desktop-environment">
|
|
|
|
<a class="heading-link" href="#desktop-environment"
|
|
|
|
>Desktop Environment<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
Install
|
|
|
|
<a href="https://wiki.archlinux.org/index.php/Xorg" rel="nofollow">Xorg</a
|
|
|
|
>:
|
|
|
|
</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>pacman -Syu xorg-server</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h4 id="user-content-gnome">
|
|
|
|
<a class="heading-link" href="#gnome"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a href="https://wiki.archlinux.org/index.php/GNOME" rel="nofollow"
|
|
|
|
>GNOME</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h4>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>pacman -Syu gnome-shell \
|
2023-01-07 17:26:48 +00:00
|
|
|
gnome-control-center gnome-system-monitor power-profiles-daemon \
|
2023-05-11 09:05:35 +00:00
|
|
|
gnome-tweaks gnome-backgrounds gnome-firmware \
|
2023-09-24 05:59:27 +00:00
|
|
|
nautilus xdg-user-dirs-gtk xdg-desktop-portal \
|
|
|
|
gnome-console gnome-text-editor loupe evince
|
2022-12-25 08:38:53 +00:00
|
|
|
|
2022-12-25 19:13:58 +00:00
|
|
|
<span class="pl-c"><span class="pl-c">#</span> Login manager</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
pacman -Syu gdm
|
2022-12-30 09:26:06 +00:00
|
|
|
systemctl <span class="pl-c1">enable</span> gdm.service</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h2 id="user-content-list-of-applications">
|
|
|
|
<a class="heading-link" href="#list-of-applications"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a
|
|
|
|
href="https://wiki.archlinux.org/index.php/List_of_applications"
|
|
|
|
rel="nofollow"
|
|
|
|
>List of applications</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h2>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h3 id="user-content-pacman">
|
|
|
|
<a class="heading-link" href="#pacman"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a href="https://wiki.archlinux.org/index.php/pacman" rel="nofollow"
|
|
|
|
>pacman</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h3>
|
|
|
|
<p>Uncomment in <code>/etc/pacman.conf</code>:</p>
|
|
|
|
<div class="highlight highlight-text-adblock">
|
|
|
|
<pre><span class="pl-c"># Misc options</span>
|
2022-12-25 08:38:53 +00:00
|
|
|
Color
|
2022-12-30 09:26:06 +00:00
|
|
|
ParallelDownloads</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h3 id="user-content-pipewire-wip">
|
|
|
|
<a class="heading-link" href="#pipewire-wip"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a href="https://wiki.archlinux.org/title/PipeWire" rel="nofollow"
|
|
|
|
>Pipewire (WIP)</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h3>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>
|
|
|
|
pacman -Syu pipewire wireplumber \
|
2022-12-25 08:38:53 +00:00
|
|
|
pipewire-alsa pipewire-pulse \
|
2022-12-30 09:26:06 +00:00
|
|
|
gst-plugin-pipewire pipewire-v4l2</pre
|
|
|
|
>
|
|
|
|
</div>
|
2023-01-08 10:50:11 +00:00
|
|
|
<p>
|
|
|
|
See
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture"
|
|
|
|
rel="nofollow"
|
|
|
|
>Advanced Linux Sound Architecture</a
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>pacman -Syu sof-firmware</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h3 id="user-content-flatpak-wip">
|
|
|
|
<a class="heading-link" href="#flatpak-wip"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a href="https://wiki.archlinux.org/title/Flatpak" rel="nofollow"
|
|
|
|
>Flatpak (WIP)</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h3>
|
|
|
|
<div class="highlight highlight-source-shell">
|
|
|
|
<pre>pacman -Syu flatpak</pre>
|
|
|
|
</div>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h2 id="user-content-improving-performance">
|
|
|
|
<a class="heading-link" href="#improving-performance"></a
|
2022-12-30 09:26:06 +00:00
|
|
|
><a
|
|
|
|
href="https://wiki.archlinux.org/index.php/improving_performance"
|
|
|
|
rel="nofollow"
|
|
|
|
>Improving performance</a
|
2023-09-22 16:40:26 +00:00
|
|
|
><span aria-hidden="true" class="octicon octicon-link"></span>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h2>
|
2023-09-05 17:27:15 +00:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/swap#Swap_file"
|
|
|
|
rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/index.php/swap#Swap_file</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/swap#Swappiness"
|
|
|
|
rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/index.php/swap#Swappiness</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limit"
|
|
|
|
rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limit</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/Core_dump#Disabling_automatic_core_dumps"
|
|
|
|
rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/index.php/Core_dump#Disabling_automatic_core_dumps</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/Solid_state_drive#Periodic_TRIM"
|
|
|
|
rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/index.php/Solid_state_drive#Periodic_TRIM</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/Silent_boot"
|
|
|
|
rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/index.php/Silent_boot</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/title/Improving_performance#Watchdogs"
|
|
|
|
rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/title/Improving_performance#Watchdogs</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h2 id="user-content-hardware-dependent">
|
|
|
|
<a class="heading-link" href="#hardware-dependent"
|
|
|
|
>Hardware dependent<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="octicon octicon-link"
|
|
|
|
></span
|
|
|
|
></a>
|
2023-09-05 17:27:15 +00:00
|
|
|
</h2>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://wiki.archlinux.org/title/Laptop" rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/title/Laptop</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://wiki.archlinux.org/title/ASUS_Linux" rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/title/ASUS_Linux</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://wiki.archlinux.org/title/PRIME" rel="nofollow"
|
|
|
|
>https://wiki.archlinux.org/title/PRIME</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h2 id="user-content-experiment">
|
|
|
|
<a class="heading-link" href="#experiment"
|
|
|
|
>Experiment<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2023-09-05 17:27:15 +00:00
|
|
|
</h2>
|
|
|
|
<p>Do it at your own risk!!!</p>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/AdnanHodzic/auto-cpufreq"
|
|
|
|
>https://github.com/AdnanHodzic/auto-cpufreq</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/nbfc-linux/nbfc-linux"
|
|
|
|
>https://github.com/nbfc-linux/nbfc-linux</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2023-09-22 16:40:26 +00:00
|
|
|
<h2 id="user-content-in-the-end">
|
|
|
|
<a class="heading-link" href="#in-the-end"
|
|
|
|
>In the end<span aria-hidden="true" class="octicon octicon-link"></span
|
|
|
|
></a>
|
2022-12-30 09:26:06 +00:00
|
|
|
</h2>
|
|
|
|
<p>This guide is updated regularly I promise.</p>
|
2022-12-25 19:13:58 +00:00
|
|
|
|
2022-12-25 19:22:39 +00:00
|
|
|
<div>
|
|
|
|
Feel free to ask me via
|
|
|
|
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
|
2023-08-20 17:29:13 +00:00
|
|
|
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>.
|
|
|
|
<br />Source code is available on
|
2022-12-30 09:55:38 +00:00
|
|
|
<a href="https://github.com/haunt98/posts-go">GitHub</a>
|
2023-08-20 17:29:13 +00:00
|
|
|
<a href="https://codeberg.org/yoshie/posts-go">Codeberg</a>
|
|
|
|
<a href="https://git.sr.ht/~youngyoshie/posts-go">sourcehut</a>
|
|
|
|
<a href="https://gitea.treehouse.systems/yoshie/posts-go">Treehouse</a>
|
|
|
|
<a href="https://gitlab.com/youngyoshie/posts-go">GitLab</a>
|
2022-12-25 19:22:39 +00:00
|
|
|
</div>
|
2022-12-25 19:13:58 +00:00
|
|
|
</body>
|
|
|
|
</html>
|