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

Installing Code Composer Studio 6 on Ubuntu 14.10 (64-bit)

As of today, Code Composer Studio (ccs) 6 is only available for 32-bit Linux platform. The good news is that it can be installed on a 64-bit version of Ubuntu and Fedora. In this blog post, I’m going to show a few issues I came across and how to fix them on Ubuntu 14.10 64-bit. Issue 1: After the installation, when I ran the ccs, it produces some warning and error messages then quit....

March 3, 2015 · 1 min · 190 words · kenno

Mounting qcow2 VM disk images

From time to time, after applying Windows updates on my Windows 7 kvm-based virtual machine, the machine won’t boot after restarting. In the past, I was lucky to be able to fix it. Last night, I could not say the same thing. Instead of stressing out losing my hair on how to get it working again, it’s decided to just restore the whole Windows image. First, I need to get some updated data from it though....

February 19, 2015 · 1 min · 106 words · kenno

Good permission for /tmp

I have been having issues getting X2Go running on a CentOS 6.5 box. It took me a while to figure out that the problem laid with the permission of /tmp directory. I’ll write how to solve the X2Go problem in another post. The recommended permission for /tmp is 1777. Notice that the forwarding ‘1’ is the sticky bit which only allows the owner of the file within /tmp (or the root user) to delete/rename the file....

February 16, 2015 · 1 min · 76 words · kenno

Updating Nexus 7 to Lollipop using sideload

This post is a note to remind myself how to manually flash Android firmware on a Nexus device. Step 1, download the firmware to your computer. I downloaded Android 5 from: http://www.droid-life.com/2014/11/13/download-android-5-0-ota-update-nexus-5-7-10-4/ Step 2, connect Nexus 7 to the computer. Mine runs Ubuntu 14.10, and I already downloaded Android SDK. Make sure that “Developer Options” is enabled. If it’s not, go to Settings -> About tablet. Then click on “Build Number” 7 times....

December 13, 2014 · 1 min · 127 words · kenno

Arduino improving nRF24L01+ reliability

In the past few weeks, I noticed that data transmitting from one of sensor nodes got dropped dramatically. This sensor node is an Arduino Micro using nRF24L01+ as the transmitter. Well, it’s supposed to send data to the base station once every 30 seconds; however the transmitting recurrence time exceeded 2 minutes. By default the transmitting rate is at 1 Mb/s, so I dropped it to 250 Kb/s to see if had any better improvement....

August 12, 2014 · 1 min · 205 words · kenno

Eclipse ADT Fatal Error on Linux

The Eclipse IDE that comes bundle with Android Development Tools (ADT) crashes when run on my laptop running Fedora. The error message which logged to console is: Fortunately, there’s a way to fix this problem by opening ‘eclipse.ini’ file, in my case: and added this line to the end of that file: Credit: Android – Solución Fatal Error del IDE Eclipse (ADT)

July 2, 2014 · 1 min · 62 words · kenno

Can't find the 'libpq-fe.h header

I need to install pg 0.17.1 gem on a server running CentOS. This is the error message I saw: # gem install pg -v '0.17.1' Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf....

February 3, 2014 · 1 min · 192 words · kenno

Permanently Disable Search Indexing In Windows 8

This post is mainly to remind me how to disable the search indexing. On the start screen type: services.msc. Once the service dialog windows opened, look for “Windows Search”. Right click on it, and select Properties. In the Startup type drop-down list, select Disabled. Full credit goes to this link: http://www.addictivetips.com/windows-tips/how-to-permanently-disable-search-indexing-in-windows-8/.

November 4, 2013 · 1 min · 51 words · kenno

Upgrade existing Perl 5.12 to Perl 5.18 on FreeBSD 9

Recently I’ve been trying to update the perl package on my FreeBSD box to the latest version 5.18 without any success. Here’s a snippet of the error message: So I turned to Google to see if other people experienced the same thing as me. According to an answer to a similar question about upgrading perl on serverfault.com, one should read document frequently. Let’s do it. I’m using Portmaster, and I’d like to upgrade from perl5....

October 30, 2013 · 1 min · 118 words · kenno