<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Arch on miti99</title><link>https://miti99.com/en/tags/arch/</link><description>Recent content in Arch on miti99</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 16 Nov 2026 17:39:19 +0700</lastBuildDate><atom:link href="https://miti99.com/en/tags/arch/index.xml" rel="self" type="application/rss+xml"/><item><title>Issue with Xfce</title><link>https://miti99.com/en/post/2020/06/29/</link><pubDate>Mon, 29 Jun 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/06/29/</guid><description>&lt;p&gt;Does your Arch install with only Xfce &amp;ldquo;freeze&amp;rdquo; on boot? Or does LightDM stutter when starting up?&lt;/p&gt;
&lt;p&gt;Install the &lt;code&gt;xf86-video-intel&lt;/code&gt; package.&lt;/p&gt;</description></item><item><title>systemd-swap</title><link>https://miti99.com/en/post/2020/05/08/</link><pubDate>Fri, 08 May 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/05/08/</guid><description>&lt;p&gt;This is a service that creates dynamic swap space over time. It starts out at just 512MiB, but grows &lt;strong&gt;automatically&lt;/strong&gt; as you use your system. Install it as follows:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S systemd-swap
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;In &lt;code&gt;/etc/systemd/swap.conf&lt;/code&gt;, configure it as follows:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;swapfc_enabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then enable the &lt;code&gt;systemd-swap&lt;/code&gt; service:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; systemd-swap
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;And that&amp;rsquo;s it!!!&lt;/p&gt;</description></item><item><title>Speeding Up makepkg</title><link>https://miti99.com/en/post/2020/05/06/</link><pubDate>Tue, 05 May 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/05/06/</guid><description>&lt;p&gt;In this post, I&amp;rsquo;ll show you how to tweak your setup to make building packages from the AUR faster. However, every benefit comes with its own risks—there&amp;rsquo;s a chance you might run into some random error somewhere in a few edge cases :v&lt;/p&gt;
&lt;p&gt;To keep things quick and to the point, I&amp;rsquo;ll give you the &amp;ldquo;instant noodles&amp;rdquo; version right away!&lt;/p&gt;
&lt;p&gt;Install a few required packages:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S ccache lzop xz pigz pbzip2 zstd
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Next, open &lt;code&gt;/etc/makepkg.conf&lt;/code&gt;, look for the UPPERCASE variables, and update them to match the following:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt; 1
&lt;/span&gt;&lt;span class="lnt"&gt; 2
&lt;/span&gt;&lt;span class="lnt"&gt; 3
&lt;/span&gt;&lt;span class="lnt"&gt; 4
&lt;/span&gt;&lt;span class="lnt"&gt; 5
&lt;/span&gt;&lt;span class="lnt"&gt; 6
&lt;/span&gt;&lt;span class="lnt"&gt; 7
&lt;/span&gt;&lt;span class="lnt"&gt; 8
&lt;/span&gt;&lt;span class="lnt"&gt; 9
&lt;/span&gt;&lt;span class="lnt"&gt;10
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;CFLAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;-march=native -O2 -pipe -fstack-protector-strong -fno-plt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;CXXFLAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;CFLAGS&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;BUILDDIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/tmp/makepkg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;PKGEXT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;.pkg.tar.lzo&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;COMPRESSXZ&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;xz -c -z - --threads&lt;span class="o"&gt;=&lt;/span&gt;0&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;COMPRESSGZ&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;pigz -c -f -n&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;COMPRESSBZ2&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;pbzip2 -c -f&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;COMPRESSZST&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;zstd -c -z -q - --threads&lt;span class="o"&gt;=&lt;/span&gt;0&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;BUILDENV&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;!distcc color ccache check !sign&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;MAKEFLAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;-j&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;nproc&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Reference: &lt;a href="https://wiki.archlinux.org/index.php/Makepkg" rel="noopener noreferrer"&gt;https://wiki.archlinux.org/index.php/Makepkg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Gaming with Steam on Arch Linux</title><link>https://miti99.com/en/post/2020/05/04/</link><pubDate>Mon, 04 May 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/05/04/</guid><description>&lt;p&gt;Steam is one of the rare platforms that truly favors Linux. While most other platforms don&amp;rsquo;t support Linux at all, Steam even has its own Linux-based OS for gamers called SteamOS, plus official support for Ubuntu. On top of that, many of the titles that made Steam famous—like Dota 2, CS:GO, etc.—run on it. Recently, there&amp;rsquo;s also a pretty fun game I tried (and got addicted to) called Dota Underlords (though I&amp;rsquo;m determined to quit now^^). Right now, I only play a chill farming game called Farm Together with my girlfriend :v. In short, setting aside native Linux games (most of which are pretty cheesy and unappealing), Steam is currently the best gaming platform for Linux.&lt;/p&gt;
&lt;h2 id="enable-multi-lib"&gt;Enable multi-lib&lt;/h2&gt;&lt;p&gt;To install Steam, we first need to enable the &lt;code&gt;multi-lib&lt;/code&gt; repo on Arch. This repository contains 32-bit libraries required by platforms like Steam or Wine. To enable it, open &lt;code&gt;/etc/pacman.conf&lt;/code&gt; and uncomment the following 2 lines:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;multilib&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;Include&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; /etc/pacman.d/mirrorlist
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then update the system:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay &lt;span class="o"&gt;(&lt;/span&gt;or sudo pacman -Syyu&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="install-steam"&gt;Install Steam&lt;/h2&gt;&lt;p&gt;Now we can go ahead and install Steam:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S steam
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="use-a-dedicated-graphics-card-for-gaming"&gt;Use a dedicated graphics card for gaming&lt;/h2&gt;&lt;p&gt;Normally, when using Linux on a laptop, hardly anyone cares about the dedicated graphics card anymore (though installing Linux to play games already sounds a bit &amp;lsquo;weird&amp;rsquo; :v). Still, you can configure your games on Steam to use your dedicated GPU by setting the game&amp;rsquo;s Launch Options as follows:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DRI_PRIME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt; %command%
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="a-quick-tip-to-improve-gaming-performance"&gt;A quick tip to improve gaming performance&lt;/h2&gt;&lt;p&gt;You can also install &lt;code&gt;gamemode&lt;/code&gt; so the tool automatically tweaks your system settings while gaming:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S gamemode
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then start the &lt;code&gt;gamemoded&lt;/code&gt; service:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl start gamemoded --user
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;To use it, set the game&amp;rsquo;s Launch Options as follows:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;gamemoderun %command%
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;And that&amp;rsquo;s it—now we can fire up the game and play!!!&lt;/p&gt;</description></item><item><title>Splash Screen for Arch Linux</title><link>https://miti99.com/en/post/2020/05/03/</link><pubDate>Sun, 03 May 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/05/03/</guid><description>&lt;p&gt;In this post, I&amp;rsquo;ll show you how to install Plymouth as a boot splash screen on Arch Linux—similar to the spinning dots on Windows, the 5 white-and-orange dots on Ubuntu (which changed in 20.04), or the spinning circle on Fedora.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: I&amp;rsquo;m only writing this as a guide; I don&amp;rsquo;t actually use it anymore because I felt it slowed down my boot time.&lt;/p&gt;
&lt;h2 id="first-install-plymouth"&gt;First, Install Plymouth&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S plymouth
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Edit &lt;code&gt;/etc/mkinitcpio.conf&lt;/code&gt;: Add &lt;code&gt;plymouth&lt;/code&gt; right after &lt;code&gt;base&lt;/code&gt; and &lt;code&gt;udev&lt;/code&gt; in the &lt;code&gt;HOOKS&lt;/code&gt; array, like so:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;HOOKS&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;base udev plymouth ...&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;In &lt;code&gt;/etc/default/grub&lt;/code&gt;, update the kernel parameters as follows:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;GRUB_CMDLINE_LINUX_DEFAULT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then remember to update GRUB!&lt;/p&gt;
&lt;p&gt;The above is just an example; you can read more about Silent Boot here: &lt;a href="https://wiki.archlinux.org/index.php/Silent_boot" rel="noopener noreferrer"&gt;https://wiki.archlinux.org/index.php/Silent_boot&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regenerate the initramfs:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mkinitcpio -P
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="next-install-a-theme"&gt;Next, Install a Theme&lt;/h2&gt;&lt;p&gt;There are plenty of themes available in the AUR, or you can grab themes from external sources like GitHub and copy them into &lt;code&gt;/usr/share/plymouth/themes&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;List the installed themes on your machine:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;plymouth-set-default-theme -l
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;By default, Plymouth comes with the following themes:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;details glow solar spinner tribar fade-in script spinfinity text
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;To switch themes—for example, to &lt;code&gt;script&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;plymouth-set-default-theme -R script
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;To make Plymouth appear earlier during boot, edit &lt;code&gt;/etc/plymouth/plymouthd.conf&lt;/code&gt; and change &lt;code&gt;ShowDelay=5&lt;/code&gt; from &lt;code&gt;5&lt;/code&gt; to &lt;code&gt;0&lt;/code&gt;!&lt;/p&gt;
&lt;p&gt;For a smoother transition to your login screen, switch your display manager service to its Plymouth variant—for example, instead of &lt;code&gt;lightdm&lt;/code&gt;, use &lt;code&gt;lightdm-plymouth&lt;/code&gt;!&lt;/p&gt;
&lt;p&gt;There are a few extra tweaks for encrypted setups, but since I don&amp;rsquo;t think many readers here use full-disk encryption, I&amp;rsquo;ll skip them. If you need help with that, feel free to message my fanpage! See you next time.&lt;/p&gt;</description></item><item><title>Theming GRUB</title><link>https://miti99.com/en/post/2020/05/01/</link><pubDate>Fri, 01 May 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/05/01/</guid><description>&lt;p&gt;Want a nicer-looking GRUB menu? Today I&amp;rsquo;ll share a quick way to spruce up your GRUB interface. Here I&amp;rsquo;ll use the litarvan theme available in the Arch repositories as an example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S grub-theme-vimix
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Next, add the following line to &lt;code&gt;/etc/default/grub&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;GRUB_THEME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;”/usr/share/grub/themes/Vimix/theme.txt”
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Update GRUB and reboot to enjoy the new look! 😀&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;grub-mkconfig -o /boot/grub/grub.cfg
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;If this theme isn&amp;rsquo;t your style, you can download another theme or even create your own. Just make sure to place it in a directory that the system can access at boot without needing user-level permissions—such as under &lt;code&gt;/usr/share&lt;/code&gt; as shown above.&lt;/p&gt;
&lt;p&gt;Enjoy your newly styled GRUB! See you next time.&lt;/p&gt;</description></item><item><title>Making the Login Screen Mouse Cursor Look Better</title><link>https://miti99.com/en/post/2020/04/30/</link><pubDate>Thu, 30 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/30/</guid><description>&lt;p&gt;As the title suggests, to change the mouse cursor on your login screen, edit the &lt;strong&gt;Inherits&lt;/strong&gt; value in &lt;code&gt;/usr/share/icons/default/index.theme&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Typically, if you want the login screen cursor to match your current desktop cursor, you can check &lt;code&gt;~/.icons/default/index.theme&lt;/code&gt; to see the theme name to use!&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>YouTube Downloaders for Arch Linux</title><link>https://miti99.com/en/post/2020/04/29/</link><pubDate>Wed, 29 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/29/</guid><description>&lt;p&gt;As the title says, I&amp;rsquo;ll introduce two tools I regularly use to download videos from YouTube.&lt;/p&gt;
&lt;h2 id="youtube-dl"&gt;Youtube-dl&lt;/h2&gt;&lt;p&gt;Very popular across many distros, packed with command-line options, and super &amp;ldquo;professional&amp;rdquo;—though I find its download speed a bit slow, probably because of some overhead in how it processes things. So I mostly use it for downloading entire playlists (where I can just paste the link once, go write some code or watch a movie, and let it finish on its own :v). To install it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S youtube-dl
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="clipgrab"&gt;Clipgrab&lt;/h2&gt;&lt;p&gt;This one is a bit less well-known, so I wanted to give it a mention as well. It comes with a GUI, and in my experience its download speeds are faster than &lt;code&gt;youtube-dl&lt;/code&gt; (at least for me). To install it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S clipgrab
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;See you in the next post!&lt;/p&gt;</description></item><item><title>Auto TRIM SSD</title><link>https://miti99.com/en/post/2020/04/20/</link><pubDate>Mon, 20 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/20/</guid><description>&lt;p&gt;The &lt;code&gt;util-linux&lt;/code&gt; package already provides &lt;code&gt;fstrim.service&lt;/code&gt; and &lt;code&gt;fstrim.timer&lt;/code&gt; for &lt;code&gt;systemd&lt;/code&gt;, so all you need to do is enable &lt;code&gt;fstrim.timer&lt;/code&gt;. Run the following command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; fstrim.timer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;By default, it runs once a week.&lt;/p&gt;
&lt;p&gt;See you next time!&lt;/p&gt;</description></item><item><title>Using Audio Output as Input</title><link>https://miti99.com/en/post/2020/04/19/</link><pubDate>Sun, 19 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/19/</guid><description>&lt;p&gt;When you&amp;rsquo;re on a voice call with your significant other and want to play a romantic love song in the background (for the mood :v)&amp;hellip; here&amp;rsquo;s a super handy tip! 😀&lt;/p&gt;
&lt;p&gt;Install &lt;code&gt;pavucontrol&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S pavucontrol
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then call your sweetheart :v, open &lt;code&gt;pavucontrol&lt;/code&gt; (from the application menu or by running the command above), switch to the &lt;strong&gt;Recording&lt;/strong&gt; tab, find the input stream for your calling app, and change its source to &lt;code&gt;'Monitor of Built-in Audio Analog Stereo'&lt;/code&gt;. And that&amp;rsquo;s it :D—see you in future posts!&lt;/p&gt;</description></item><item><title>Small Tweaks for Firefox</title><link>https://miti99.com/en/post/2020/04/18/</link><pubDate>Sat, 18 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/18/</guid><description>&lt;h2 id="cache-on-ram"&gt;Cache on RAM&lt;/h2&gt;&lt;p&gt;By default, Firefox stores its cache on both RAM and disk. Moving the cache entirely to RAM speeds up cache access and reduces disk writes (which is especially great for SSDs). Here&amp;rsquo;s how to do it:
Type &lt;code&gt;about:config&lt;/code&gt; into Firefox&amp;rsquo;s address bar&lt;br&gt;
Set &lt;code&gt;browser.cache.disk.enable&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;&lt;br&gt;
Make sure &lt;code&gt;browser.cache.memory.enable&lt;/code&gt; is set to &lt;code&gt;true&lt;/code&gt;&lt;br&gt;
You can also adjust how much RAM Firefox uses for caching via &lt;code&gt;browser.cache.memory.capacity&lt;/code&gt;—leaving it at the default &lt;code&gt;-1&lt;/code&gt; lets Firefox automatically pick the capacity based on your total RAM.&lt;/p&gt;
&lt;h2 id="disabling-pocket"&gt;Disabling Pocket&lt;/h2&gt;&lt;p&gt;Pocket comes bundled with Firefox by default, but I barely ever use it, so I just disable it :D. In &lt;code&gt;about:config&lt;/code&gt; as above, search for &lt;code&gt;extensions.pocket.enabled&lt;/code&gt; and set it to &lt;code&gt;false&lt;/code&gt;! 😀&lt;/p&gt;
&lt;h2 id="caching-the-entire-profile-in-ram-via-tmpfs"&gt;Caching the Entire Profile in RAM via tmpfs&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Make sure you have enough free RAM to mount your profile, or you&amp;rsquo;ll run into out-of-memory errors!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Since &lt;code&gt;tmpfs&lt;/code&gt; (via the &lt;code&gt;tmp.mount&lt;/code&gt; service) is already enabled by default on Arch, we can take further advantage of having &lt;code&gt;/tmp&lt;/code&gt; mounted in RAM by caching the entire Firefox profile in RAM via &lt;code&gt;tmpfs&lt;/code&gt;. First, install &lt;code&gt;profile-sync-daemon&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S profile-sync-daemon
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then edit &lt;code&gt;~/.config/psd/psd.conf&lt;/code&gt; and add &lt;code&gt;firefox&lt;/code&gt; to the &lt;code&gt;BROWSERS&lt;/code&gt; list, for example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;BROWSERS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;”firefox”
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;&lt;code&gt;profile-sync-daemon&lt;/code&gt; also supports &lt;code&gt;google-chrome&lt;/code&gt; and several other browsers (you can see the full list right inside that config file), so feel free to add whichever browsers you use to the list.
Enable &lt;code&gt;profile-sync-daemon&lt;/code&gt; to start automatically with your session:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl --user &lt;span class="nb"&gt;enable&lt;/span&gt; psd.service
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;And that&amp;rsquo;s it! You can check out plenty of other tweaks at: &lt;a href="https://wiki.archlinux.org/index.php/Firefox/Tweaks" rel="noopener noreferrer"&gt;https://wiki.archlinux.org/index.php/Firefox/Tweaks&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See you in future posts!&lt;/p&gt;</description></item><item><title>Some Issues I Ran Into</title><link>https://miti99.com/en/post/2020/04/17/</link><pubDate>Fri, 17 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/17/</guid><description>&lt;p&gt;This post is a collection of issues I&amp;rsquo;ve run into along with how I fixed them. These solutions are at the &amp;ldquo;it just works for me&amp;rdquo; level, so I can&amp;rsquo;t guarantee they&amp;rsquo;ll work in every single case if you run into the same problem. I&amp;rsquo;ll keep updating this post as I continue using the system!&lt;/p&gt;
&lt;h4 id="arch-cinnamon-doesnt-turn-off-the-screen-after-the-configured-timeout"&gt;Arch Cinnamon Doesn&amp;rsquo;t Turn Off the Screen After the Configured Timeout&lt;/h4&gt;&lt;p&gt;Try installing the &lt;code&gt;light-locker&lt;/code&gt; package:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S light-locker
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h4 id="cannot-play-mp4-files-in-totem-and-other-totem-based-players"&gt;Cannot Play &lt;code&gt;.mp4&lt;/code&gt; Files in Totem and Other Totem-Based Players&lt;/h4&gt;&lt;p&gt;This error is usually caused by a missing codec for &lt;code&gt;.mp4&lt;/code&gt; files. To install it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S gst-libav
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;See you in future posts!&lt;/p&gt;</description></item><item><title>Zsh and Antibody</title><link>https://miti99.com/en/post/2020/04/16/</link><pubDate>Thu, 16 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/16/</guid><description>&lt;p&gt;In this post, I&amp;rsquo;ll introduce &lt;code&gt;zsh&lt;/code&gt;, an alternative shell to &lt;code&gt;bash&lt;/code&gt; that offers high customizability and tons of helpful features, especially if you spend a lot of time in the terminal.&lt;/p&gt;
&lt;h2 id="installing-zsh-and-setting-it-as-your-default-shell"&gt;Installing zsh and Setting It as Your Default Shell&lt;/h2&gt;&lt;p&gt;Install &lt;code&gt;zsh&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S zsh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Set &lt;code&gt;zsh&lt;/code&gt; as your default shell:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;chsh -s /bin/bash/zsh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="customizing-zsh"&gt;Customizing zsh&lt;/h2&gt;&lt;p&gt;Out of the box, &lt;code&gt;zsh&lt;/code&gt; is just a regular shell like &lt;code&gt;bash&lt;/code&gt;, but once customized, it turns into a &amp;ldquo;super shell&amp;rdquo; :v&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re a power user, you can hand-craft your own configuration and scripts to customize &lt;code&gt;zsh&lt;/code&gt; however you like. Since I&amp;rsquo;m not at that level, I&amp;rsquo;ll introduce the popular &lt;code&gt;oh-my-zsh&lt;/code&gt; framework along with the &lt;code&gt;antibody&lt;/code&gt; plugin manager. Back in the day people used &lt;code&gt;antigen&lt;/code&gt;, but &lt;code&gt;antigen&lt;/code&gt; is no longer actively developed, and &lt;code&gt;antibody&lt;/code&gt; is touted as a much faster replacement (even though I find integrating &lt;code&gt;oh-my-zsh&lt;/code&gt; with &lt;code&gt;antibody&lt;/code&gt; a bit clunkier than with &lt;code&gt;antigen&lt;/code&gt;). You can check out their official repositories for more details:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/robbyrussell/oh-my-zsh" rel="noopener noreferrer"&gt;https://github.com/robbyrussell/oh-my-zsh&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/getantibody/antibody" rel="noopener noreferrer"&gt;https://github.com/getantibody/antibody&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/zsh-users/antigen" rel="noopener noreferrer"&gt;https://github.com/zsh-users/antigen&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To install &lt;code&gt;antibody&lt;/code&gt; on Arch:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S antibody
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;(this is listed right on their official homepage^^, so the source is trustworthy)&lt;/p&gt;
&lt;p&gt;Configuring &lt;code&gt;antibody&lt;/code&gt;: Here I&amp;rsquo;ll cover the basics. Just as &lt;code&gt;bash&lt;/code&gt; uses &lt;code&gt;~/.bashrc&lt;/code&gt;, &lt;code&gt;zsh&lt;/code&gt; uses &lt;code&gt;~/.zshrc&lt;/code&gt; as its configuration file. However, &lt;code&gt;antibody&lt;/code&gt; recommends listing your plugins in a separate file—such as &lt;code&gt;~./.zsh_plugins.txt&lt;/code&gt;—and then loading them using either static or dynamic loading.
Here&amp;rsquo;s an example of my &lt;code&gt;~./.zsh_plugins.txt&lt;/code&gt; file:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt; 1
&lt;/span&gt;&lt;span class="lnt"&gt; 2
&lt;/span&gt;&lt;span class="lnt"&gt; 3
&lt;/span&gt;&lt;span class="lnt"&gt; 4
&lt;/span&gt;&lt;span class="lnt"&gt; 5
&lt;/span&gt;&lt;span class="lnt"&gt; 6
&lt;/span&gt;&lt;span class="lnt"&gt; 7
&lt;/span&gt;&lt;span class="lnt"&gt; 8
&lt;/span&gt;&lt;span class="lnt"&gt; 9
&lt;/span&gt;&lt;span class="lnt"&gt;10
&lt;/span&gt;&lt;span class="lnt"&gt;11
&lt;/span&gt;&lt;span class="lnt"&gt;12
&lt;/span&gt;&lt;span class="lnt"&gt;13
&lt;/span&gt;&lt;span class="lnt"&gt;14
&lt;/span&gt;&lt;span class="lnt"&gt;15
&lt;/span&gt;&lt;span class="lnt"&gt;16
&lt;/span&gt;&lt;span class="lnt"&gt;17
&lt;/span&gt;&lt;span class="lnt"&gt;18
&lt;/span&gt;&lt;span class="lnt"&gt;19
&lt;/span&gt;&lt;span class="lnt"&gt;20
&lt;/span&gt;&lt;span class="lnt"&gt;21
&lt;/span&gt;&lt;span class="lnt"&gt;22
&lt;/span&gt;&lt;span class="lnt"&gt;23
&lt;/span&gt;&lt;span class="lnt"&gt;24
&lt;/span&gt;&lt;span class="lnt"&gt;25
&lt;/span&gt;&lt;span class="lnt"&gt;26
&lt;/span&gt;&lt;span class="lnt"&gt;27
&lt;/span&gt;&lt;span class="lnt"&gt;28
&lt;/span&gt;&lt;span class="lnt"&gt;29
&lt;/span&gt;&lt;span class="lnt"&gt;30
&lt;/span&gt;&lt;span class="lnt"&gt;31
&lt;/span&gt;&lt;span class="lnt"&gt;32
&lt;/span&gt;&lt;span class="lnt"&gt;33
&lt;/span&gt;&lt;span class="lnt"&gt;34
&lt;/span&gt;&lt;span class="lnt"&gt;35
&lt;/span&gt;&lt;span class="lnt"&gt;36
&lt;/span&gt;&lt;span class="lnt"&gt;37
&lt;/span&gt;&lt;span class="lnt"&gt;38
&lt;/span&gt;&lt;span class="lnt"&gt;39
&lt;/span&gt;&lt;span class="lnt"&gt;40
&lt;/span&gt;&lt;span class="lnt"&gt;41
&lt;/span&gt;&lt;span class="lnt"&gt;42
&lt;/span&gt;&lt;span class="lnt"&gt;43
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/archlinux
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/colored-man-pages
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/colorize
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/command-not-found
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/common-aliases
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/extract
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/git
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/git-extras
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/github
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/golang
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/heroku
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/history
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/node
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/npm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/pip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/python
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/screen
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/sudo
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/systemd
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/thefuck
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/vscode
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/web-search
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/yarn
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:plugins/z
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;desyncr/auto-ls
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;djui/alias-tips
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mafredri/zsh-async
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;srijanshetty/node.plugin.zsh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;srijanshetty/zsh-pip-completion
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;voronkovich/mysql.plugin.zsh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wuotr/zsh-plugin-vscode
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zlsun/solarized-man
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zpm-zsh/ls
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zpm-zsh/ssh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zsh-users/zsh-completions
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zsh-users/zsh-autosuggestions
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zsh-users/zsh-syntax-highlighting
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zsh-users/zsh-history-substring-search
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;robbyrussell/oh-my-zsh path:themes/candy.zsh-theme
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This is just an example—keep in mind that some plugins require extra CLI tools to be installed before they&amp;rsquo;ll work. Now onto loading them. In short, static loading means running &lt;code&gt;antibody&lt;/code&gt; to generate a single static script file (like &lt;code&gt;config.sh&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;For example: &lt;code&gt;antibody bundle &amp;lt; ~/.zsh_plugins.txt &amp;gt; ~/.zsh_plugins.sh&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Then in &lt;code&gt;~/.zshrc&lt;/code&gt;, you just add the line: &lt;code&gt;source ~/.zsh_plugins.sh&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Static loading is faster than dynamic loading, but it doesn&amp;rsquo;t automatically update plugins when updates are available. That&amp;rsquo;s why I prefer dynamic loading—it&amp;rsquo;s barely any slower in practice (and still faster than &lt;code&gt;antigen&lt;/code&gt;), while keeping things updated automatically (it checks each time it runs). Just add the following to your &lt;code&gt;~/.zshrc&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;span class="lnt"&gt;3
&lt;/span&gt;&lt;span class="lnt"&gt;4
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;ZSH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;antibody home&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; &amp;lt;&lt;span class="o"&gt;(&lt;/span&gt;antibody init&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;antibody bundle &amp;lt; ~/.zsh_plugins.txt
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Because I use Oh-My-Zsh and &lt;code&gt;antibody&lt;/code&gt; doesn&amp;rsquo;t natively set &lt;code&gt;$ZSH&lt;/code&gt; for it, that first &lt;code&gt;export ZSH=...&lt;/code&gt; line is required (whereas &lt;code&gt;antigen&lt;/code&gt; only needed &lt;code&gt;antigen use oh-my-zsh&lt;/code&gt;). Loading Oh-My-Zsh plugins in &lt;code&gt;antibody&lt;/code&gt; is also a bit more verbose :/ since you have to write out each line in full (I don&amp;rsquo;t know if there&amp;rsquo;s a shorter way because I was too lazy to check, and with VS Code&amp;rsquo;s multi-cursor editing it took no time at all anyway—no need to waste brainpower :v).&lt;/p&gt;
&lt;p&gt;If you don&amp;rsquo;t want to bother with manual customization, you can install Arch&amp;rsquo;s &lt;code&gt;grml-zsh-config&lt;/code&gt; package instead:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S grml-zsh-config
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This package configures your &lt;code&gt;zsh&lt;/code&gt; to work just like the shell inside the official Arch installation ISO.
However, if you want to customize &lt;code&gt;zsh&lt;/code&gt; yourself later, you should remove &lt;code&gt;grml-zsh-config&lt;/code&gt; because it conflicts with custom themes—you can work around it, but it&amp;rsquo;s a hassle, so it&amp;rsquo;s easier to just uninstall it :v&lt;/p&gt;
&lt;p&gt;Bye for now, and see you in the next post!^^&lt;/p&gt;</description></item><item><title>Practical Software for Arch Linux</title><link>https://miti99.com/en/post/2020/04/15/</link><pubDate>Wed, 15 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/15/</guid><description>&lt;p&gt;In this post, I&amp;rsquo;ll introduce some useful software you might need (at least from my perspective as an IT student daily-driving Arch Linux).&lt;/p&gt;
&lt;h2 id="web-browser"&gt;Web Browser&lt;/h2&gt;&lt;p&gt;A web browser is obviously essential—whether for scrolling through Facebook or reading this blog :v. Even though Edge has overtaken Firefox to claim the #2 spot among the most popular browsers, Edge doesn&amp;rsquo;t have a Linux build yet, so Chrome and Firefox remain the two go-to browsers in our world. To install them:&lt;br&gt;
Chrome: &lt;code&gt;yay -S google-chrome&lt;/code&gt;&lt;br&gt;
Firefox: &lt;code&gt;yay -S firefox&lt;/code&gt;&lt;br&gt;
There are also plenty of other browsers available, such as Brave (&lt;code&gt;brave-bin&lt;/code&gt;), Chromium (&lt;code&gt;chromium&lt;/code&gt;), Opera (&lt;code&gt;opera&lt;/code&gt;), Vivaldi (&lt;code&gt;vivaldi&lt;/code&gt;),&amp;hellip;&lt;br&gt;
Check out the full list here: &lt;a href="https://wiki.archlinux.org/index.php/List_of_applications/Internet#Web_browsers" rel="noopener noreferrer"&gt;https://wiki.archlinux.org/index.php/List_of_applications/Internet#Web_browsers&lt;/a&gt;!&lt;/p&gt;
&lt;h2 id="vietnamese-input-method"&gt;Vietnamese Input Method&lt;/h2&gt;&lt;p&gt;For a long time, typing Vietnamese on Linux was a real pain :v, but recently I found a great input method called &lt;a href="https://github.com/BambooEngine/ibus-bamboo" rel="noopener noreferrer"&gt;ibus-bamboo&lt;/a&gt;. Its default input mode works pretty much like &lt;code&gt;ibus-unikey&lt;/code&gt;, but by switching input modes (shortcut: &lt;em&gt;Shift+~&lt;/em&gt;), you can pick a specific input mode per application out of 7 available modes. For example, I use mode 4 (ForwardKeyEvent II) to write this blog. To install it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S ibus-bamboo
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Open IBus Preferences to add &lt;code&gt;ibus-bamboo&lt;/code&gt; as an input method, then add this command to your Startup Applications:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ibus-daemon -drx
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;so that IBus starts automatically with your system!&lt;/p&gt;
&lt;h2 id="screenshot-tool"&gt;Screenshot Tool&lt;/h2&gt;&lt;p&gt;Aside from &lt;code&gt;gnome-screenshot&lt;/code&gt;, I used to use Shutter, but unfortunately it&amp;rsquo;s no longer actively developed. I found a great replacement called &lt;code&gt;flameshot&lt;/code&gt;—it&amp;rsquo;s super convenient, letting you select a capture region, adjust the selection frame afterward, annotate, and more. To install it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S flameshot
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="office-suite"&gt;Office Suite&lt;/h2&gt;&lt;p&gt;You&amp;rsquo;ll definitely need an office suite to get work done with documents, spreadsheets, and presentations. I usually use LibreOffice, which is easy to install. Arch offers two versions, &lt;code&gt;fresh&lt;/code&gt; and &lt;code&gt;still&lt;/code&gt;; I usually go with &lt;code&gt;fresh&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S libreoffice-fresh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Besides LibreOffice, Arch has plenty of other office suites to choose from: Calligra (&lt;code&gt;calligra&lt;/code&gt;), OnlyOffice (&lt;code&gt;onlyoffice-bin&lt;/code&gt;), OpenOffice (&lt;code&gt;openoffice&lt;/code&gt;), SoftMaker Office (&lt;code&gt;freeoffice&lt;/code&gt;), and WPS Office (&lt;code&gt;wps-office&lt;/code&gt;), as well as standalone apps that can replace individual programs in an office suite. With LibreOffice, IBus works smoothly out of the box, but for some of the other suites I found that you need to add the following lines to &lt;code&gt;/etc/profile&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;span class="lnt"&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;GTK_IM_MODULE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ibus
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;XMODIFIERS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;@im&lt;span class="o"&gt;=&lt;/span&gt;ibus
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;QT_IM_MODULE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ibus
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="terminal"&gt;Terminal&lt;/h2&gt;&lt;p&gt;You can stick with &lt;code&gt;gnome-terminal&lt;/code&gt; by default, but I usually use two terminals: Terminator and Guake. Since I already covered installing Terminator in my post-installation guide, here&amp;rsquo;s how to install Guake:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S guake
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Guake lets you quickly drop down a terminal with the F12 shortcut, auto-hide it, start it automatically on login, and more—super handy.&lt;/p&gt;
&lt;h2 id="all-in-one-messaging"&gt;All-in-One Messaging&lt;/h2&gt;&lt;p&gt;Managing all your chats in one place is super easy with Rambox. It lets you use Messenger, Skype, Telegram, and even manage email accounts like Gmail and Outlook all in one app. To install it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S rambox-bin
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="clipboard-manager"&gt;Clipboard Manager&lt;/h2&gt;&lt;p&gt;Ever need to copy a bunch of code snippets :v and paste them all at once without constantly switching tabs back and forth? That&amp;rsquo;s when you need a clipboard manager. Here I use CopyQ:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S copyq
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="cloud-sync"&gt;Cloud Sync&lt;/h2&gt;&lt;p&gt;The sad news is that the two biggest cloud storage services for students—Google Drive and OneDrive (student emails get unlimited Google Drive storage and 5 TB on OneDrive)—don&amp;rsquo;t have official Linux clients. There are third-party workarounds, but since it&amp;rsquo;s hard to vouch for their reliability, I skip them and use Dropbox instead:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S dropbox
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;There are also plenty of other cloud providers with native Linux support, such as MEGA (&lt;code&gt;megasync&lt;/code&gt;), Nextcloud (&lt;code&gt;nextclout-client&lt;/code&gt; if you use a hosted instance),&amp;hellip;
You can check out more options listed here:
&lt;a href="https://wiki.archlinux.org/index.php/List_of_applications/Internet#Cloud_synchronization_clients" rel="noopener noreferrer"&gt;https://wiki.archlinux.org/index.php/List_of_applications/Internet#Cloud_synchronization_clients&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="programming-tools"&gt;Programming Tools&lt;/h2&gt;&lt;p&gt;I&amp;rsquo;m currently trying to get used to Neovim:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S neovim
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Until I&amp;rsquo;m completely comfortable with it, though, VS Code is still my daily driver.
VS Code—my favorite editor right now:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S visual-studio-code-bin
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="teamviewer"&gt;TeamViewer&lt;/h2&gt;&lt;p&gt;TeamViewer—remote desktop access for everyone :v&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S teamviewer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Remember to enable the &lt;code&gt;teamviewerd&lt;/code&gt; service so it can connect:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; teamviewerd
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;and restart before using it.&lt;/p&gt;
&lt;h2 id="file-comparison-tool"&gt;File Comparison Tool&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S meld
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="virtualization-software-for-running-virtual-machines"&gt;Virtualization Software for Running Virtual Machines&lt;/h2&gt;&lt;p&gt;If you installed the &lt;code&gt;gnome&lt;/code&gt; group, you already have &lt;code&gt;gnome-boxes&lt;/code&gt;, but I still think VirtualBox is the best choice on Linux :v Note that you&amp;rsquo;ll also need to install &lt;code&gt;linux-headers&lt;/code&gt; (assuming you&amp;rsquo;re on Arch&amp;rsquo;s default kernel) for DKMS to work!&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S linux-headers
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S virtualbox
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="system-cleaner"&gt;System Cleaner&lt;/h2&gt;&lt;p&gt;BleachBit has long been the Linux counterpart to CCleaner on Windows :). To install it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S bleachbit
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="download-manager"&gt;Download Manager&lt;/h2&gt;&lt;p&gt;uGet can&amp;rsquo;t quite match the legendary Internet Download Manager (IDM) on Windows, but it&amp;rsquo;s a solid alternative—make sure to install the &lt;code&gt;aria2&lt;/code&gt; plugin alongside it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S uget aria2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;If I come across more great software, I&amp;rsquo;ll update this post directly! See you next time.&lt;/p&gt;</description></item><item><title>Tweaking Cinnamon on Arch Linux</title><link>https://miti99.com/en/post/2020/04/14/</link><pubDate>Tue, 14 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/14/</guid><description>&lt;p&gt;At first glance, Cinnamon on Linux Mint looks way better than the bare-bones Cinnamon you get right after installing it on Arch—honestly, the default look is super plain and clunky. So let&amp;rsquo;s make it look just like it does on Mint! 😀&lt;/p&gt;
&lt;h2 id="slick-greeter"&gt;Slick-greeter&lt;/h2&gt;&lt;p&gt;This is the LightDM greeter used in Linux Mint (Arch defaults to the GTK+ Greeter). To install it, run:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S lightdm-slick-greeter
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;And install this package as well so you can configure it via a GUI—otherwise you can always just mess around with the &lt;code&gt;.conf&lt;/code&gt; files by hand :v&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S lightdm-settings
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Edit &lt;code&gt;/etc/lightdm/lightdm.conf&lt;/code&gt; as follows:
Under the &lt;code&gt;[Seat:*]&lt;/code&gt; section, find the line &lt;code&gt;greeter-session=example-gtk-gnome&lt;/code&gt;, uncomment it, and change it to &lt;code&gt;greeter-session=lightdm-slick-greeter&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="themes-and-icons"&gt;Themes and Icons&lt;/h2&gt;&lt;p&gt;Out of the box, Cinnamon uses GNOME&amp;rsquo;s Adwaita theme, which looks pretty rough. Let&amp;rsquo;s install Linux Mint&amp;rsquo;s themes and icons:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S mint-themes mint-x-icons mint-y-icons
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then open Settings and switch your theme and icons under Appearance -&amp;gt; Themes!&lt;/p&gt;
&lt;h2 id="sound-effects"&gt;Sound Effects&lt;/h2&gt;&lt;p&gt;By default, there aren&amp;rsquo;t any system sound effects at all. We can add them by installing these packages:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S cinnamon-sound-effects mint-sounds
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then enable and configure them in Settings under Hardware -&amp;gt; Sound -&amp;gt; Sounds tab!
(If they don&amp;rsquo;t take effect right away, try restarting Cinnamon.)&lt;/p&gt;
&lt;h2 id="essential-applications"&gt;Essential Applications&lt;/h2&gt;&lt;p&gt;A fresh Cinnamon installation comes with almost no bundled apps :/, which is why I previously suggested installing the &lt;code&gt;gnome&lt;/code&gt; group before Cinnamon for essentials like Screenshot, Terminal, and Software:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S gnome-screenshot gnome-terminal gnome-software
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;That said, the &lt;code&gt;gnome&lt;/code&gt; group pulls in quite a lot of extra stuff :v, and since Arch&amp;rsquo;s philosophy is &amp;ldquo;Keep It Simple&amp;rdquo;, skipping &lt;code&gt;gnome&lt;/code&gt; is totally fine—just install whatever you actually need.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s a bit of a shame for Cinnamon on Arch, because most other DEs have a companion &lt;code&gt;-extra&lt;/code&gt; package group: &lt;code&gt;deepin&lt;/code&gt; has &lt;code&gt;deepin-extra&lt;/code&gt;, &lt;code&gt;gnome&lt;/code&gt; has &lt;code&gt;gnome-extra&lt;/code&gt;, &lt;code&gt;mate&lt;/code&gt; has &lt;code&gt;mate-extra&lt;/code&gt;, and even lightweight &lt;code&gt;xfce4&lt;/code&gt; has &lt;code&gt;xfce4-goodies&lt;/code&gt;—whereas &lt;code&gt;cinnamon&lt;/code&gt; doesn&amp;rsquo;t have one yet. Want the standard Cinnamon app suite anyway? Installing this set covers the basics:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S xed xviewer xreader xplayer pix blueberry
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="nemo-fileroller"&gt;Nemo-fileroller&lt;/h2&gt;&lt;p&gt;This package adds the handy &amp;ldquo;Extract Here&amp;rdquo; context-menu option to Nemo. To install it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S nemo-fileroller
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then restart Nemo: &lt;code&gt;nemo -q&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This just gets your setup looking and feeling like Linux Mint—I&amp;rsquo;ll save making Arch Cinnamon even more unique and flashy for a future post. Bye for now, and see you next time!&lt;/p&gt;</description></item><item><title>Installing AUR Packages on Arch Linux</title><link>https://miti99.com/en/post/2020/04/13/</link><pubDate>Mon, 13 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/13/</guid><description>&lt;p&gt;The Arch User Repository (AUR) is a community-driven repository where anyone can create their own packages and share them with other users. It&amp;rsquo;s one of the main reasons Arch is so convenient and why so many people choose Arch as their daily distro.&lt;/p&gt;
&lt;p&gt;Pretty much any package you can find on other distros is available either in the Official Repositories or in the AUR. Well-known software almost always has an AUR package—for instance, &lt;code&gt;ibus-bamboo&lt;/code&gt;, my favorite Vietnamese input method, is right there in the AUR.&lt;/p&gt;
&lt;p&gt;Moreover, for open-source projects that only provide source code for users to build themselves (such as projects on GitHub), installing from the AUR is much easier and makes package management a breeze.&lt;/p&gt;
&lt;p&gt;At the time of writing, while the Official Repositories already have an impressive 11,278 packages, the AUR has a whopping 59,729 packages—pretty massive, right? :D&lt;/p&gt;
&lt;p&gt;Of course, that strength is also its weakness: since anyone can upload packages to the AUR, it has a reputation for potentially coming with a few &amp;ldquo;free&amp;rdquo; viruses or malware courtesy of the package author :v. So be careful and stick to packages from trusted sources—such as packages mentioned on the Arch Wiki, linked directly from the project&amp;rsquo;s official homepage (for example, &lt;code&gt;ibus-bamboo&lt;/code&gt; explicitly lists its AUR package for Arch and Arch-based distros), or packages with high vote counts and popularity scores.&lt;/p&gt;
&lt;h2 id="how-to-install-packages-from-the-aur-yay"&gt;How to Install Packages from the AUR (yay)&lt;/h2&gt;&lt;p&gt;Here I&amp;rsquo;ll walk you through installing &lt;code&gt;yay&lt;/code&gt; (a very popular AUR helper). Since this is a basic guide, I&amp;rsquo;ll skip advanced build configurations and just cover the 3 main steps.&lt;/p&gt;
&lt;p&gt;First, install the &lt;code&gt;base-devel&lt;/code&gt; package group, which contains the essential tools needed to build packages:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo pacman -S base-devel
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Next, clone the package repository from its AUR link—here I&amp;rsquo;m using &lt;code&gt;yay&lt;/code&gt; (&lt;a href="https://aur.archlinux.org/packages/yay/%29:" rel="noopener noreferrer"&gt;https://aur.archlinux.org/packages/yay/):&lt;/a&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;span class="lnt"&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone https://aur.archlinux.org/yay.git&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; yay
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;makepkg -si
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;And that&amp;rsquo;s it :D Super simple, right? Once installed, the package can be managed by &lt;code&gt;pacman&lt;/code&gt; just like any regular package. However, &lt;code&gt;pacman&lt;/code&gt; cannot automatically update AUR packages—if you want to update them manually, you&amp;rsquo;d have to track updates yourself and repeat the steps above. To get around that inconvenience, we use AUR helpers, and here I use &lt;code&gt;yay&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="yay-yet-another-yogurt"&gt;yay (Yet another Yogurt)&lt;/h2&gt;&lt;p&gt;As mentioned above, installing a package from the AUR only takes 3 simple steps, but it doesn&amp;rsquo;t handle automatic updates. That&amp;rsquo;s why I&amp;rsquo;m introducing &lt;code&gt;yay&lt;/code&gt;: with &lt;code&gt;yay&lt;/code&gt;, installing an AUR package takes just a single command, identical to &lt;code&gt;pacman&lt;/code&gt; :v (since &lt;code&gt;yay&lt;/code&gt; is a Pacman wrapper, after all :D). The only difference during installation is an extra build step, so it takes a bit longer than usual. On top of that, &lt;code&gt;yay&lt;/code&gt; combines the best ideas from &lt;code&gt;yaourt&lt;/code&gt;, &lt;code&gt;apacman&lt;/code&gt;, and &lt;code&gt;pacaur&lt;/code&gt; (pretty big names if you&amp;rsquo;ve been around Arch for a while :v—though &lt;code&gt;yaourt&lt;/code&gt; is now discontinued, which is why &lt;code&gt;yay&lt;/code&gt; stepped in to replace it).&lt;/p&gt;
&lt;p&gt;Without further ado, I already showed how to install &lt;code&gt;yay&lt;/code&gt; above, so I won&amp;rsquo;t repeat myself :v&lt;/p&gt;
&lt;p&gt;As for how to use it&amp;hellip; well, since &lt;code&gt;yay&lt;/code&gt; uses the exact same syntax as &lt;code&gt;pacman&lt;/code&gt;, there&amp;rsquo;s barely anything to explain :v. If you want to install package &lt;code&gt;X&lt;/code&gt;, just run &lt;code&gt;yay -S X&lt;/code&gt; :v, read the prompts to pick whichever options you want, or if you&amp;rsquo;re feeling lazy, just keep hitting Enter—9 times out of 10 it&amp;rsquo;ll install just fine :v&lt;/p&gt;
&lt;p&gt;Oh, one quick tip: to update your entire system, all you need to run is &lt;code&gt;yay&lt;/code&gt; (it acts as a shorthand for &lt;code&gt;yay -Syyu&lt;/code&gt;, just like &lt;code&gt;sudo pacman -Syyu&lt;/code&gt; :v). No need to overcomplicate things—just type &lt;code&gt;yay&lt;/code&gt; :D&lt;/p&gt;</description></item><item><title>Arch Linux 'Post-Installation'</title><link>https://miti99.com/en/post/2020/04/08/</link><pubDate>Wed, 08 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/08/</guid><description>&lt;p&gt;Following up on my Arch Linux installation post, here are the things I think you should do before rebooting into your new system.&lt;/p&gt;
&lt;h2 id="installing-a-desktop-environment-for-arch-linux"&gt;Installing a Desktop Environment for Arch Linux&lt;/h2&gt;&lt;p&gt;After finishing the steps in the installation guide, Arch Linux is ready to run, but only in console mode. To install a desktop environment, run the following commands (while still inside &lt;code&gt;arch-chroot&lt;/code&gt;):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pacman -S xorg-server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pacman -S cinnamon
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Here I&amp;rsquo;m using the Cinnamon desktop environment (DE), and my future guides will also focus on Cinnamon. Arch supports plenty of other DEs listed at &lt;a href="https://wiki.archlinux.org/index.php/Desktop_environment," rel="noopener noreferrer"&gt;https://wiki.archlinux.org/index.php/Desktop_environment,&lt;/a&gt; so feel free to pick whichever one suits you best, such as GNOME, KDE, etc. Arch also supports i3, a super cool &amp;ldquo;programmer&amp;rsquo;s&amp;rdquo; window manager, though I&amp;rsquo;m not pro enough to daily-drive it yet :v Since Cinnamon is based on GTK, you can also install the &lt;code&gt;gnome&lt;/code&gt; group if you want extra bundled applications.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pacman -S lightdm lightdm-gtk-greeter
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;I use LightDM as my display manager; if you use GNOME, GDM is already included by default.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; lightdm
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This enables the LightDM service at boot; if you use a different display manager, substitute its service name here.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; NetworkManger
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;(this is the network management service, mainly to make connecting to Wi-Fi much easier)&lt;/p&gt;
&lt;h2 id="adding-a-user-to-the-system"&gt;Adding a User to the System&lt;/h2&gt;&lt;p&gt;By default, only the &lt;code&gt;root&lt;/code&gt; user exists on the system. For everyday use, you should create a regular user account to log in with:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;useradd -m -G wheel -s /bin/bash tien
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;(&lt;code&gt;-m&lt;/code&gt; creates a home directory for the user, e.g. &lt;code&gt;/home/tien&lt;/code&gt;; &lt;code&gt;-G wheel&lt;/code&gt; adds the user to the &lt;code&gt;wheel&lt;/code&gt; group, which we&amp;rsquo;ll use to grant &lt;code&gt;sudo&lt;/code&gt; privileges next; &lt;code&gt;-s /bin/bash&lt;/code&gt; sets your default shell to bash—later I&amp;rsquo;ll write a post introducing &lt;code&gt;zsh&lt;/code&gt;, a much more customizable shell; and &lt;code&gt;tien&lt;/code&gt; is the username you want to create—my name is Tiến so I just used &lt;code&gt;tien&lt;/code&gt; :v)&lt;/p&gt;
&lt;h3 id="granting-sudo-privileges"&gt;Granting sudo Privileges&lt;/h3&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pacman -S sudo
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;(obviously we need &lt;code&gt;sudo&lt;/code&gt; installed before we can grant &lt;code&gt;sudo&lt;/code&gt; privileges :v)&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pacman -S neovim
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;(this is the editor I&amp;rsquo;ll use; you can install &lt;code&gt;vim&lt;/code&gt;, &lt;code&gt;vi&lt;/code&gt;, &lt;code&gt;nano&lt;/code&gt;, or whatever you prefer—I like Neovim so that&amp;rsquo;s what I install :))
&lt;code&gt;EDITOR=nvim visudo&lt;/code&gt; (&lt;code&gt;visudo&lt;/code&gt; uses &lt;code&gt;vi&lt;/code&gt; by default, so we set &lt;code&gt;EDITOR&lt;/code&gt; to use Neovim instead)&lt;/p&gt;
&lt;p&gt;Uncomment the line &lt;code&gt;wheel ALL=(ALL) ALL&lt;/code&gt;, save, and exit—that&amp;rsquo;s it :D&lt;/p&gt;
&lt;h2 id="installing-a-terminal-emulator"&gt;Installing a Terminal Emulator&lt;/h2&gt;&lt;p&gt;If you only installed Cinnamon, you won&amp;rsquo;t have a terminal emulator installed by default, meaning you&amp;rsquo;d have to switch to another TTY (&lt;code&gt;Ctrl + Alt + Fx&lt;/code&gt;, where &lt;code&gt;x&lt;/code&gt; is 2 to 6) just to run commands. Here I&amp;rsquo;ll install Terminator:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pacman -S terminator
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;And now you have a truly usable system! Later on I&amp;rsquo;ll write more posts on beautifying and tweaking Arch. See you next time!!&lt;/p&gt;</description></item><item><title>Installing Arch Linux in UEFI Boot Mode</title><link>https://miti99.com/en/post/2020/04/07/</link><pubDate>Tue, 07 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/07/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;&lt;p&gt;Before we begin, I know that if you&amp;rsquo;re brave enough to try installing Arch Linux, you&amp;rsquo;re probably not a complete beginner, and you could easily install it on your own without my guide. This post is mainly meant to share my own experience installing Arch, rather than serving as a strict tutorial or troubleshooting guide. If you run into any issues, feel free to leave a comment below and I&amp;rsquo;ll take a look and help if I can. On the other hand, if you&amp;rsquo;re new to Linux or just thinking about stepping into the Linux world, I recommend starting with beginner-friendly distributions like &lt;a href="https://ubuntu.com/" rel="noopener noreferrer"&gt;Ubuntu&lt;/a&gt;, or if you want a taste of Arch first, &lt;a href="https://manjaro.org/" rel="noopener noreferrer"&gt;Manjaro&lt;/a&gt; is a great choice (it&amp;rsquo;s based on Arch and has topped the rankings many times) before diving into vanilla Arch. Here are the steps:&lt;/p&gt;
&lt;h2 id="creating-the-installation-media"&gt;Creating the Installation Media&lt;/h2&gt;&lt;p&gt;Here I&amp;rsquo;ll show you how to create a bootable USB drive; if you&amp;rsquo;re using a CD/DVD, you can look that up on your own.&lt;/p&gt;
&lt;p&gt;First, download the latest installation image from the official Arch Linux website: &lt;a href="https://www.archlinux.org/download/" rel="noopener noreferrer"&gt;https://www.archlinux.org/download/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re on Windows, use Rufus to create the bootable USB (just keep the default BIOS boot mode—the installer supports both BIOS and UEFI out of the box, whereas picking UEFI-only might actually fail :v). If you&amp;rsquo;re on Linux, you can run: &lt;code&gt;dd if=&amp;lt;path to .iso file&amp;gt; of=/dev/sdX bs=1MB&lt;/code&gt; (where &lt;code&gt;sdX&lt;/code&gt; is your USB drive), or use a GUI tool like Disks (&lt;code&gt;gnome-disks&lt;/code&gt;) -&amp;gt; Restore Disk Image&amp;hellip;&lt;/p&gt;
&lt;h2 id="setting-up-the-network"&gt;Setting Up the Network&lt;/h2&gt;&lt;p&gt;After booting into the live environment, start the following service: &lt;code&gt;systemctl start dhcpcd&lt;/code&gt;. If you&amp;rsquo;re using a wired connection, that&amp;rsquo;s all you need. If you&amp;rsquo;re on Wi-Fi (for example, on a laptop), run these additional commands:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;span class="lnt"&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl start iwd
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;iwctl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;device list
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This will list your Wi-Fi devices. Suppose yours is &lt;code&gt;wlan0&lt;/code&gt; (if not, replace &lt;code&gt;wlan0&lt;/code&gt; in the commands below with your actual device name):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;station wlan0 scan
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;station wlan0 get-networks
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This will display the available Wi-Fi networks. Assuming your network name is &lt;code&gt;SSID&lt;/code&gt;, connect to it with:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;station wlan0 connect SSID
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;You&amp;rsquo;ll be prompted for the Wi-Fi password (if any). Once connected, you can move on to the next steps.
Test your internet connection with: &lt;code&gt;ping google.com -c2&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="updating-the-system-clock"&gt;Updating the System Clock&lt;/h2&gt;&lt;p&gt;&lt;code&gt;timedatectl set-ntp true&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="partitioning-the-disk"&gt;Partitioning the Disk&lt;/h2&gt;&lt;p&gt;Here I use &lt;code&gt;fdisk&lt;/code&gt;, though you can use any partitioning tool you prefer.&lt;br&gt;
&lt;strong&gt;Note:&lt;/strong&gt; Arch Linux recommends an EFI partition of 260–512 MiB and a SWAP partition of at least 512 MiB. SWAP is important, but I plan to use a swap file after installation, so I won&amp;rsquo;t create a swap partition here.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fdisk -l
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fdisk /dev/sda&amp;lt;/code
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;(Type &lt;code&gt;m&lt;/code&gt; inside &lt;code&gt;fdisk&lt;/code&gt; if you need help with the commands!)&lt;/p&gt;
&lt;h3 id="formatting-the-partitions"&gt;Formatting the Partitions&lt;/h3&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkfs.fat -F32 /dev/sda1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkfs.ext4 /dev/sda2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h3 id="mounting-the-partitions"&gt;Mounting the Partitions&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Arch Linux recommends mounting the EFI partition at &lt;code&gt;/efi&lt;/code&gt; rather than &lt;code&gt;/boot/efi&lt;/code&gt; as many other distributions (such as Ubuntu) currently do.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;span class="lnt"&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mount /dev/sda2 /mnt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkdir /mnt/efi
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mount /dev/sda1 /mnt/efi
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id="installing-the-system"&gt;Installing the System&lt;/h2&gt;&lt;p&gt;Hehe, after all those &amp;ldquo;warm-up&amp;rdquo; steps, we finally get to the actual installation.&lt;/p&gt;
&lt;p&gt;First, we should configure the mirror servers for better download speeds. Since we&amp;rsquo;re in Vietnam, using the &lt;code&gt;archlinuxvn&lt;/code&gt; mirror works great. Run &lt;code&gt;nano /etc/pacman.d/mirrorlist&lt;/code&gt; and add the following line right at the top: &lt;code&gt;Server = http://f.archlinuxvn.org/archlinux/$repo/os/$arch&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Then save (&lt;em&gt;Ctrl+O&lt;/em&gt;, &lt;em&gt;Enter&lt;/em&gt;) and exit (&lt;em&gt;Ctrl+X&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;Install the essential packages with: &lt;code&gt;pacstrap /mnt base linux linux-firmware&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="configuring-the-system"&gt;Configuring the System&lt;/h2&gt;&lt;p&gt;Next are the tweaks needed to get the system up and running.&lt;/p&gt;
&lt;h3 id="generating-the-fstab-file"&gt;Generating the fstab File&lt;/h3&gt;&lt;p&gt;To mount partitions automatically on boot: &lt;code&gt;genfstab -U /mnt &amp;gt;&amp;gt; /mnt/etc/fstab&lt;/code&gt; (you can replace &lt;code&gt;-U&lt;/code&gt; with &lt;code&gt;-L&lt;/code&gt; if you prefer defining partitions by label instead of UUID).&lt;/p&gt;
&lt;h4 id="chrooting-into-the-new-system"&gt;Chrooting into the New System&lt;/h4&gt;&lt;p&gt;&lt;code&gt;arch-chroot /mnt&lt;/code&gt;&lt;/p&gt;
&lt;h4 id="setting-the-time-zone"&gt;Setting the Time Zone&lt;/h4&gt;&lt;p&gt;Since we&amp;rsquo;re in Vietnam, we&amp;rsquo;ll select Ho Chi Minh City: &lt;code&gt;ln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime&lt;/code&gt;. Then synchronize the hardware clock: &lt;code&gt;hwclock --systohc&lt;/code&gt;&lt;/p&gt;
&lt;h4 id="localization"&gt;Localization&lt;/h4&gt;&lt;p&gt;First, install &lt;code&gt;vim&lt;/code&gt; so we can edit text files: &lt;code&gt;pacman -S vim&lt;/code&gt;. Then edit &lt;code&gt;/etc/locale.gen&lt;/code&gt;: &lt;code&gt;vim /etc/locale.gen&lt;/code&gt;
Uncomment the line &lt;em&gt;en_us.UTF-8 UTF-8&lt;/em&gt; (and &lt;em&gt;vi_VN UTF-8&lt;/em&gt; if you like :v) (press &lt;em&gt;i&lt;/em&gt; to enter insert mode so you can edit), save and exit (&lt;em&gt;Esc&lt;/em&gt;, then type &lt;code&gt;:wq&lt;/code&gt;), and run: &lt;code&gt;locale-gen&lt;/code&gt;. Next, edit &lt;code&gt;/etc/locale.conf&lt;/code&gt;: &lt;code&gt;vim /etc/locale.conf&lt;/code&gt; and add the line &lt;em&gt;LANG=en_US.UTF-8&lt;/em&gt;&lt;/p&gt;
&lt;h4 id="setting-the-hostname"&gt;Setting the Hostname&lt;/h4&gt;&lt;p&gt;Edit &lt;code&gt;/etc/hostname&lt;/code&gt; and put &lt;em&gt;myhostname&lt;/em&gt; in it (where &lt;em&gt;myhostname&lt;/em&gt; is whatever name you want to give your computer). Similarly, edit &lt;code&gt;/etc/hosts&lt;/code&gt; with the following entries:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;span class="lnt"&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;127.0.0.1 localhost
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;::1 localhost
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;127.0.1.1 myhostname.localdomain myhostname
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h4 id="initializing-initramfs"&gt;Initializing Initramfs&lt;/h4&gt;&lt;p&gt;(usually this step isn&amp;rsquo;t necessary)&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mkinitcpio -P&lt;/code&gt;&lt;/p&gt;
&lt;h4 id="setting-the-root-password"&gt;Setting the Root Password&lt;/h4&gt;&lt;p&gt;Type &lt;code&gt;passwd&lt;/code&gt;, then enter your new password twice.&lt;/p&gt;
&lt;h4 id="installing-microcode-optional"&gt;Installing Microcode (Optional)&lt;/h4&gt;&lt;p&gt;Depending on whether you use an Intel or AMD CPU, install the matching package: &lt;code&gt;pacman -S amd-ucode&lt;/code&gt; (for AMD) or &lt;code&gt;pacman -S intel-ucode&lt;/code&gt; (for Intel).&lt;/p&gt;
&lt;h4 id="installing-the-boot-loader"&gt;Installing the Boot Loader&lt;/h4&gt;&lt;p&gt;Here I use &lt;code&gt;grub&lt;/code&gt; (popular, flexible, and highly customizable) along with &lt;code&gt;efibootmgr&lt;/code&gt; (since I&amp;rsquo;m installing in UEFI mode :D):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pacman -S grub efibootmgr
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;grub-install --target&lt;span class="o"&gt;=&lt;/span&gt;x86_64-efi --efi-directory&lt;span class="o"&gt;=&lt;/span&gt;/efi --bootloader-id&lt;span class="o"&gt;=&lt;/span&gt;Archlinux
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;If you mounted your EFI partition the same way I did, run the command as shown; otherwise, replace &lt;code&gt;/efi&lt;/code&gt; with your EFI mount point. You can also change &amp;ldquo;Archlinux&amp;rdquo; in that command to whatever name you like—it will show up in your BIOS Boot Options (assuming you haven&amp;rsquo;t locked the Boot Order; my ThinkPad has that feature).&lt;/p&gt;
&lt;p&gt;Update GRUB: &lt;code&gt;grub-mkconfig -o /boot/grub/grub.cfg&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And that&amp;rsquo;s it—you&amp;rsquo;ve finished installing Arch Linux on your machine! You can reboot right away to try it out:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;umount -R /mnt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;reboot
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;However, I recommend going through a few &amp;ldquo;post-installation&amp;rdquo; steps before rebooting for the best experience, because right now you only have the bare-bones base packages installed and can&amp;rsquo;t use it like a proper desktop yet. I&amp;rsquo;ll write a follow-up post on that very soon. See you next time!&lt;/p&gt;
&lt;p&gt;Reference: &lt;a href="https://wiki.archlinux.org/index.php/Installation_guide" rel="noopener noreferrer"&gt;https://wiki.archlinux.org/index.php/Installation_guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Good luck! If you run into any trouble, feel free to drop a comment below and I&amp;rsquo;ll do my best to help.&lt;/p&gt;</description></item></channel></rss>