Monthly Archives: October 2013

How to run the android application – Installed Android in VirtualBox (Ubuntu 12.04)

I know most software developers having this problem “What is this problem ?” : when you going to run the android application on the emulator which is bind with your IDE(Netbeans, Eclipse) it will take two three minutes to load.

Is there any solution for this? Yes it is, lets look at the solution step by step.

1. I’m using Netbeans as my IDE and I assume that you all set up the android plugin on Netbeans and point the Android SDK in the android section.
ex/ Now you can create the android application with your netbeans IDE.
2. You have to set up the VirtualBox on Ubuntu and install the Android OS on top of that.
you can easily do this step by following this blog post

2. Then you have to point the sdk/tools and sdk/platform-tools

Open bash file

sudo gedit ~/.bashrc

Insert the following lines in bottom of the file then save and close.

# Android tools
export PATH=${PATH}:Your_Android_SDK_Path/tools
export PATH=${PATH}:Your_Android_SDK_Path/platform-tools

to source your bash file follow this command.

source ~/.bashrc

3. Now try the following command on your terminal. If there is any connected devices you can see now.

adb devices

4. Now you have setup the adb command perfectly so go to Virtual box setting and see the following network settings are there in your android VM.

5. Start your android VM and Press Alt + F1 to bring up the console in the emulator (IE. VirtualBox window). (Alt + F7 To bring back the Android GUI) and type the “netcfg” command to see the IPs



Press Alt + F1
Screenshot from 2013-10-07 18:31:13

6. Now you know the emulators IP address now you need to go to terminal in your Ubuntu machine and connect the device as follows.

 adb connect


If it is unable to connect, check your virtual machine’s network settings. Make sure it’s the correct adapter. If that doesn’t fix it refer to the following link:

7. Then go to netbeans and run your android project then it will ask the select the emulator to run so now you can see your VM is there.

Now select the VM emulator and run

1 Comment

Posted by on October 7, 2013 in android, Android App


Tags: , ,

Install LAMP(Apache, Mysql, php) and PhpMyAdmin on Ubuntu 12.04

Most people doing software development on linux and they need to install the LAMP on there machines so these are the steps to achieve above task.

1. First you have to install the “tasksel” on Ubuntu. so go to terminal and follow the command.

sudo apt-get install tasksel

2. Then run the tasksel.

sudo tasksel

3. Select the LAMP server and Install.
4. Now you need to verify the php whether its working properly. so you can open the following file on terminal

sudo vi /var/www/info.php

Then past the following command on it and save


5. Now restart the server

 sudo /etc/init.d/apache2 restart

6. Now go to browser and visit the http://localhost/info.php page

7. Now you have completely setup the LAMP server but you don’t have nice management console to access the MySql Database. So that is why we need to install phpMyAdmin console.

8. Follow the steps to install phpMyAdmin

 sudo apt-get install phpmyadmin



9. Once the setup is completed you can go to the management console


10. Don’t worry if you got Page Not found so then you have to do the extra step to set up phpmyadmin under Apache manually.

Open the file

 sudo gedit /etc/apache2/apache2.conf

Copy past the following line in the bottom of the apache2.conf file

 Include /etc/phpmyadmin/apache.conf

Now restart the server as follows and go to management console

sudo /etc/init.d/apache2 restart

Posted by on October 7, 2013 in mysql, php


Tags: , , ,

%d bloggers like this: