Make Github code viewer more pleasant on Firefox on FreeBSD

Ever since I have FreeBSD 12 installed on a spare laptop, I notice that this is the most frequently used portable machine at home. (Of course, I still use my main desktop, which runs Fedoda 27, for everything.) I think one of the main reasons is that I like the experiences when I started using Linux years ago – not everything works out of the box, and sometimes I’m forced to learn and understand better about an issue before it can be fixed. ...

April 22, 2018 · 2 min · 399 words · kenno

Ansible 2.5.0 { "changed": false, "cmd": "None -s system-product-name", "msg": "[Errno 2] No such file or directory

I just updated Ansible to version 2.5.0 tonight, and I came across this issue when I tried to run a playbook for an Ubuntu 16.04 machine: PLAY [Ansible Playbook for configuring odroid.***.com] *************************************************************************************** TASK [Gathering Facts] ***************************************************************************************************************************** fatal: [odroid.***.com]: FAILED! => {"changed": false, "cmd": "None -s system-product-name", "msg": "[Errno 2] No such file or directory: 'None'", "rc": 2} According to the issue #37911, the remote system doesn’t have the dmidecode package installed. This is true in my case, and it can be verified as the following: ...

March 31, 2018 · 1 min · 150 words · kenno

Automount External Drive on OS X

At work, we want to backup an external disk that’s connected to the Mac machine using rsnapshot. In order to do that, the external drive needs to be mounted, and this happens when a user logs in to the Mac. The problem is that when nobody logs in, the external drive is not mounted and rsnapshot will fail. The fix should be easy if there is away to mount the external drive without a user logs in. It turns out that on OS X (tested on High Sierra) we can set a flag to have the external drives get mounted when the Mac boots up. ...

March 22, 2018 · 1 min · 162 words · kenno

How to change FreeBSD Firefox user agent

This laptop runs FreeBSD 12.0 current. The version of the installed Firefox is 59, which is pretty new isn’t it? Well, that’s not new or good enough to browse outlook.office365.com email. What happened is that, the Outlook web based email would just automatically switch to class Outlook web access. This problem is not unique to Outlook email, even some work related websites refuse to load correctly on Firefox running FreeBSD. ...

March 13, 2018 · 1 min · 188 words · kenno

How to extend ZFS partition

I have a FreeBSD server which used to run of a smaller SSD drive. When replaced with a larger capacity SSD by using dd command to clone the disk, there is free space allocated. I want to extend the existing zroot pool to use this space. The following describes how I achieve this with the help of a forum post. Let’s list some information about the zroot pool: root@nas:~ # zfs list zroot NAME USED AVAIL REFER MOUNTPOINT zroot 4.88G 50.8G 144K none List the partition scheme of the drive I’d like to extend my zroot zpool with: ...

March 11, 2018 · 2 min · 302 words · kenno