FreeBSD upgrade pool zroot

Today I successfully upgraded my FreeBSD home nas server from 10.3 to 11.0. This is the final release of version 11.0, though the official announcement is expected to be made on September 28. After the system upgrade, I need to also upgrade the 2 zpools (tank and zroot) so they can have new features. Upgrading tank was easy, all I needed to do was running this command: # zpool upgrade tank This system supports ZFS pool feature flags....

September 27, 2016 · 2 min · 288 words · kenno

FreeBSD git fatal: Unable to find remote helper for 'https'

I just found out that git is not fully functional on my FreeBSD (11) box. It was installed from port (using portmaster git). I can clone a repo using SSH key, but not with HTTPS. I’m not quite sure if it’s always been this way. Here is how to fix it: Reinstall curl # pkg remove curl # portmaster curl Reinstall git # pkg remove git # portmaster git Why did I install git from port?...

July 1, 2016 · 1 min · 94 words · kenno

PF firewall rule for DNS server

A reminder to readers, most of these blog posts are to remind me what I have done or fixed some problems. What works for me may not work for you. Most of the time, they aren’t even the best practice. Here’s a snippet of the PF firewall rule on my FreeBSD box which acts as a DNS server. Basically, the firewall opens up UDP port 53 to allow LAN access it....

July 9, 2015 · 1 min · 131 words · kenno

Remove a file/directory starting with dash/hyphen

I just noticed that in the /root directory, there exists a directory with its name starting with a dash: -p in my FreeBSD box. As much as I wanted to get rid of it, I was curious to find out what’s inside that directory. That didn’t work. After a short while of trying many things, I figured out 2 ways to do it. Another way (1) is to add ‘./’ in front of it:...

July 7, 2015 · 1 min · 148 words · kenno

ISC Dhcpd Duplicate UID Lease

Someone asked this question in one of his blog posts: Yes, I’m seeing something like that now in the my dhdcp logs. Here is the actual message: I think I know why this happened. Basically, the machine with MAC address of ’08:00:27:6e:61:b8′ used to have grab an IP address from the pool. Then later on, I have created a reservation for it. On Centos 7, the lease file is located at: /var/lib/dhcpd/dhcpd....

June 25, 2015 · 1 min · 98 words · kenno

Fedora 20 Installing KDE

From the command line: Optionally, if you want to run KDM instead of GDM: Note: This guide should work on Fedora 19 as well; but I haven’t tested it. Source: http://marcofalchi.blogspot.com.au/2013/10/fedora-1920-install-kde-kdm-swith-from.html

January 2, 2014 · 1 min · 31 words · kenno

How to extract .xz file

Today is the first time I ever saw a compressed file in *.xz format. According to this page TIP: extract .xz format, we can decompress it by running the following command: Just make sure you have “xz-utils” package, on Debian system, or something equivalent on other distros installed.

December 29, 2013 · 1 min · 48 words · kenno

Kill all processes of a user

The following command will kill all processes belong to a single user on Linux. pkill -u username Credit: Linux – Kill all processes for a user

May 9, 2011 · 1 min · 26 words · kenno

Banshee crashes: The database disk image is malformed

Banshee just crashed on me with the following error message: <br /> [Info 20:44:59.949] Running Banshee 1.6.1: [Ubuntu 10.04 LTS (linux-gnu, x86_64) @ 2010-06-18 18:47:49 UTC]<br /> [Info 20:45:01.043] All services are started 0.949921<br /> Exception has been thrown by the target of an invocation.<br /> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Mono.Data.Sqlite.SqliteException: <strong>The database disk image is malformed</strong><br /> database disk image is malformed<br /> at Mono....

September 28, 2010 · 2 min · 223 words · kenno

Amarok 2.3.0 and PulseAudio Problem

Ever since I upgraded my Ubuntu desktop from 9.04 to 10.4, I have been having problems with Amarok dropping sound randomly. For example, if Amarok is playing the music and another program requires to use sound, Amarok will become silence. One solution to restore sound in Amarok is to kill pulseaudio and restart Amarok. It works, but very annoying. Fortunately, installing libxine1-gnome and configure Amarok to use Esound (ESD) instead of PulseAudio fixed the problem....

May 17, 2010 · 1 min · 81 words · kenno