Install Ansible on Gentoo

Gentoo provides a package called app-admin/ansible for Ansible. To install it, just run: ❯ sudo emerge --ask app-admin/ansible Note that unlike Ansible package on CentOS/Fedora, there is no default ansible.cfg provided with the Gentoo Ansible package. ❯ ansible --version ansible 2.9.9 config file = None configured module search path = ['/home/kenno/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/lib/python-exec/python3.7/ansible python version = 3.7.7 (default, May 9 2020, 19:52:18) [GCC 9.2.0] Reference: ...

June 28, 2020 · 1 min · 78 words · kenno

Gentoo Luks Fails Kernel 5.6

My Gentoo based Linux laptop which is still running the older kernel 5.3.15. A short while back, I had a failed attempt to upgrade the kernel to 5.4.2 as the disk which encrypted with dm-crypt couldn’t be decrypted on boot. Since the older kernel 5.3.15 was working fine and free time was I what I lacked of, it seemed logical to just not doing anything about it. Today while updating all the packages on my Gentoo laptop, I notice there was a newer kernel available: 5.6.3. So let’s try to install this newest kernel again and see if the issue with Luks/dm-crypt still persists. ...

April 11, 2020 · 3 min · 611 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.1.1(11:11:04 PM 04/14/2019)(-curl -debug -exif -test -xinerama) Homepage: https://feh.finalrewind.org/ Description: A fast, lightweight imageviewer using imlib2 According to the above information, feh:3.1.1 is already installed. It also mentions that feh use imlib2 library. ...

September 1, 2019 · 2 min · 237 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.14.63-gentoo-r1 [2] linux-4.14.65-gentoo [3] linux-4.14.78-gentoo [4] linux-4.14.83-gentoo [5] linux-4.19.27-gentoo-r1 [6] linux-4.19.44-gentoo [7] linux-4.19.52-gentoo [8] linux-4.19.57-gentoo [9] linux-4.19.64-gentoo * [10] linux-5.2.6-gentoo Let’s select linux-5.2.6-gentoo as the version we’d like to switch to: ...

August 6, 2019 · 1 min · 204 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