From 978260e4952886ce6795da26dee8d17cdffc5ab7 Mon Sep 17 00:00:00 2001
From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com>
Date: Thu, 23 Nov 2023 20:24:40 +0100
Subject: [PATCH] feat: new blogpost
---
public/blog/atom.xml | 38 +++++++++++++-
public/blog/feed.json | 12 +++++
public/blog/rss.xml | 34 ++++++++++++-
src/blog/How-to-change-ArchLinux-password.md | 53 ++++++++++++++++++++
4 files changed, 135 insertions(+), 2 deletions(-)
create mode 100644 src/blog/How-to-change-ArchLinux-password.md
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 @@
So that answers all your questions. I hope you enjoyed this my first blog post, and thankfully it was a big one. I'll see you in the next one!
This took 3 hours in total, but at the end of the day, it was worth it.
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:
+
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.
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.
That was quick.
]]>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.
\nFor the sake of simplicity, I'll be using the Endeavour OS Galileo installation media, but any linux distro should work
\nWhen you're in, open the terminal:\n
Type in lsblk. This will show all mounted drives.\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.
In my case it's /dev/sda1.
So let's mount the partition to the /mnt directory with sudo mount /dev/sda1 /mnt.
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.
\nsudo arch-chroot /mnt\n\nshould 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:
\npasswd yourusername\n\nand boom! that's it! impressive, right? exit off the console and then reboot.
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": "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!
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 @@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!
+]]> + +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:
+
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.
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.
That was quick.
]]>