I Love Ranger

I Love Ranger

wretchedghost
My ranger config can be found here. Here is a quick write up of a program that I have heard of before and installed but never found it necessary in my work flow. I have and still am happy to move around in the command line like I have been for the past ten years plus but now after finding a good reason to try it out this time since I have been moving around a lot more in the command line from writing blogs to notes to novels, and everything in between, I felt like my work flow wasn’t as optimized nor as speedy as it could be.
Exanding ZFS Root Parition on a Live System

Exanding ZFS Root Parition on a Live System

wretchedghost
The Problem My server, cprox, as I call it, was set up with only 64GB of storage on the root partition. I don’t know what I was thinking at the time, but this caused issues only a week after setting up the new server. Within this time, the OS, packages, and other things Proxmox does, consumed 86% of the drive. This made things run slowly and caused the command line to freeze sometimes, which was very weird since the OS was on mirrored SSDs - which is exactly what allowed me to do this resizing live.
Vim Plugins Setup

Vim Plugins Setup

wretchedghost
Why Use Vim Plugins? In the Vim Basics series, we covered vanilla vim and how powerful it is right out of the box. And honestly, vanilla vim can handle 90% of your daily work as a sysadmin. But sometimes you want that extra 10% - better syntax highlighting, file navigation, or quality of life improvements that make your workflow even smoother. The key is not to go overboard. I’ve seen people install 30+ plugins and end up with a slow, bloated vim that defeats the purpose of using a lightweight editor in the first place.
Vim Basics: Part 3

Vim Basics: Part 3

wretchedghost
Building on the Basics Now that we know how to open a file, edit it, move around in it, and save it, let us now look into how we can tweak it. My post to part 1 of vim basics can be found here: https://blog.lanlocked.xyz/post/vim-basics-part-1/. Part 2 can be found here: https://blog.lanlocked.xyz/post/vim-basics-part-2. In this part, we’ll cover visual mode, text objects (which will change how you think about editing), and then dive into customizing vim with your .
Vim Basics: Part 2

Vim Basics: Part 2

wretchedghost
Welcome Back In Part 1, we covered the basics of opening vim, understanding normal and insert modes, and moving around with the hjkl keys. If you haven’t read that yet, I’d recommend starting there as we’ll build on those concepts. Now it’s time to tackle what might be the most infamous aspect of vim: how to actually save and exit the program. We’ll also dive into some useful editing commands that will start to show you why vim users are so passionate about this editor.
Vim Basics: Part 1

Vim Basics: Part 1

wretchedghost
Getting to know vim If you are looking for a way to get more efficient at editing configs and text then vim is what you are wanting. Even at its most basic interface with no added plugins, vim can help you manipulate a file with its efficient modes and commands. vim is not the easiest to learn, especially for beginners where often newbies trying it out for the first time find they are not even able to exit the program.
How to Remove the DRM on Amazon Audible Files - Updated

How to Remove the DRM on Amazon Audible Files - Updated

wretchedghost
Editor’s Note: When I first published this article, the https://audible-converter.ml/ shortcut method still worked. As of August 2023, that site is down. The method below using RainbowCrack still works perfectly. Why You Should Care As Amazon continues to expand their collection of books, music, and audiobooks, licensing disputes with publishers and authors will continue to cause problems. What this means for us as users is that we could lose access to media we purchased on Amazon’s platform.
My Take on Synology as a Sys-Admin

My Take on Synology as a Sys-Admin

wretchedghost
I first dipped my toes into using Synology though their top-notch NVR system. I had eight cameras at the time around my house and it worked very well for myself and my family, though paying $40-$50 a license per camera can get expensive fast. I didn’t really use it for its other features for years until a fellow sysadmin introduced to me the functionality that it had offered him as he did large project like setup NVR and NASes for the city and school systems.
Giving New Life to a Chromebook

Giving New Life to a Chromebook

wretchedghost
I am the new owner of a hand-me-down Chromebook that to me, now has a new reason to exist. No longer is it tied to Google and their tracking and ads policies. Rather it is its own system now, complete with Arch Linux/EndeavourOS on i3-wm. I first purchased this laptop for my oldest child who required something for online school during the Covids and I landed on the Lenovo S340-14. Inside it has a Celeron N4000 dual core/dual hyperthread CPU, 4GB of RAM, 64GB of storage, and a 14 inch TN screen at 1920x1080 and 220 nits.
Running Asahi Linux on my Macbook Air M1

Running Asahi Linux on my Macbook Air M1

wretchedghost
Even though this device is not meant to be running Linux, I’m going to be tough during this review. Setup process It’s extremely easy. Enter in the script, read what its outputting, click a few keys, voila, you have a running Asahi Linux system that dual-boots with MacOS. Ok, its not as simple as that but one through ten where 10 is installing Gentoo its like a two. The only gotchas that occur are when you don’t read the final output and your system goes into an infinite boot loop which is remedied by simply resetting and holding the power button until it tells you it is booting into config mode.
The Reasons I Keep Going Back to MikroTik

The Reasons I Keep Going Back to MikroTik

wretchedghost
I have been using MikroTik (my-crow-tick or me-crow-teek), or however you want to pronounce it, for several years now and I just keep coming back to using it. MikroTik, for the uninitiated, can be quite a difficult system to learn and use. There are quite a bit of gotchas that can bite you along the way and even now, some things can still trip me up if I’m not paying attention to what I’m doing.
Data Hoarding in an RV - Updated

Data Hoarding in an RV - Updated

wretchedghost
In my previous article of , I documented how I was using a Synology DS1520+ as my NAS. After fighting with it and the main array of weird issues Synology desires to implement, which I won’t get into here, I have recently sold the setup and gone with a much more robust system, or systems, in my RV. I have built three new server systems, but first lets start with what hardware I am currently running.
How to Upgrade Gitea

How to Upgrade Gitea

wretchedghost
Updating gitea is a simple as replacing the binary in /usr/local/bin/gitea. Stop the gitea service $ sudo systemctl stop gitea Move the current binary from gitea to gitea.old just in case things break. $ sudo mv /usr/local/bin/gitea /usr/local/bin/gitea.old Use wget to get the the current version: example -> https://github.com/go-gitea/gitea/releases/download/v1.20.2/gitea-1.20.2-linux-amd64. This is not the latest version, this is just an example. cd ~/Downloads && wget https://github.com/go-gitea/gitea/releases/download/v1.20.2/gitea-1.20.2-linux-amd64 Change the name of the file from gitean-x.
My MikroTik Firewall Rules

My MikroTik Firewall Rules

wretchedghost
I wanted to show a little firewall rule that I setup that will allow an entity to attempt to login via SSH or Winbox and have them locked out for 21 days after so many attempts. You can tweak this to allow for more attempts and or have them locked out indefinably. This might be considered a tar pit for those that know that term except this is a manual tar pit that acts a little differently than the one MikroTik has built-in.
How to Sync AntennaPod with Nextcloud | Part 2

How to Sync AntennaPod with Nextcloud | Part 2

wretchedghost
I have basically gone this whole entire setup just to get synchronization on AntennaPod and my phone/devices. Is it worth it? Not really as you can do the same with exporting the backup the official AntennaPod to another phone or use an OPML file to do the same for other podcast clients, but its a fun project. Now that we have Nextcloud up and running now we can install the GPodder Sync app.
How to Sync AntennaPod with Nextcloud | Part 1

How to Sync AntennaPod with Nextcloud | Part 1

wretchedghost
After much research and trial and error I have found the gpodder implementation to be very terrible. The only known way to get synchronzation across devices is to setup a nextcloud server and install the plugin/addin gpodder. The other ways that I have tested but could not get any to work due to broken links and or not enough information are with micro-gpodder-server and gpodder2go. Both failed miserably. The official link/website and how-to from gpodder.
Using Perl-Rename For File Substitution

Using Perl-Rename For File Substitution

wretchedghost
I tried to use sed to rename filenames but found it rather cumbersome. sed is great when used to edit the content of a file which you can find some examples I created here, but I found this handy program that can do the same but for filenames instead. Installed on my Arch, BTW, system I already had the program called rename which is not the same as the one we need called perl-rename.
Pixel 4 on GrapheneOS EoL:

Pixel 4 on GrapheneOS EoL:

wretchedghost
Editor’s Note GrapheneOS has placed the Pixel 4 line in legacy extended support which is great news as I believe many people complained and or threw money at the GrapheneOS creators. Unfortunately, my Pixel 4 XL that I have been using with GrapheneOS for around two years now is End-of-Life. All the Pixel 4 range except the Pixel 4a(5G) will no longer be getting any extended support nor security updates as of Oct 1, 2023.
Two-Factor Auth and/or Passwordless Login on Arch Linux Using u2f Physical Keys

Two-Factor Auth and/or Passwordless Login on Arch Linux Using u2f Physical Keys

wretchedghost
Credit Where Credit Is Due I used a lot of https://old.jamesthebard.net/archlinux-and-u2f-login/ config but then tweaked it and added a litle more explination as his entry was from 2017~. Let’s Start the Rant I have always wanted a way to get away from always having to type in password to login or use sudo. There are security concerns by allowing this type of login, one is the fact that anyone who possesses my key could then login and run as sudo, also is the factor that with some tweaking you can make it only allow for key entry via u2f :lock:.
Web Scraping for Preservation's Sake

Web Scraping for Preservation's Sake

wretchedghost
Due to the higher complexities of running a modern website or blog securely or rather, for making it easier for people via CloudFlare and the like, I have found that when one of those main sites are down, again like CloudFlare, sites that rely on their DNS redirecting and whatnot, go down too. Many blogs that I follow are starting to jump on that band-wagon which is annoying since it can be quite a bit of time for a site to return to working order whether it was on CloudFlare’s side or the blog owner.
Vim Substitution

Vim Substitution

wretchedghost
vim substitution is one tool any advanced vim user should know. Basically, vim substitution is similar to search and replace used on other file editors but vim goes much further than just searching and replacing files and characters. For anyone who creates bash scripts and edits a ton of config files like myself, will attest to the need to comment and uncomment many lines at a time. I’ll start with the basic uses of substitution and go into the more meaty commands as we go along.
AntennaPod Has To Be My Favorite App Right Now

AntennaPod Has To Be My Favorite App Right Now

wretchedghost
After hacking my Amazon Audible key which can be found in a previous post here: https://blog.wretchednet.com/post/hacking_aax/, I was on the hunt for an audiobook player that was OpenSource and simple to work with. My search for anything on Android begins with F-Droid, an OpenSource app “store”, that has tons of OpenSource apps made by awesome people. Most of these apps are less bloaty and don’t track your usage. Some are labeled as having Anti-features which conveniently show how they may do things like track and or require access to your files.
Auto Screen Lock With Suspend and Resume in i3 With Systemd

Auto Screen Lock With Suspend and Resume in i3 With Systemd

wretchedghost
After using i3-wm, formally known as i3-gaps, for several years on my personal workstation I have not really needed to use the i3lock features that often due to my workstation being in my office where no one else touches it. They wouldn’t know how to use it in they did try and mess with my workstation. But now that I am using my same i3 config across more systems including my work computer where I now use it manage and maintain the network and servers of my work, I began looking for ways to make my computer more secure.
Data Hoarding in an RV

Data Hoarding in an RV

wretchedghost
I like to data hoard but I don’t take it the extreme. I am able to prune things I really don’t need. Living in an RV doesn’t help with having excess. In fact part of the liberating thing of the RV life is to get rid of things that we don’t really need. Believe me it was hard giving up on my networks, and servers, server racks, and full tower PCs, but going miniature and finding out what you really need is freeing.
My Thinkpad Woes

My Thinkpad Woes

wretchedghost
Maybe its my fault but my latest hardware purchase a Lenovo Thinkpad X1 Extreme Gen4 has been nothing but issues for me. Lets start with the hardware. I thought purchasing a badass laptop with a 4K display, RTX 3070 mobile, a 16:10 aspect ratio, and all the other great aspects that a powerful laptop is known for would translate well into a beast of a machine that can handle anything I give it.
Use Tailscale to Connect over CGNAT Devices (ie., SpaceX, Verizon, Tmobile, etc.)

Use Tailscale to Connect over CGNAT Devices (ie., SpaceX, Verizon, Tmobile, etc.)

wretchedghost
EDITOR’S NOTE – 08-07-2023 – This article has been updated to fill in missing info and explain better some misunderstood concepts. For those of us using SpaceX satellite internet, we have had a great means to have internet in virtually any location now, but it does come with some caveats. One major one is the fact that SpaceX satellite networks are CGNATed (Carrier grade NAT). For those that don’t know what that means, NAT, which is used by virtually any router/modem to redirect an internal network (ie.
How Linux Can Free You

How Linux Can Free You

wretchedghost
I’ve been a user of Linux since 2011. My brother-in-law was the one who introduced me to Linux and more specifically, Ubuntu. Since then, I have loved every minute of it. Even though I don’t use Ubuntu as my daily driver machine, but I do use it and Debian for servers, I am eternally grateful for him showing me this entire different world of computers. Sometimes learning new things can be frustrating, and believe me there is a steep climb atop the Linux mountain, but once you reach a certain point you just cannot fathom life without it.
The Watch Command

The Watch Command

wretchedghost
The watch command is used when you want to have a program run every so many seconds that you define. I often use it to see the stream of files that are being transferred or for checking the status of scripts while I test them. Running The Watch Command Here is a common way that I use watch after I have run rsync just to make sure things are going the way they should:
Sometimes You Just Need to Reboot Your System

Sometimes You Just Need to Reboot Your System

wretchedghost
If you ever have an issue with Arch Linux it could be due to a kernel issue. Due to Arch Linux’s rolling release nature, an update usually comes with a new kernel. Due to the mismatch between what you are running and what Arch Linux is now looking for, various things can stop working. For me this specifically was the OS would not detect any new USB HDD I had just plugged into my computer.
i3-wm Advanced Lessons

i3-wm Advanced Lessons

wretchedghost
After using i3-wm (which I will call i3 from here on out) for over 5 years now, I have pretty much got it almost exactly how I like it. For reference here is my latest i3 config which can be found at https://git.wretchednet.com/wretchedghost/i3-wretchedbox This config might change here and there so check often as some things might have been updated since this post. Today’s lesson will revolve around some advanced tweaks to add to your config for a more finely tuned system on i3.