Copy RaspBSD image to micro SD card

The RaspBSD image for Raspberry Pi can be found at http://raspbsd.org/raspberrypi.html. After it’s been downloaded, we need to copy it to a microSD card. Before we can do that, we need to find out the device name represents the microSD card. One way to find out is to plug the card in, and check the newest messages of dmesg. $ dmesg ... [282430.689656] mmc0: new SDHC card at address aaaa [282430....

December 2, 2015 · 1 min · 165 words · kenno

ERROR: could not insert ‘nvidia_352’: Unknown symbol in module, or unknown parameter (see dmesg)

This is my third time having problem installing Nvidia drivers on Ubuntu (14.04). What’s worse is that I could not remember how I fixed them last time. Hope this blog post will prevent me from pulling my hair out for the 4th time. So, I installed Nvidia driver as usual: After it’s finished, I tried to load the module: Well, it turned out that I need to also install another linux-image package: linux-image-extra-3....

December 1, 2015 · 1 min · 105 words · kenno

How to get IP of guest OS in VirtualBox

After upgrading my VM running Fedora 23 beta to the release version, Gnome Desktop Manager (GDM) no longer started again. This is the same issue with newer version of xorg-x11-*, and it’s not yet supported by VirtualBox 5.0. I previously posted a quick fix by downgrading xorg-x11-* packages. To do that, I need to ssh into the VM. Here’s how we can find the IP address of running VMs. Let’s list the VMs available:...

November 11, 2015 · 1 min · 117 words · kenno

Changing MongoDB storage engine from Mmapv1 to WiredTiger

Changing the storage engine for a standalone MongoDB server from Mmapv1 to WiredTiger is relatively painless. Here’s how I did it. Backup the database Stop monbodb service Update mongodb.conf Here’s my /etc/mongodb.conf file: Start monbodb service Restore the database from backup That’s it. To check what storage engine you’re using with your MongoDB, connect to the mongodb with mongo shell and run:

November 3, 2015 · 1 min · 62 words · kenno

GDM Doesn’t Start on Fedora 23 Beta and VirtualBox

I just finished upgrading Fedora 22 to Fedora 23 Beta and upon rebooting, gdm no longer started. I tried to reinstall the VirtualBox Guest Additions; unfortunately it still didn’t fix. To cut the story short, someone has given a working tip at this forum. The solution is to downgrade xorg-x11-server-Xorg package. After rebooting, I was able to login again. Credit: http://forums.fedoraforum.org/showthread.php?t=306857

October 27, 2015 · 1 min · 61 words · kenno

Kinetis Design Studio crashes on Kubuntu 14.04

On Kubuntu 14.04, Kinetis Design Studio (KDS) could be started, but when I tried to create a new project, it’d crash with the following message displayed in the terminal: KDS is a Eclipse-based IDE. So I suspect the issue is related to Eclipse IDE itself. (I can’t confirm this as I’m not running the Eclipse IDE on this machine. I know I could have just downloaded and test it; but I don’t have time....

August 3, 2015 · 2 min · 263 words · kenno

Updating Kinetis Design Studio on Linux

For Linux users who want to update Kinetis Design Studio (DKS), if you launch KDS as a non-privileged user, you’d have to relaunch KDS with sudo for update to go ahead. Then to update it, just click on Help -> Check for Updates from the menu.

July 28, 2015 · 1 min · 46 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