<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Amit Kumar's Blog]]></title><description><![CDATA[Amit Kumar's Blog]]></description><link>https://blog.amitkr.xyz</link><generator>RSS for Node</generator><lastBuildDate>Thu, 28 May 2026 13:26:26 GMT</lastBuildDate><atom:link href="https://blog.amitkr.xyz/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Using AUR on Termux]]></title><description><![CDATA[Termux is a wonderful app that allows users to run a Linux environment on their Android devices. While it comes with many packages that can be installed through apt, there are still some missing from the main repo. Fortunately, there is a project cal...]]></description><link>https://blog.amitkr.xyz/using-aur-on-termux</link><guid isPermaLink="true">https://blog.amitkr.xyz/using-aur-on-termux</guid><category><![CDATA[termux]]></category><category><![CDATA[ArchLinux]]></category><dc:creator><![CDATA[Amit Kumar]]></dc:creator><pubDate>Sun, 28 May 2023 06:37:21 GMT</pubDate><content:encoded><![CDATA[<p>Termux is a wonderful app that allows users to run a Linux environment on their Android devices. While it comes with many packages that can be installed through apt, there are still some missing from the main repo. Fortunately, there is a project called <a target="_blank" href="https://github.com/termux-user-repository/tur">tur - (termux-user-repository)</a> which adds many of these missing packages.</p>
<p>However, due to Android limitations and the lack of root privileges, even <strong>tur</strong> may not have all the desired packages. This is where installing ArchLinux in a proot environment on Termux can come in handy.</p>
<p>ArchLinux has a vast user repository called AUR (Arch User Repository). In this article, we will guide you through installing ArchLinux and an AUR helper paru in a proot environment on Termux.</p>
<h2 id="heading-installing-archlinux-on-proot">Installing archlinux on proot</h2>
<ul>
<li>Before doing anything it's a good idea to upgrade all the existing termux packages. Open termux and type:</li>
</ul>
<pre><code class="lang-plaintext">pkg upgrade
</code></pre>
<ul>
<li>If you run into any issues, try this command first and follow the on-screen instructions:</li>
</ul>
<pre><code class="lang-plaintext">termux-change-repo
</code></pre>
<ul>
<li>Then, we need to install <code>proot-distro</code> for installing our archlinux environment:</li>
</ul>
<pre><code class="lang-plaintext">pkg install proot-distro
</code></pre>
<ul>
<li>Next, we need to install our archlinux distribution in the proot environment:</li>
</ul>
<pre><code class="lang-plaintext">proot-distro install archlinux
</code></pre>
<p>It might take a few minutes, depending on your internet speed.</p>
<ul>
<li>After that's done, we can enter the archlinux environment using proot:</li>
</ul>
<pre><code class="lang-plaintext">proot-distro login archlinux
</code></pre>
<p>This command will start the login shell into archlinux as root.</p>
<ul>
<li>Now, let's first upgrade all the archlinux packages using <code>pacman</code>:</li>
</ul>
<pre><code class="lang-plaintext">pacman -Syu
</code></pre>
<h2 id="heading-setting-up-our-user">Setting up our user</h2>
<p>It's not a good idea to run everything as root and if we want to use aur, we need to use the command <code>makepkg</code> which does not work as root.</p>
<ul>
<li>Make sure sudo is already installed:</li>
</ul>
<pre><code class="lang-bash">pacman -S sudo
</code></pre>
<ul>
<li>Add a user:</li>
</ul>
<pre><code class="lang-plaintext">useradd -m &lt;your-user-name&gt;
</code></pre>
<p>This will add a new user with its home directory.</p>
<ul>
<li>Set a password for your newly created user:</li>
</ul>
<pre><code class="lang-plaintext">passwd &lt;your-user-name&gt;
</code></pre>
<p>This password will be required when using any command with sudo as a normal user.</p>
<ul>
<li>To give this user access to sudo, We need to add this line <code>&lt;your-user-name&gt; ALL=(ALL:ALL) ALL</code> to the sudoers config file in <code>/etc/sudoers</code>. The recommended method for editing the sudoers file is with visudo command. Type:</li>
</ul>
<pre><code class="lang-bash">EDITOR=nano visudo
</code></pre>
<p>and add the following line:</p>
<pre><code class="lang-plaintext">&lt;your-user-name&gt; ALL=(ALL:ALL) ALL
</code></pre>
<p>Type <code>Ctrl+O</code> and then <code>Enter</code> to save the file and then <code>Ctrl+X</code> to exit.</p>
<ul>
<li>Now, we need to log in as our newly created user. You can use <code>su &lt;your-user-name&gt;</code> or:</li>
</ul>
<pre><code class="lang-bash"><span class="hljs-built_in">exit</span>
</code></pre>
<p>and then:</p>
<pre><code class="lang-plaintext">proot-distro login archlinux --user &lt;your-user-name&gt;
</code></pre>
<p>You can also make this long command an alias for future use.</p>
<h2 id="heading-setting-up-aur-helper">Setting up AUR helper</h2>
<p>Now, it's time to install our aur helper, we will be using <code>paru</code> for that, feel free to use any aur helper you like.</p>
<pre><code class="lang-bash">sudo pacman -S --needed base-devel
</code></pre>
<p>Use your user password, that we have set up when prompted</p>
<ul>
<li>Clone the paru repository:</li>
</ul>
<pre><code class="lang-bash">git <span class="hljs-built_in">clone</span> https://aur.archlinux.org/paru-bin.git
</code></pre>
<p>We will use <code>paru-bin</code> instead of <code>paru</code>. It will save us time from compiling <code>paru</code> from the source.</p>
<pre><code class="lang-bash"><span class="hljs-built_in">cd</span> paru-bin
</code></pre>
<pre><code class="lang-bash">makepkg -si
</code></pre>
<ul>
<li>Now, we can can use paru to install any AUR package. For, example:</li>
</ul>
<pre><code class="lang-bash">paru -S uwufetch
</code></pre>
<p>But I ran into a problem with an error message saying:</p>
<pre><code class="lang-plaintext">paru:error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
</code></pre>
<ul>
<li>To fix this error, we need to install a package <code>openssl-1.1</code>:</li>
</ul>
<pre><code class="lang-bash">sudo pacman -S openssl-1.1
</code></pre>
<ul>
<li>Now, it should work as intended:</li>
</ul>
<pre><code class="lang-bash">paru -S uwufetch
</code></pre>
]]></content:encoded></item><item><title><![CDATA[First article on hashnode]]></title><description><![CDATA[Heading
This is my first article on hashnode just to test and see how things work here.

So, far its looking really great.
It has similar things to markdown
I don't know much about this at all

My GitHub
https://github.com/amitkrxyz/]]></description><link>https://blog.amitkr.xyz/first-article-on-hashnode</link><guid isPermaLink="true">https://blog.amitkr.xyz/first-article-on-hashnode</guid><dc:creator><![CDATA[Amit Kumar]]></dc:creator><pubDate>Tue, 25 Jan 2022 19:30:19 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/unsplash/YeUVDKZWSZ4/upload/v1643138984078/gc_bfXqgA.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-heading">Heading</h1>
<p>This is my first article on hashnode just to test and see how things work here.</p>
<ul>
<li>So, far its looking really great.</li>
<li>It has similar things to markdown</li>
<li>I don't know much about this at all</li>
</ul>
<h2 id="heading-my-github">My GitHub</h2>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://github.com/amitkrxyz/">https://github.com/amitkrxyz/</a></div>
]]></content:encoded></item></channel></rss>