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. # echo 'app-portage/eix sqlite' > /etc/portage/package.use/eix Then proced with the installation: ...

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