Linux Mint 13 on VirtualBox needs some tweaks to use USB mouse

Since I’m kind of disappointed with the lasted Ubuntu version (12.04), that just makes my 4 year-old laptop useless, I’m now considering alternatives.
The first one that popped up was Linux Mint.

I’ve tested the latest build Linux Mint 13 on VirtualBox and I’ve noticed that my USB mouse didn’t work there.
To fix this I had to execute this command:
sudo usermod -aG lp <MY_USERNAME>

and it fixed that issue.

I’m going to try it a bit, just to see if I’m ready to do the switch.

Use Fatsort to order MP3 files (Linux)

Fatsort ( is a very useful tool to order your MP3s so you can listen in your MP3 hardware player.

Fatsort is command line tool that allow you to order your files in a USB stick. It’s usage is very simple:

1) First get the device location by typing “sudo mount”. There you should find something like “/dev/sdb1″.

2) Unmount this device: “sudo eject /dev/sdb1″

3) Apply the fatsort to that unmounted device: “sudo fatsort /dev/sdb1″

And it’s done :)

Ubuntu 10.10 gnome-power-manager shutsdown bug

Actually I don’t know in which version this bug has started, but “gnome-power-manager” just indicates that my laptop battery is charging even though I unplug the AC power supply.

Since I upgraded to the new version, the problem is even worst, since now when I unplug the AC power supply  a message pops up saying that I have less than 1% battery power and Ubuntu just shuts down.

Actually if you have this same problem, you can go to “gconf-editor” and where it says “/apps/gnome-power-manager/actions/critical_battery”, set it to “nothing”

Screenshot-Configuration Editor - actionsThis actually doesn’t solve this bug, but at least you can use Ubuntu!

Revert modifications from a git project in Eclipse IDE

Something that I’ve missed when I switch from SVN to git was subeclipse:(

I’m using eGit, but it lacks support for doing a simple task like reverting modifications from a specific file.

eGit without reverting
eGit without reverting

Even though I’m getting use to those simple command line scripts a simple thing like reverting modifications from a specific file is kind of tedious, and this is something that I could handle in the IDE.

To simplify this procedure I’ve created a simple bash script (

# @author Daniel Botelho <>
# @date 2010-05-19
cd $workspace_loc/$project_name
#echo $git status

#$git status

echo $git checkout ${selected_resource_path:length}
$git checkout ${selected_resource_path:length}
echo “completed.”

Then I’ve created a new External Tool Configuration to call this simple script (Run>External Tools> External Tools Configurations…>)


Screenshot-External Tools ConfigurationsHere you should change your “Location” to the location where you have your “” script.

Ok, and it’s done! :)

Now I can choose the file that I want to revert and click on “Run revert modifications (git)” right from the eclipse IDE.


How to configure Pidgin 2.5.2 in Ubuntu 8.10 (intrepid ibex) to use Google Talk

Pidgin it’s a chat client that support multiple protocols like:

  • AIM
  • Google Talk
  • IRC
  • MSN
  • MySpaceIM
  • XMPP
  • and more…

To install it in Ubuntu just run in the console:

sudo apt-get install pidgin

The first time you open it, it asks you to add an account:

Pidgin add account
Pidgin add account

Then you can choose which protocol to use. Here I’ve choosed “Google Talk” protocol and put my login info:

Pidgin with Google Talk protocol
Pidgin with Google Talk protocol

And its done :)

Pidgin Buddy List
Pidgin Buddy List

Upgrade to kernel-2.6.27-11-generic on LG-500

Today I’ve upgraded my kernel to 2.6.27-11-generic, and some fixes were necessary to get my Ubuntu to work again.

I tried to open VirtualBox but I get this error:

VirtualBox error
VirtualBox error

Executing the command that they suggest worked like a sharm:

sudo /etc/init.d/vboxdrv setup

The other problem was due to wireless. Again I needed to recompile the madwifi so I could get it to work for the new kernel. I’ve Followed the post Re: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01) and it’s working again! :)

VirtualBox 2.1.2 in Ubuntu 8.10

VirtualBox is an application that allows you to have several virtual machines inside your operative system.

Unfortunately the VirtualBox version 2.1.2 still isn’t on Ubuntu repository, but if you go to Download VirtualBox for Linux Hosts there you find a version that will run on Ubuntu!

Installing and running is really straight forward, but I had a problem when I tried to start a virtual machine:

VirtualBox can’t operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).

To fix this I’ve just followed the indications in VirtualBox can’t operate in VMX root mode.

Here is VirtualBox 2.1.2 running Windows XP inside Ubuntu in Seamless mode