diff --git a/public/blog/atom.xml b/public/blog/atom.xml index 286cb30..d2dd3e1 100644 --- a/public/blog/atom.xml +++ b/public/blog/atom.xml @@ -2,7 +2,7 @@ https://srizan.dev/blog Sr Izan's Blog - 2023-11-23T15:57:20.074Z + 2023-11-23T19:24:31.024Z https://github.com/jpmonette/feed Sr Izan @@ -174,6 +174,42 @@ rs0 [direct: secondary] vinci>

So that answers all your questions.

I hope you enjoyed this my first blog post, and thankfully it was a big one.
This took 3 hours in total, but at the end of the day, it was worth it.

I'll see you in the next one!

+]]> + + Sr Izan + https://srizan.dev + + + + <![CDATA[How to change the user password in Arch Linux if you forgot it]]> + https://srizan.dev/blog/3 + + 2023-11-22T23:00:00.000Z + + 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

+

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.

+
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:

+
passwd yourusername
+
+

and boom! that's it! impressive, right? exit off the console and then reboot.

+

The end

+

That was quick.

]]>
Sr Izan diff --git a/public/blog/feed.json b/public/blog/feed.json index d7c6a39..fa5bc9f 100644 --- a/public/blog/feed.json +++ b/public/blog/feed.json @@ -22,6 +22,18 @@ "url": "https://srizan.dev" } }, + { + "id": "https://srizan.dev/blog/3", + "content_html": "

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.

\n

Step 1: Boot up a live environment.

\n

For the sake of simplicity, I'll be using the Endeavour OS Galileo installation media, but any linux distro should work

\n

When you're in, open the terminal:\n\"\"

\n

Step 2: Mounting the linux distro

\n

Type in lsblk. This will show all mounted drives.\n\"\"

\n

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.

\n

In my case it's /dev/sda1.

\n

So let's mount the partition to the /mnt directory with sudo mount /dev/sda1 /mnt.

\n

Step 3: Chrootin'

\n

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.

\n

Arch Linux has it's own chroot command which does some magic in the background to make it useable on this distro's environments.

\n
sudo arch-chroot /mnt\n
\n

should chroot into your installation and after a few seconds a shell will show up!
\"\"

\n

And now one last command, the one that actually changes the password:

\n
passwd yourusername\n
\n

and boom! that's it! impressive, right? exit off the console and then reboot.

\n

The end

\n

That was quick.

\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": "

Hey!

\n

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.
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.
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.
Anyways, thank you for reading. I hope you enjoyed my UX/UI for this one!

\n

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.

\n", diff --git a/public/blog/rss.xml b/public/blog/rss.xml index d7de5d7..f041348 100644 --- a/public/blog/rss.xml +++ b/public/blog/rss.xml @@ -4,7 +4,7 @@ Sr Izan's Blog https://srizan.dev/blog My little donowall place on the net - Thu, 23 Nov 2023 15:57:20 GMT + Thu, 23 Nov 2023 19:24:31 GMT https://validator.w3.org/feed/docs/rss2.html https://github.com/jpmonette/feed en @@ -174,6 +174,38 @@ rs0 [direct: secondary] vinci>

So that answers all your questions.

I hope you enjoyed this my first blog post, and thankfully it was a big one.
This took 3 hours in total, but at the end of the day, it was worth it.

I'll see you in the next one!

+]]> + + + <![CDATA[How to change the user password in Arch Linux if you forgot it]]> + https://srizan.dev/blog/3 + https://srizan.dev/blog/3 + Wed, 22 Nov 2023 23:00:00 GMT + + 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

+

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.

+
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:

+
passwd yourusername
+
+

and boom! that's it! impressive, right? exit off the console and then reboot.

+

The end

+

That was quick.

]]>
diff --git a/src/blog/How-to-change-ArchLinux-password.md b/src/blog/How-to-change-ArchLinux-password.md new file mode 100644 index 0000000..d0a0b6e --- /dev/null +++ b/src/blog/How-to-change-ArchLinux-password.md @@ -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: +![](https://img.srizan.dev/vmware_zCwt9ac9KE.png) + +# Step 2: Mounting the linux distro + +Type in `lsblk`. This will show all mounted drives. +![](https://img.srizan.dev/vmware_LPBNlTo9BI.png) + +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! +![](https://img.srizan.dev/vmware_nyyqOA9ELo.png) + +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. \ No newline at end of file