mirror of
https://github.com/SrIzan10/mainwebsite.git
synced 2026-06-06 00:56:58 +00:00
feat: new blogpost
This commit is contained in:
@@ -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>
|
||||
<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'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'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't specify.</p>
|
||||
<h1>Step 1: Boot up a live environment.</h1>
|
||||
<p>For the sake of simplicity, I'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'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'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's <code>/dev/sda1</code>.</p>
|
||||
<p>So let's mount the partition to the <code>/mnt</code> directory with <code>sudo mount /dev/sda1 /mnt</code>. </p>
|
||||
<h1>Step 3: Chrootin'</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's context.</p>
|
||||
<p>Arch Linux has it's own chroot command which does some magic in the background to make it useable on this distro'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'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>
|
||||
|
||||
@@ -22,6 +22,18 @@
|
||||
"url": "https://srizan.dev"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "https://srizan.dev/blog/3",
|
||||
"content_html": "<p>Alright, let'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't specify.</p>\n<h1>Step 1: Boot up a live environment.</h1>\n<p>For the sake of simplicity, I'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'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'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's <code>/dev/sda1</code>.</p>\n<p>So let's mount the partition to the <code>/mnt</code> directory with <code>sudo mount /dev/sda1 /mnt</code>. </p>\n<h1>Step 3: Chrootin'</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's context.</p>\n<p>Arch Linux has it's own chroot command which does some magic in the background to make it useable on this distro'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'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'm going to make a blog. I've made a few in the past, but I've never really stuck to them. I'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't end up working in the end.<br>I'm hoping to post about my projects, and maybe some other stuff too. I'm not sure yet, but I'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",
|
||||
|
||||
@@ -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>
|
||||
<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'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'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't specify.</p>
|
||||
<h1>Step 1: Boot up a live environment.</h1>
|
||||
<p>For the sake of simplicity, I'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'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'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's <code>/dev/sda1</code>.</p>
|
||||
<p>So let's mount the partition to the <code>/mnt</code> directory with <code>sudo mount /dev/sda1 /mnt</code>. </p>
|
||||
<h1>Step 3: Chrootin'</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's context.</p>
|
||||
<p>Arch Linux has it's own chroot command which does some magic in the background to make it useable on this distro'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'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>
|
||||
|
||||
53
src/blog/How-to-change-ArchLinux-password.md
Normal file
53
src/blog/How-to-change-ArchLinux-password.md
Normal file
@@ -0,0 +1,53 @@
|
||||
---
|
||||
id: 3
|
||||
title: How to change the user password in Arch Linux if you forgot it
|
||||
description: This post was made for a certain person who loves to lose passwords
|
||||
date: 23/11/2023
|
||||
---
|
||||
|
||||
Alright, let'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't specify.
|
||||
|
||||
# Step 1: Boot up a live environment.
|
||||
|
||||
For the sake of simplicity, I'll be using the Endeavour OS Galileo installation media, but [any linux distro should work](https://command-not-found.com/arch-chroot)
|
||||
|
||||
When you're in, open the terminal:
|
||||

|
||||
|
||||
# Step 2: Mounting the linux distro
|
||||
|
||||
Type in `lsblk`. This will show all mounted drives.
|
||||

|
||||
|
||||
Locate the drive and partition where your installation is.
|
||||
It's usually the partition with the most space. The space is on the size row (duh)
|
||||
If you have multiple drives with the same size and want more info about the volumes, type in `fdisk -l`.
|
||||
|
||||
In my case it's `/dev/sda1`.
|
||||
|
||||
So let's mount the partition to the `/mnt` directory with `sudo mount /dev/sda1 /mnt`.
|
||||
|
||||
# Step 3: Chrootin'
|
||||
|
||||
Chroot is a linux tool which basically changes the root directory to whatever directory you specify. This will be used to run the `passwd` command inside your installation's context.
|
||||
|
||||
Arch Linux has it's own chroot command which does some magic in the background to make it useable on this distro's environments.
|
||||
|
||||
```sh
|
||||
sudo arch-chroot /mnt
|
||||
```
|
||||
should chroot into your installation and after a few seconds a shell will show up!
|
||||

|
||||
|
||||
And now one last command, the one that actually changes the password:
|
||||
|
||||
```sh
|
||||
passwd yourusername
|
||||
```
|
||||
|
||||
and boom! that's it! impressive, right? `exit` off the console and then reboot.
|
||||
|
||||
# The end
|
||||
|
||||
That was quick.
|
||||
Reference in New Issue
Block a user