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

NVME Not Found on Boot With UEFI

A quick note to remind myself how to get NVME recognized on Dell XPS 15 9570 on Gentoo. Make sure to add the kernel BLK_DEV_NVME options. NVM Express block device (BLK_DEV_NVME) CONFIG_BLK_DEV_NVME: The NVM Express driver is for solid state drives directly connected to the PCI or PCI Express bus. If you know you don't have one of these, it is safe to answer N. To compile this driver as a module, choose M here: the module will be called nvme....

January 17, 2019 · 1 min · 124 words · kenno

How to Connect to Hidden Wifi Using nmcli

Today I need to setup a wifi connection on a laptop to my home network with hidden SSID. Like so many things that I only have to do it once in a while, I couldn’t remember how to do it. So this blog post is something to remind me in the future should I need to do it agian. Here is one way to do it, thanks to this Stack Overflow question....

January 15, 2019 · 1 min · 188 words · kenno

Fix Dbus Daemon Autolaunch Was Disabled at Compile Time

When I tried to run notify-send on my laptop running Gentoo, it didn’t work and was given the following message: $ notify-send 'hello' Connecting to D-Bus failed: Using X11 for dbus-daemons autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead How do one set DBUS_SESSION_BUS_ADDRESS? Accoridng to this, it can be done by running: $ export $(dbus-launch) However, I want to also have D-Bus compiled with X11 support. First let’s verify if D-Bus service is running:...

January 15, 2019 · 2 min · 238 words · kenno

Upgrade Kernel on Gentoo

Today I’m going to document how I built and installed kernel 4.20.1 a Gentoo laptop, Dell XPS 15 9570. This blog post is not intended to be a tutorial or even a guide. I’m very new to Gentoo, and have been spoiled by Ubuntu and Fedora for not needing to compile my own kernel. :) Anyhow, it’s very likely that I’ll need to compile the kernel again on Gentoo, and therefore I think having some sorts of documents is better than nothing at all....

January 14, 2019 · 4 min · 802 words · kenno

Gentoo Eix Tool

A utility that I use quite a lot on a Gentoo system is called eix. This tool allows me to search for packages by name and list all available flags. The document on the Gentoo Wiki is great and has detailed explanation about it. In this blog post, I’m just going to write down what I did to get it installed. I want to set its flag to use qlite....

January 14, 2019 · 1 min · 113 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

Getting Started With Armadillo C++ Library

Yesterday while I was running system update on my home desktop, I noticed the armadillo package has been upgraded. I was pretty sure I never requested to have it installed on this desktop. The package name, though, looks very interesting. Upon looking it up, I found out that Armadillo is a C++ library for linear algebra. Coincidentally, I’ve been reviewing C++ during this end of year holiday. So it’s like a very good time to try this library out....

January 1, 2019 · 3 min · 497 words · kenno