Changing Hugo Theme

Had you visited this blog recently, you may have noticed that the blog’s theme has changed. Here is a quick note on how I changed the theme of this blog from cayman-hugo-theme to PaperMod. For a little background, Hugo themes are installed as git submodule. Want a quick recap on how to use Git Submodule? Here is a good content [0]. First, the current theme needs to be removed: $ git submodule 4a924cef54081b61530a30bd69d442ae99916561 themes/cayman-hugo-theme (heads/master) $ git submodule deinit "themes/cayman-hugo-theme" $ git rm "themes/cayman-hugo-theme" $ git commit -m 'remove theme cayman-hugo-theme' Add a new theme, PaperMod [2] as the submodule....

June 20, 2023 · 1 min · 173 words · kenno

How to find EC2 instance ID from a known private IP using AWS CLI

When I first started to use AWS CLI, I felt overwhelmed, and I wondered how long it would take me to be familiar with the tool. Fast forward to many months later, I find the AWS CLI very pleasant to use. For example, there are same patterns and the CLI reference page online is quite useful. Anyway, like many thing I’ve learned about Linux, I learned and could retain the information better with practice and document....

May 26, 2023 · 1 min · 208 words · kenno

How to Zip a file using command line

I normally use gzip for file compression. However, there is time when you want to share a compressed file with Windows users and you want to avoid them cursing at you. One good solution is to use zip compression (even if I had to learn how to do it on a Linux machine). Well, like always we can run man zip to learn more about it, but since you’re reading this, it is unlikely that you’re doing that....

May 22, 2023 · 1 min · 141 words · kenno

Proxmox Cannot Stop VM - Help!

I’ve been running a few VMs on Proxmox, including a Pfsense VM, for over a year without a single issue. This evening, however, I noticed that I wasn’t able to access any local DNS records due to the VM hosting DNS server was not responding. On checking the Proxmox console, I could see that that VM with ID 102 was definitely not responding. So, I tried to reboot, stop and even reset....

April 25, 2023 · 2 min · 420 words · kenno

How to Run Redis in Podman Container

This is just a quick note on how to run Redis as a container using Podman on Ubuntu 22.04 (i.e. there will be no mention about SELinux.) Create a persistent volume for the Redis container I like storing all data/volume for containers under /srv/data. So I’ll create a sub-directory called redis-data under the same location. # mkdir -p /srv/data/redis-data Pull the Redis image # podman pull docker.io/redis Create and run the Redis container # podman run -d --name redis_server \ -v /srv/data/redis-data:/var/redis/data \ -p 6379:6379 redis Create systemd service for the Redis container I like creating a systemd service to enable/start the container....

February 22, 2023 · 1 min · 189 words · kenno

Installing Htop on Oracle Linux 8

I want to install htop on Oracle Linux 8.7. How hard could it be? TL;DR; - it’s not hard, but it took me a little while to get htop installed. I’m not new to (most) Linux distros, but this is the first time I’m using Oracle Linux. So, let’s start by showing some basic information. [root@catbus ~]# cat /etc/os-release | grep -i pretty PRETTY_NAME="Oracle Linux Server 8.7" [root@catbus ~]# rpm -qi htop package htop is not installed [root@catbus ~]# dnf search htop Last metadata expiration check: 0:23:03 ago on Mon 06 Feb 2023 11:32:58 AM GMT....

February 6, 2023 · 3 min · 635 words · kenno

How to Install AWS CLI on RockyLinux

The awscli package is available from the EPEL repository, which is not enabled by default on RockyLinux. Enable the EPEL repo by installing epel-release pacakge. $ sudo dnf install epel-release Once the EPEL repo is successfully enabled, we can install awscli package. $ sudo dnf install awscli Enable and verify that the awscli is installed on the system. $ aws --version aws-cli/1.18.156 Python/3.6.8 Linux/4.18.0-425.10.1.el8_7.x86_64 botocore/1.18.15 As a bonus, here is how to configure the AWS credential....

January 31, 2023 · 1 min · 144 words · kenno

Check disk usage on root (/) partition excluding other partitions

While checking the root partition on my desktop today, I noticed that its usage is at 89% with just 6GiB free. For this reason, I wanted to find out what’s consuming most spaces and whether I can clean it up a bit. # df -h / Filesystem Size Used Avail Use% Mounted on /dev/mapper/fedora_watamem-root 56G 47G 6.3G 89% / The first two commands that come to my mind are du and ncdu....

September 22, 2022 · 3 min · 544 words · kenno

How to add additional remote git repository

Though it’s not very common in my daily work, I occasionally need to add additional remote Git repositories mainly for pushing. In fact, I did this about 4 to 5 times already, and thought that it’d be the last time. Today, I need do this again, and I forgot! Currently, I have the following remote repository set for ‘origin’: ❯ git remote -v origin git@git.homeserver.local:kenno/ansible.git (fetch) origin git@git.homeserver.local:kenno/ansible.git (push) I wanted to add https://kenno@gitea....

September 3, 2022 · 1 min · 193 words · kenno

How to reset Rhythmbox library

Rhythmbox stores its music database as an XML file located in ~/.local/share/rhythmbox/rhythmdb.xml. The easiest way to reset this database is to close the Rhythmbox program, and completely remove the rhythmdb.xml file. ➜ pkill rhythmbox ➜ rm ~/.local/share/rhythmbox/rhythmdb.xml ➜ rhythmbox & Reference: How does one clear the Rhythmbox music library database?

September 2, 2022 · 1 min · 50 words · kenno