Problems with Netbeans and OpenJDK

Published by burgerboydaddy on Wed, 08/28/2013 - 08:36


My Netbeans installation on Ubuntu development machine stopped working few days ago. It just freezes.
After some research I found that problem is with some incompatibility between Netbeans and the openjdk installed on my machine.

Solution or workaround to this problem is to uninstall openJDK and replace it with Oracle JDK.
Here are step-by-step instructions how to do this:

Another useful linux command - find files changed in last few days

Published by burgerboydaddy on Mon, 03/04/2013 - 12:48


From time to time I need to find or track files in folder and sub-folders changed in a last few days, and command bellow do job easy and fast.

    find . -type f -exec stat -c "%y %n" {} + | sort -r | head -15

Also I have it inside .bash_aliases :

    alias findrecent='find . -type f -exec stat -c "%y %n" {} + | sort -r | head -15'
Above command will search current and all sub-folders for all files, sort them and show only last 15 files (based on change date/time attribute).

Very handy little command.


Resize VirtualBox VM disk size

Published by burgerboydaddy on Sat, 02/16/2013 - 11:16


Uh, my development VM disk is full. During last update I received notice that it cannot be done because lack of space. I have 6GB disk only for Ubuntu (12.04) and it is full... Hm, previously I had idea that only Windows require so much disk space :-).

So how to re-size that disk; There are few steps involved in the process but can be done very fast.

How to use Ubuntu Server as web server on Windows 7 or Mac OS X via VirtualBox

Published by burgerboydaddy on Sat, 02/09/2013 - 10:49

Working with Drupal and trying to get as close as possible to the production environment has moved my development from Windows & Mac to Ubuntu. Recently I found that I spend some 70% of time using Ubuntu VM, and rest of the time on PC/Mac. First (long time ago) I used my own Virtual Machines, but after some time I found great Drupal project named Quickstart. Later, there was second one named DrupalPro

How to setup startup scripts in Ubuntu

Published by burgerboydaddy on Tue, 01/08/2013 - 14:48


For some projects I needed to run startup scripts everytime when I start my ubuntu server. Here is little how-to with addition how to run some processes using non-sudo username (normal user account).

After some searching I found out that there is a small command that allows the root to run a process as a different user.
So when I had put “sudo -u burgerboydaddy” in front of my command it worked flawlessly.

- use vim or an equivalent to write your script and make sure it starts with
- make your script executable by doing