CTDB Not Starting Up on CentOS 7

While preparing for my Red Hat Gluster Storage Administration exam (EX236), I got stuck at a section of configuring IP failover with CTDB Clustered Trivial Database) for Samba. The problem is that I coudldn’t get the ctdb service running on my home lab running CentOS 7 and a newer version of ctdb. This problem occurs on the following platform and package version: CentOS Linux release 7.7.1908 (Core) ctdb 4.9.1-6.el7 # systemctl status ctdb ● ctdb....

October 13, 2019 · 3 min · 513 words · kenno

New BIOS Firmware for ThinkPad P1 1.24

I’ve been relying on Gnome Software Center to let me know when new ThinkPad P1 firmware is available. Up until today, there is no new firmware available since the last update back in August 2019. However, I stumbled on a post on reddit r/thinkpad, someone mentioned the BIOS 1.26 had been released for X1 Extreme/P1 Gen 2. This made me wonder if there was also new version of BIOS for the P1 Gen 1 that I have....

October 7, 2019 · 3 min · 593 words · kenno

grub2-editenv: error environment block too small

As the title says when I tried to generate grub on a machine running Fedora 31 using UEFI, I was presented with this error: # grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Generating grub configuration file ... grub2-editenv: error: environment block too small. ... I didn’t know what had caused it. However, it seemed like an easy fix was to remove the grubenv file. # rm /boot/efi/EFI/fedora/grubenv # grub-editenv /boot/efi/EFI/fedora/grubenv create # grub2-mkconfig -o /boot/efi/EFI/fedora/grub....

September 10, 2019 · 1 min · 142 words · kenno

feh WARNING: abc.png - No Imlib2 loader for that file format

As the title says, I cannot use feh to open a PNG image. feh on this machine can’t open a JPG image either. Let’s see what’s wrong. I should notice that this problem occured on a machine running Gentoo. :D First, let’s check if feh is installed using my favorite tool called eix: ~ ❯❯❯ eix feh [I] media-gfx/feh Available versions: 3.1.1 ~3.1.3 ~3.2 ~3.2.1^t {curl debug exif test xinerama} Installed versions: 3....

September 1, 2019 · 2 min · 237 words · kenno

Configure Encrypted Storage With LUKS

I’m currently preparing for the Red Hat Certified Specialist in Security: Linux exam (EX415). One of the exam objectives is about storage encryption using LUKS. Here’s my note learning about LUKS. It’s not meant to be a guide which you should copy and paste and run it on your production system. Suppose I have a new disk (/dev/vdb) attached to my server and I’d like to use it as an encrypted storage using LUKS....

August 29, 2019 · 3 min · 436 words · kenno

How I Update Hugo on My Machine

I run hugo hot off the development branch. Periodically I need to checkout the code and re-build it. I find myself having to google to do this almost all the time. So today, I’m gonna document this here so I can quickly look it up next time I want to update hugo. The hugo code has already be cloned to the following location in my desktop: mkdir -p $HOME/dev/go cd $HOME/dev/go git clone https://github....

August 25, 2019 · 1 min · 119 words · kenno

How to Generate a GPG Key

GPG, the GNU Privacy Guard, can be used to digitally sign email, encrypt files. GPG is also used to sign RPM package. In this post, I’ll write a short instruction on how to generate a new GPG key on RHEL or CentOS 7. The command we need to generate the GPG key is gpg. This program is provided by gnupg2, and it should have aready been installed in most system....

August 19, 2019 · 4 min · 658 words · kenno

Upgrading Kernel Issues and Fixes on Gentoo

Today I decided to upgrade the kernel (gentoo-sources) from 4.19.64 to 5.2.6 on my old ThinkPad X220. Apart from a few hiccups, everything went quite smoothly. I already have a blog post about upgrading the kernel on Gentoo, so I’ll skip many things here. First, ensure the sys-kernel/gentoo-sources-5.2.6 is installed: # emerge -av =sys-kernel/gentoo-sources-5.26 After the above package installed, we should be able to list it: ~ ❯❯❯ eselect kernel list Available kernel symlink targets: [1] linux-4....

August 6, 2019 · 1 min · 204 words · kenno

New Device Firmware Available for ThinkPad P1

It looks like there are more device firmware available for Lenovo ThinkPad P1 (and X1 Extreme). Based on the list from Gnome Software Center, the available firmware are: Thunderbolt Firmware N2ETF12W System Firmware (Embedded Controller) 0.1.11 System Firmware (?) 0.1.23 It’s time to update all of them on my P1.

August 4, 2019 · 1 min · 50 words · kenno

New Firmware 1.21 Available for ThinkPad P1

I run Fedora 30 on my ThinkPad P1 with i3 as a windows manager. Today, I switched to Plasma to test something out. While running plasma, I launched (Gnome) Software centre to check if there was any firmware update for this P1. To my surprise, there was one available: 1.21 released on April 29, 2019. Feel free to find out what’s new in this firmware at the following link: P1 (Type 20MD, 20ME) Laptop (ThinkPad)....

June 8, 2019 · 1 min · 96 words · kenno