Ubuntu: cannot apply the stored configuration for monitors


If you are running Ubuntu 13.04 or 14.04, some times after system startup, you will find an error message:

ubuntu cannot apply the stored configuration for monitors

image

To get rid of this, simply remove .config/monitors.xml.

Open a terminal and run below commands:

cd .config/
rm monitors.xml

Reboot and everything should work fine.

Gradle: SDK location not found, the problem and solution


In a recent project, I created a Gradle project in windows, but when I load the project in Ubuntu and Mac OSX, an error “SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable”

image

I then followed the instruction, and in the ~/.bashrc file, I added the environment variable ANDROID_HOME

image

Continue reading “Gradle: SDK location not found, the problem and solution”

VirutalBox: VERR_PDM_MEDIA_LOCKED cannot mount guest additions iso


After installing VirtualBox in windows, and if you use Menu > Devices > Install Guest Additions, most probably you might encounter the below errors:

image

“Unable to mount the CD/DVD image
Could not mount the media/drive VBoxGuestAdditions.iso (VERR_PDM_MEDIA_LOCKED)”

A simple solution is to open a terminal in Ubuntu, and then type below command:

sudo apt-get install virtualbox-guest-additions-iso