Passed EX415 Linux Security

The exam was 4 hour long. I managed to finish all questions in 3 hours. Fortunately, I found a mistake in the last hour. I think the EX415 exam wasn’t too difficult and pretty confident that I did well. The most difficult part: not knowing what I did wrong. Or how the marker scripts would like to see our answers. I suspected there was a mistake in a question, but who to ask since there is a NDA?...

September 10, 2020 · 1 min · 185 words · kenno

Pairing Bluetooth Mouse on Command Line

Ever since I’ve switched from Gnome to DWM on my main laptop, I have to perform most things on command line now. I know, right? :P Anyway, I need to pair a bluetooth mouse, Logi MX Anywhere 2S, with this Fedora laptop. I had a similar post a while back about connecting Bose QC35 to Fedora 29. So this is quite similar to that post. First, ensure that bluetooth.service is running:...

September 9, 2020 · 2 min · 323 words · kenno

Pfl Provides whatprovides on Gentoo

On Fedora or CentOS, on way to find out what package providing a file we can use yum whatprovides [FILENAME] or dnf whatprovides [FILENAME] on a DNF-aware system. # dnf whatprovides tmux Last metadata expiration check: 2:33:06 ago on Wed 09 Sep 2020 09:45:07 PM AEST. tmux-3.0a-2.fc32.x86_64 : A terminal multiplexer Repo : @System Matched from: Provide : tmux = 3.0a-2.fc32 tmux-3.0a-2.fc32.x86_64 : A terminal multiplexer Repo : fedora Matched from: Provide : tmux = 3....

September 4, 2020 · 2 min · 316 words · kenno

Locking Package Version with DNF Versionlock

While newer version of a package on Linux system is generally a good thing, and we should upgrade it, there is times when we should hold on to the older version. For instance, Fedora 32 just released a newer version of the kernel package 5.8.4 recently, and with this version, the zfs module, version 0.8.4, can’t be built. Therefore, if your Fedora system uses ZFS, like some of my machines, you’ll end up not seeing any ZFS dataset or pools....

August 30, 2020 · 3 min · 490 words · kenno

How to Enable Persistent Logging for Systemd Journal

On RHEL 7/8, CentOS 7/8 and even Ubuntu (??), by default the journal log data is stored only in memory (/run/log/journal/ directory). There are 2 ways to retain the journal log messages. The first one is to set the variable Storage to persistent in the /etc/systemd/journald.conf. [Journal] Storage=persistent Then restart the systemd-journald service. Another solution is simpler and it looks like it’s the recommended way of achieving this. All we have to do is to create a directory, /var/log/journal (with correct ownership and permission), and journald will automatically store the log messages there....

August 29, 2020 · 2 min · 418 words · kenno