feat: new blogpost

This commit is contained in:
2023-11-23 20:24:40 +01:00
parent 49a45b4f6d
commit 978260e495
4 changed files with 135 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://srizan.dev/blog</id>
<title>Sr Izan's Blog</title>
<updated>2023-11-23T15:57:20.074Z</updated>
<updated>2023-11-23T19:24:31.024Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<author>
<name>Sr Izan</name>
@@ -174,6 +174,42 @@ rs0 [direct: secondary] vinci&gt;
<p>So that answers all your questions.</p>
<p>I hope you enjoyed this my first blog post, and thankfully it was a big one.<br>This took 3 hours in total, but at the end of the day, it was worth it.</p>
<p>I&#39;ll see you in the next one!</p>
]]></content>
<author>
<name>Sr Izan</name>
<uri>https://srizan.dev</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[How to change the user password in Arch Linux if you forgot it]]></title>
<id>https://srizan.dev/blog/3</id>
<link href="https://srizan.dev/blog/3"/>
<updated>2023-11-22T23:00:00.000Z</updated>
<summary type="html"><![CDATA[This post was made for a certain person who loves to lose passwords]]></summary>
<content type="html"><![CDATA[<p>Alright, let&#39;s do this. Fast.
Disclaimer: this only works when the /home directory is on the same partition, which is the default option if you don&#39;t specify.</p>
<h1>Step 1: Boot up a live environment.</h1>
<p>For the sake of simplicity, I&#39;ll be using the Endeavour OS Galileo installation media, but <a href="https://command-not-found.com/arch-chroot">any linux distro should work</a></p>
<p>When you&#39;re in, open the terminal:
<img src="https://img.srizan.dev/vmware_zCwt9ac9KE.png" alt=""></p>
<h1>Step 2: Mounting the linux distro</h1>
<p>Type in <code>lsblk</code>. This will show all mounted drives.
<img src="https://img.srizan.dev/vmware_LPBNlTo9BI.png" alt=""></p>
<p>Locate the drive and partition where your installation is.<br>It&#39;s usually the partition with the most space. The space is on the size row (duh)<br>If you have multiple drives with the same size and want more info about the volumes, type in <code>fdisk -l</code>.</p>
<p>In my case it&#39;s <code>/dev/sda1</code>.</p>
<p>So let&#39;s mount the partition to the <code>/mnt</code> directory with <code>sudo mount /dev/sda1 /mnt</code>. </p>
<h1>Step 3: Chrootin&#39;</h1>
<p>Chroot is a linux tool which basically changes the root directory to whatever directory you specify. This will be used to run the <code>passwd</code> command inside your installation&#39;s context.</p>
<p>Arch Linux has it&#39;s own chroot command which does some magic in the background to make it useable on this distro&#39;s environments.</p>
<pre><code class="language-sh">sudo arch-chroot /mnt
</code></pre>
<p>should chroot into your installation and after a few seconds a shell will show up!<br><img src="https://img.srizan.dev/vmware_nyyqOA9ELo.png" alt=""></p>
<p>And now one last command, the one that actually changes the password:</p>
<pre><code class="language-sh">passwd yourusername
</code></pre>
<p>and boom! that&#39;s it! impressive, right? <code>exit</code> off the console and then reboot.</p>
<h1>The end</h1>
<p>That was quick.</p>
]]></content>
<author>
<name>Sr Izan</name>

View File

@@ -22,6 +22,18 @@
"url": "https://srizan.dev"
}
},
{
"id": "https://srizan.dev/blog/3",
"content_html": "<p>Alright, let&#39;s do this. Fast.\nDisclaimer: this only works when the /home directory is on the same partition, which is the default option if you don&#39;t specify.</p>\n<h1>Step 1: Boot up a live environment.</h1>\n<p>For the sake of simplicity, I&#39;ll be using the Endeavour OS Galileo installation media, but <a href=\"https://command-not-found.com/arch-chroot\">any linux distro should work</a></p>\n<p>When you&#39;re in, open the terminal:\n<img src=\"https://img.srizan.dev/vmware_zCwt9ac9KE.png\" alt=\"\"></p>\n<h1>Step 2: Mounting the linux distro</h1>\n<p>Type in <code>lsblk</code>. This will show all mounted drives.\n<img src=\"https://img.srizan.dev/vmware_LPBNlTo9BI.png\" alt=\"\"></p>\n<p>Locate the drive and partition where your installation is.<br>It&#39;s usually the partition with the most space. The space is on the size row (duh)<br>If you have multiple drives with the same size and want more info about the volumes, type in <code>fdisk -l</code>.</p>\n<p>In my case it&#39;s <code>/dev/sda1</code>.</p>\n<p>So let&#39;s mount the partition to the <code>/mnt</code> directory with <code>sudo mount /dev/sda1 /mnt</code>. </p>\n<h1>Step 3: Chrootin&#39;</h1>\n<p>Chroot is a linux tool which basically changes the root directory to whatever directory you specify. This will be used to run the <code>passwd</code> command inside your installation&#39;s context.</p>\n<p>Arch Linux has it&#39;s own chroot command which does some magic in the background to make it useable on this distro&#39;s environments.</p>\n<pre><code class=\"language-sh\">sudo arch-chroot /mnt\n</code></pre>\n<p>should chroot into your installation and after a few seconds a shell will show up!<br><img src=\"https://img.srizan.dev/vmware_nyyqOA9ELo.png\" alt=\"\"></p>\n<p>And now one last command, the one that actually changes the password:</p>\n<pre><code class=\"language-sh\">passwd yourusername\n</code></pre>\n<p>and boom! that&#39;s it! impressive, right? <code>exit</code> off the console and then reboot.</p>\n<h1>The end</h1>\n<p>That was quick.</p>\n",
"url": "https://srizan.dev/blog/3",
"title": "How to change the user password in Arch Linux if you forgot it",
"summary": "This post was made for a certain person who loves to lose passwords",
"date_modified": "2023-11-22T23:00:00.000Z",
"author": {
"name": "Sr Izan",
"url": "https://srizan.dev"
}
},
{
"id": "https://srizan.dev/blog/1",
"content_html": "<h1>Hey!</h1>\n<p>This is probably the last time I&#39;m going to make a blog. I&#39;ve made a few in the past, but I&#39;ve never really stuck to them. I&#39;m hoping that this time will be different.<br>This one was made entirely from scratch using React and Markdown, initially trying to use MDX, but it was a pain to set up, and it didn&#39;t end up working in the end.<br>I&#39;m hoping to post about my projects, and maybe some other stuff too. I&#39;m not sure yet, but I&#39;ll figure it out as I go along.<br>Anyways, thank you for reading. I hope you enjoyed my UX/UI for this one!</p>\n<p>PD: I need some help for making the blog text look good and readable, so hit me up on my Discord if you have any ideas.</p>\n",

View File

@@ -4,7 +4,7 @@
<title>Sr Izan's Blog</title>
<link>https://srizan.dev/blog</link>
<description>My little donowall place on the net</description>
<lastBuildDate>Thu, 23 Nov 2023 15:57:20 GMT</lastBuildDate>
<lastBuildDate>Thu, 23 Nov 2023 19:24:31 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
@@ -174,6 +174,38 @@ rs0 [direct: secondary] vinci&gt;
<p>So that answers all your questions.</p>
<p>I hope you enjoyed this my first blog post, and thankfully it was a big one.<br>This took 3 hours in total, but at the end of the day, it was worth it.</p>
<p>I&#39;ll see you in the next one!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How to change the user password in Arch Linux if you forgot it]]></title>
<link>https://srizan.dev/blog/3</link>
<guid>https://srizan.dev/blog/3</guid>
<pubDate>Wed, 22 Nov 2023 23:00:00 GMT</pubDate>
<description><![CDATA[This post was made for a certain person who loves to lose passwords]]></description>
<content:encoded><![CDATA[<p>Alright, let&#39;s do this. Fast.
Disclaimer: this only works when the /home directory is on the same partition, which is the default option if you don&#39;t specify.</p>
<h1>Step 1: Boot up a live environment.</h1>
<p>For the sake of simplicity, I&#39;ll be using the Endeavour OS Galileo installation media, but <a href="https://command-not-found.com/arch-chroot">any linux distro should work</a></p>
<p>When you&#39;re in, open the terminal:
<img src="https://img.srizan.dev/vmware_zCwt9ac9KE.png" alt=""></p>
<h1>Step 2: Mounting the linux distro</h1>
<p>Type in <code>lsblk</code>. This will show all mounted drives.
<img src="https://img.srizan.dev/vmware_LPBNlTo9BI.png" alt=""></p>
<p>Locate the drive and partition where your installation is.<br>It&#39;s usually the partition with the most space. The space is on the size row (duh)<br>If you have multiple drives with the same size and want more info about the volumes, type in <code>fdisk -l</code>.</p>
<p>In my case it&#39;s <code>/dev/sda1</code>.</p>
<p>So let&#39;s mount the partition to the <code>/mnt</code> directory with <code>sudo mount /dev/sda1 /mnt</code>. </p>
<h1>Step 3: Chrootin&#39;</h1>
<p>Chroot is a linux tool which basically changes the root directory to whatever directory you specify. This will be used to run the <code>passwd</code> command inside your installation&#39;s context.</p>
<p>Arch Linux has it&#39;s own chroot command which does some magic in the background to make it useable on this distro&#39;s environments.</p>
<pre><code class="language-sh">sudo arch-chroot /mnt
</code></pre>
<p>should chroot into your installation and after a few seconds a shell will show up!<br><img src="https://img.srizan.dev/vmware_nyyqOA9ELo.png" alt=""></p>
<p>And now one last command, the one that actually changes the password:</p>
<pre><code class="language-sh">passwd yourusername
</code></pre>
<p>and boom! that&#39;s it! impressive, right? <code>exit</code> off the console and then reboot.</p>
<h1>The end</h1>
<p>That was quick.</p>
]]></content:encoded>
</item>
<item>