How to Update Packages on Arch Linux

Finally, I got Arch installed on my ThinkPad X220. This also means that I will need to learn how to install and update software from scratch again. But that’s the fun part, isn’t it? :) Like many other distros, before we can update the installed packages, we need to update the software database (i.e. updated list from the repositories): [root@tora ~]# pacman -Syy Note the above command is similar to apt-get update in Debian/Ubuntu....

December 7, 2019 · 1 min · 173 words · kenno

Destroying Unknown Status Pod in OpenShift

Here’s a quick tip to remove an OpenShift pod with “Unknown” status. Suppose this is the output when I run oc get pods: ~ ❯❯❯ oc get pods NAME READY STATUS RESTARTS AGE dothe-4-bjq8v 0/1 ContainerCreating 0 5h dothe-4-ghttj 1/1 Unknown 0 15h ~ ❯❯❯ oc delete pod dothe-4-ghttj pod "dothe-4-ghttj" deleted ~ ❯❯❯ oc get pods NAME READY STATUS RESTARTS AGE dothe-4-bjq8v 0/1 ContainerCreating 0 5h dothe-4-ghttj 1/1 Unknown 0 15h Let’s try deleting the bad pod again with --force option:...

May 17, 2019 · 2 min · 227 words · kenno

Fedora 30 Beta With ZFS Support

Up until today, I have been running Fedora 29 with the kernel 4.9. The current version of the kernel on Fedora 29 is 5.0. However, I had to stick with the 4.20 version for a very long while due to a thing I did a short while back. So what is that thing? Well, at one point ZFS (stable) no stopped working with the new kernel on Fedora 29. At then, I had a choice to either keep running older version of the kernel or trying out the new version of ZFS (testing)....

April 18, 2019 · 2 min · 380 words · kenno

Install Lmod on Gentoo

Lmod is not available in Gentoo’s portage. This blog post will document how I got Lmod installed on my Gentoo machine. First requirement is to install lua. I picked lua 5.2 as I had problem when experimenting with Lua 5.1. To install lua-5.2.3 from portage, run: # emerge -av =dev-lang/lua-5.2.3 If you have multiple versions of Lua installed, make sure to select this lua 5.2.3 as the default version using eselect:...

February 19, 2019 · 3 min · 442 words · kenno

Autostart a KVM Domain

Again this is a quick note to explain myself how to set a kvm (domain/vm) autostart when the server boots up. To list autostart domains: virsh list --autostart To set a domian, e.g. dhcp1, to autostart: virsh autostart dhcp1 To disable autostart for a domain (e.g. named dhcp1): virsh autostart dhcp1 --disable Ref: KVM: Start a Virtual Machine / Guest At Boot Time

February 13, 2019 · 1 min · 63 words · Kenno

ZFS Testing on Fedora

When Fedora release kernel 4.20.*, the ZFS 0.7.12 could no longer compiled. Accoriding to the ZFS release page at Github zfs-0.7.12 is only compartible iwth kernels 2.6.32 - 4.19. At first I was going to just wait for the 0.8.0 release, and continue to use kernel 4.19. However, Fedora keeps releasing the updates of kernel 4.20. As of this writing, the current version of the kernel on Fedora 29 is 4....

January 31, 2019 · 2 min · 215 words · kenno

How to remove Ctrl-M characters from files

A short while back, after exporting my blog from WordPress to Hugo I noticed that there were some weird ^M characters in some files as shown in the following screenshot in blue. This is a special character, CTRL+M and can be removed using sed or vim. Using vim we can replace/substitute a text with the following command: %s/MATCH-TEXT/WITH-NEW-TEXT/g Therefore, we should be able to replace ^M, by typing CTRL+V then CTRL+M, with an empty space as so:...

January 6, 2019 · 1 min · 133 words · kenno

Connect to a WPA2-Enterprise Connection Using nmcli

This is like a re-post of a question from askubuntu.com. To get to that post, I usually had to google it. So, I’ll post it here so I know where to look for when I need it again. At work, we use WPA2-Enterprise for wireless connection. To create a new connection on my laptop with wlp3s0 as Wifi device, follow this step: That’s it if you know how to do it....

August 27, 2018 · 1 min · 81 words · kenno

RHEL Recovering the Root Password

Early last year I started a blog post about the preparation for Red Hat Certified System Administrator (RHCSA) exam. My intention back then was to have more posts follow suit about the exam topics. Like many things in life, things don’t always go according to plan. That was the only post, but I passed the RHCSA exam. Today, I’m going to start another new post about the preparation for the Red Hat Certified System Engineer (RHCSE) exam....

August 12, 2018 · 2 min · 376 words · kenno

Changing the urxvt font size on the fly (take 2)

A while back I posted an instruction on how to change the font size in urxvt (terminal emulator) on the fly. In that post, I used a perl extension from https://github.com/simmel/urxvt-resize-font. Tonight, I tried to setup this extension on a brand new laptop running Fedora 28. For some reason, it doesn’t work at all. Luckily, I found another perl extension which works quite well. Here’s how I got it working on this Fedora 28, with Sway tiling windows manager (instead of i3 because I run Wayland with this Fedora 28)....

July 5, 2018 · 1 min · 187 words · kenno