Installing Android Studio, Genymotion, and Burp on Ubuntu

Updating Ubuntu (Optional)

Execute these commands in a Terminal:
sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

Preventing Screen Lockout (Optional)

By default, Ubuntu will turn the screen off after 5 minutes of inactivity, which is pointless for desktop machines. To fix that, click the gear-shaped icon on the left side of the screen, in the Launcher bar.

A "System Settings" window opens. Click "Brightness & Lock".

Adjust "Turn screen off when inactive for" to Never.

Adjust "Lock" to OFF.

Clear the "Require my password when waking from suspend" box.

Locking Terminal to the Launcher Bar

Click the top left icon, which is the Ubuntu logo, a purple square with a white circle inside it. In the search bar, type terminal. Click Terminal.

Once a Terminal window opens, right-click its icon on the Launcher bar and click "Lock to Launcher".

Troubleshooting

If you are unable to launch a Terminal window, this is a known bug in Ubuntu 15.04.

To fix it, search for "xterm" and run it. In xterm, execute these commands:

sudo update-locale LANG=C.UTF-8

sudo reboot

Installing Android Studio

In a Terminal, execute these commands:
sudo apt-get update

sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6 -y
In the Terminal, execute this command:
sudo apt-get install lib32bz2-1.0
If it works, proceed to the next commands below. If it fails, do the Troubleshooting steps in the box below.

Troubleshooting

The lib32bz2-1.0 library is not available in the repositories for Ubuntu 15.04 or 15.10, so you need to execute these two commands to get it:
wget http://launchpadlibrarian.net/187844602/lib32bz2-1.0_1.0.6-5ubuntu5_amd64.deb

sudo dpkg -i ./lib32bz2-1.0_1.0.6-5ubuntu5_amd64.deb
In the Terminal, execute these commands:
sudo add-apt-repository ppa:paolorotolo/android-studio

sudo apt-get update
Press Enter to continue.

In a Terminal, execute these commands:

sudo apt-get install android-studio -y

cd /opt/android-studio/bin

./studio.sh
Click OK.

If a yellow message appears saying "Your system is using the iBus daemon...", click outside the yellow box to make it go away.

Click Next.

Click Next.

Click Next.

Accept the license and click Finish.

Wait while it is "Downloading Components".

Troubleshooting

If you see a "The following sdk component was not installed: tools" message, click Retry.

Click Finish.

Lock Android Studio to the Launcher bar.

After Android Studio is installed, create a new project with the default settings and let it complete its initial run tasks, which might take about 10 minutes. A little progress bar in the bottom right will show tasks, such as "Indexing".

When Android Studio is all set up, close it.

Installing VirtualBox

In a Terminal, execute this command:
sudo apt-get install virtualbox -y

Installing Genymotion

In Firefox, go to

https://www.genymotion.com/#!/auth/signin

Troubleshooting

If Firefox cannot connect to the Internet, execute this command:
sudo service network-manager restart
Create an account and download Genymotion, the free 64-bit Ubuntu version. Don't open it with Archive Manager, just save it to the default location (Downloads).

In a Terminal, execute these commands:

cd ~/Downloads

chmod +x genymotion-2.5.0_x64.bin

sudo ./genymotion-2.5.0_x64.bin
Accept the default directory.

After the installer finishes, execute this command to start Genymotion:

./genymotion/genymotion
In the "Usage notice" box, click Accept.

In the "Add a first virtual device" box, click Yes.

Click "Sign in". Enter your credentials.

Click this phone: "Custom Phone - 4.3 - API 18 768x1280" and click Next.

Click Next.

When the download finishes, click Finish.

In the main Genymotion window, click Settings.

On the ADB tab, check the "Use custom Android SDK tools" box. Enter this SDK path:

/home/student/Android/Sdk
Click OK.

Installing Burp

In a Browser, go to

http://portswigger.net/burp/downloadfree.html

In the "opening burpsuite_free_v1.6.01.jar" box, accept the default selection of "Save File" and click OK. The file downloads into the Downloads folder.

In a Terminal, execute these commands:

cd

cd Downloads

sudo mkdir /opt/burp

sudo mv burpsuite_free_v1.6.01.jar /opt/burp

cd /opt/burp

sudo touch burp

sudo chmod 777 burp

sudo echo "java -jar burpsuite_free_v1.6.01.jar" > burp

./burp
Burp opens. Accept the agreement.

When Burp opens, lock the Burp button to the launcher.

Troubleshooting

If the pictures on the icons change to incorrect ones as you launch new programs, this is also a known bug in the Unity desktop.

To work around it, try these actions:

  • Remove icons from the Launcher, re-launch the software, and pin the icons to the Launcher again.
  • Restart Ubuntu
  • Open a program from the File Manager instead of the command line, to get a Launcher button that works

Sources

How to Install Android Studio on Ubuntu Version 14.04

Install Genymotion Android Emulator in Ubuntu 14.04

Howto install and use the Burp Suite as HTTPS Proxy on Ubuntu 14.04


Last updated: 8-2-15