How to Execute Shell Script on Logout

Sometimes I need to run a cleanup script automatically once I logout from a Linux or UNIX system. I normally use the script to cleanup my own temporary files.

VNC Screen Corruption in VirtualBox VM

A couple of months back, I created a virtual machine image from a physical machine running Windows 2000 Server. After some minor hiccups, I managed to run the image as a Guest OS on VirtualBox on another server. Everything was fine except for the VNC part.

How to Catch Ctrl-C in Shell Script

There are times when you do not want users to stop a running shell script abruptly by sending the Ctrl-C key combination. There is no way to prevent users from doing that, but there is a way to catch or trap Ctrl-C key combinations in a shell script.

How to Use Google AdSense Link Units on Responsive Websites

Google AdSense now supports responsive ads. In other words, different devices with different screen sizes will be served ads that best fit on their screen. But like it or not, this feature is still not available for link unit type of ads!

How to Search for Freely Downloadable Android APK Files

Android Apps are available for download legally via the Google Play Store, both the free and the paid versions. But if you are looking for a not-so-legal way to get a copy of the APK files, Google has the answer.

Bypass Android Pattern Security Lock

If you have an Android phone that is rooted and the USB Debugging option has been turned on, your phone can be unlocked in a matter of seconds with the ADB (Android Debug Bridge) utility.

Linux: Enable IP Forwarding

unix linux

If you would like to turn a Linux machine into a router or a VPN server you will need to enable the IP Forwarding (aka routing) functionality as a first step. This functionality requires you to have at least 2 Ethernet interfaces connected to different networks or subnets.