Fix: Fail running Firefox on FreeBSD without D-Bus running

This weekend I replaced Kubuntu 16.04 with FreeBSD 12 on an old HP laptop. I came across with lots of problems, but mainly because I wanted to have some experiences with UEFI and GPT. Anyway, currently the laptop is running FreeBSD 12-current with i3 as the windows manager. After Firefox was installed, I ran it from the menu (rofi) and nothing appeared. So I ran it from a terminal instead. Here was the output:...

February 11, 2018 · 1 min · 134 words · kenno

FreeBSD Recover GTP Table

Recently one of my servers that runs FreeBSD 11.1 keeps hanging on boot. Usually, the 2nd hard reboot will fix it. The root file system on this server is using ZFS and the ZFS pool report it as healthy. So I’ve been reluctant to do anything about it. Until tonight, when I accidentally list the partition of that drive (ada4): Ahh.. [CORRUPT] partition table it seems. I think the reason the server can still boot because GPT keeps the partition tables in two places (yes, one of the more reason to use GPT over MBR)....

February 3, 2018 · 1 min · 127 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 unban IP from PF firewall

This post is probably more relevant to my use case of PF firewall running on FreeBSD 11.1, and I need to remind myself how to unblock an IP from the block list. Here’s a snippet of what’s in /etc/pf.conf: table persist # Don't send rejections. Just drop. set block-policy drop # Exempt the loopback interface to prevent services utilizing the # local loop from being blocked accidentally. set skip on lo0 # all incoming traffic on external interface is normalized and fragmented # packets are reassembled....

November 17, 2017 · 2 min · 269 words · kenno

Changing a User’s Password on FreeBSD

Before getting into how to change a user’s password on FreeBSD, let’s have a quick revision on how that can be done on a Linux system. As a user we can change the password by typing: Or with a root account, we can change/set the password for another user: How about a FreeBSD? It should be the same way as how it’s done on Linux right? Right? Well, not quite....

January 10, 2017 · 1 min · 114 words · kenno