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

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

Compiling C++ Statically

The first programming language I took when I started my undergraduate study in computer science was C. The second language was C++, taken in the following semester.I really liked C/C++ back then, but I never got a chance to actually use C/C++ in any real-life project. After transfering to the University of Auckland in New Zealand, I had to pick up Java as almost all computer science courses taught in Java back in early 2000....

December 24, 2018 · 2 min · 405 words · kenno

Update ThinkPad X1 Carbon G6 BIOS Update on Fedora

As a ThinkPad fan, I really like X1 Carbon (G6). I run Fedora 28 on it, and almost everything runs flawlessly. One issue that bothers me a lot is problem with suspend. The X1 Carbon G6 supports S0i3 instead of the S3. Without the S3, when the laptop is put to suspended, the battery continue to drain and sometimes the cpu fan keeps running. Fortunately, this issue has been recently addressed by Lenovo through firmware update....

September 13, 2018 · 2 min · 279 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

Playing movie with Dragon player on Fedora 28

With fresh installation of Fedora 28 I wasn’t able to play any downloaded Japanese animations with the default movie player – Dragon player. My other machine which also runs Fedora 28 could play the movie fine. Without any doubts I must have installed some additional codecs on that machine. But which codecs? Like last time, Google I must search. I’m going to write this post so I wouldn’t have to repeatedly search for the same solution....

June 24, 2018 · 1 min · 188 words · kenno

SELinux is preventing mpd from getattr access on the directory /root/.config.

What? Why does mpd want to access /root/.config? What’s MPD? It’s a daemon for playing music. It runs as a service, which I connect to with either ncmp or ncmpcpp. Here’s the full SETroubleshoot detail: The version of MPD that causes this issue is: 0.20.10 on Fedora 27. I’m pretty sure it was working last week and I didn’t have to do anything. So what’s changed? Well, it seems like this could be a very old problem as reported int bug 1325502....

March 2, 2018 · 2 min · 282 words · kenno

Change the urxvt font size on the fly

urxvt or unicode-rxvt is a terminal simulator like Gnome-terminal or Konsole. Recently I’m trying to switch to use i3 (i3-gaps), a tiling windows manager, and urxvt is good compliment to i3. Unlike Gnome-terminal or Konsole, the font name and size for urxvt are configured in ~/.Xresources. To make change to font size, for example, I’d edit ~/.Xresources, reload it with xrdb ~/.Xresources, and finally close and re-open urxvt itself. Though there is no built-in function to allow changing font size on the fly, urxvt allows us to do this via extensions....

December 24, 2017 · 2 min · 294 words · kenno

ZFS on Linux is now available for Fedora 27

My main machine at home has been upgraded from Fedora 26 to 27 since the day the 27 was released. Everything has been working great, except the ZFS file system. I’m a ZFS-believer and I store my important files on ZFS-based storage. For a while there was no repository for Fedora 27 provided by zfsonlinux, until 6 days ago. I have been using packages provided for Fedora 26 as work around solution....

December 19, 2017 · 1 min · 104 words · kenno

How to remove a copr repository in Fedora

This is just a quick note to remind myself how to remove a Copr repository. What’s a Copr? “Copr (Cool Other Package Repo) is a Fedora project to help make building and managing third party package repositories easy.” – https://fedoraproject.org/wiki/Category:Copr. Why do I want to remove it? One of the Copr repo I added a while back seemed to be no longer working, so I wanted to remove it. To list all repos on Fedora (27):...

December 11, 2017 · 1 min · 91 words · kenno