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

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

PySpark takeOrdered example

Sort by keys (ascending): Sort by keys (descending): Sort by values (ascending): Sort by values (descending): Credit: http://stackoverflow.com/questions/30787635/takeordered-descending-pyspark

June 24, 2015 · 1 min · 18 words · kenno