Replacing a Disk in a Zpool

ZFS is one of my favorite file systems. I use it at home on my nas server (running FreeBSD) as well as my Fedora 32 desktop. Today, I’m going to show you (and my future self) how to replace a (faulty) disk in a Zpool. The server I’ll be working on is nas2 and the pool is tank. List the status of the current pool. Password: root@nas2:~ # zpool status tank pool: tank state: DEGRADED status: One or more devices could not be opened....

September 20, 2020 · 3 min · 445 words · kenno

Pairing Bluetooth Mouse on Gentoo

Just a few a days ago, I wrote a blog post about Pairing Bluetooth Mouse on Command Line on a Fedora laptop. So why do I need to write another post about doing the same thing on Gentoo? Well, as it turned out, I need a bit more than just turning on the bluetooth service and pairing the mouse. My Gentoo’s installation is very minimal, and I think this gives me an excuse to document on how I’d solve or get this working on Gentoo....

September 13, 2020 · 6 min · 1148 words · kenno

Resizing a GPT Partition

One of my virtual machines runs out of disk space in the root (/) partition, and I want to remove the /home partition and using this free space to resize the root partition. Nowadays, for any serious systems, I’d use LVM with XFS on top. However, for this test VM, I have a virtual disk with 4 partitions without LVM. Managing partition on LVM is much easier than working the disk partition directly....

September 10, 2020 · 3 min · 556 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

Thunderbolt Firmware for ThinkPad X1 Carbon 6 1.20

A quick note to remind ThinkPad X1 Carbon 6 users that Lenovo just released a new firmware for the Thunderbolt on this laptop. And, it’s available via fwupd if you run Fedora (possibly also available on Ubuntu). [root@benji ~]# fwupdmgr update • Thunderbolt Controller has the latest available firmware version Upgrade available for Embedded Controller from 0.1.20 to 0.1.21 20KHCTO1WW must remain plugged into a power source for the duration of the update to avoid damage....

August 13, 2020 · 1 min · 140 words · kenno

BIOS Firmware for ThinkPad P1 Gen1 1.31

It seems like Lenovo releases a new BIOS firmeware every month for its ThinkPad, at least for the ThinkPad P1 Gen1. On July 21, the BIOS firmware version 1.31 was released. CHANGES IN THIS RELEASE Version 1.31 [Important updates] - Address CVE-2020-0548, (https://cve.mitre.org//cgi-bin//cvename.cgi?name=CVE-2020-0548) - Address CVE-2020-0549, (https://cve.mitre.org//cgi-bin//cvename.cgi?name=CVE-2020-0549) - Address CVE-2020-0543, (https://cve.mitre.org//cgi-bin//cvename.cgi?name=CVE-2020-0543) [New functions or enhancements] - Updated the CPU microcode. [Problem fixes] - Fixed an issue where Force PXE boot by Intel AMT did not work....

July 27, 2020 · 2 min · 300 words · kenno

Dell Latitude 7400 System BIOS 1.9.1

Update BIOS firmware version 1.9.1 is available for Dell Latitude 7400. This firmware was released on 30 June 2020. It is marked Urgent and contains the following fixes and enhancements: Fixes: Fixed the issue where the system cannot detect the Intel Software Guard Extensions (SGX) device when SGX is enabled. Firmware updates to address security advisory INTEL-SA-00295 (CVE-2020-0531, CVE-2020-0532, CVE-2020-0533, CVE-2020-0535, CVE-2020-0536, CVE-2020-0537, CVE-2020-0538, CVE-2020-0539, CVE-2020-0540, CVE-2020-0545, CVE-2020-0594, CVE-2020-0595, CVE-2020-0596, and CVE-2020-8674)....

July 2, 2020 · 2 min · 314 words · kenno

Installing USBGuard on Gentoo

Let’s find out the name of the package using the awesome eix command, and install that package. ~ # eix usbguard * sys-apps/usbguard Available versions: ~0.7.6-r1 ~0.7.8 {bash-completion dbus ldap policykit static-libs systemd} Homepage: https://github.com/USBGuard/usbguard Description: Daemon protecting your computer against BadUSB ~ # emerge --ask sys-apps/usbguard These are the packages that would be merged, in order: Calculating dependencies... done! !!! All ebuilds that could satisfy "sys-apps/usbguard" have been masked. !...

June 29, 2020 · 3 min · 573 words · kenno