Skip to main content

Add Android PATH to your ubuntu profile and make your life less shitty (Updated 15 March 2018)

Like the title say,  let us do it.

After you finish doing installation of the Android SDK, you probably don't want to open the terminal and keep on typing cd to find adb path before doing god know what.

Obviously I'm the latest generation of GNU/Linux user that cannot be bothered with learning vi or emacs, so I'm going to use nano instead.

DISCLAIMER: I've tried it on Ubuntu, Kali Linux and Debian, it works for me so far.

  1. Open your terminal, make sure it is in the home directory, click Ctrl + H and locate your .bashrc file.
  2. type sudo nano .bashrc, enter your password if you are not root (duh).
  3. scroll until the end of all those things that we don't understand.
  4. start typing the path of your Android SDK:
    export PATH="$PATH:/"your_path"Android/Sdk/tools/:/"your_path"/Android/Sdk/platform-tools/:/"your_path"/Android/Sdk/build-tools/26.0.2/"
  5. Save those things by clicking Ctrl + O.
  6. Exit your nano by clicking Ctrl + X.
  7. Now to enable the changes on your profile, simply type on your terminal:
    source .bashrc
  8. At this time hopefully you would be able to simply type adb on any path on your terminal (again hopefully).
The problem you shall encounter is probably the bad spelling like what I do, hence why I provide the path for you to copy.
Simply change "your_path" to the path inside your OS and insert in your  .bashrc

#########(UPDATE 15 MARCH 2018)#########
The steps now simplified!

# Add the directory containing executables in PATH so that they can be found
echo 'export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.bashrc
source ~/.bashrc



Popular posts from this blog

ARP for Dummy like Me!

ARP used to map IP address to MAC address on data link layer. It mainly used when Host is connected over Ethernet. In long explanation, This protocol used to locate address of a Host (Physical/Virtual) in network.  The address is searched or "resolved" by sending an "information" to a server (other host).  The server after received the information will then identify itself and respond back with the network information.  The responded information contain the required address.  This always happen over Ethernet. Ethernet address dependent to the hardware which is Network Interface card. So, during ARP request, it try to ask which IP associated with which MAC address. If you have used wireshark, maybe you can remember on Info section, there are always message saying "Who has $IP". For example:  Situation where ARP is used. Someone with IP X.X.X.X try ping $IP = Y.Y.Y.Y. We assume, the source PC did not have the IP information from the Targe

Fixing Installation Problem in Kali Linux 2018.2 for VirtualBox and VMware Workstation. (gcc 7.3.0)

Hello All. Previously I had migrated my testing machine into a new laptop. Well, it is a refurbished laptop, Dell E7240. After finish installing Kali, I proceed to install VMware player. Unfortunately it does not running and keep asking for location of gcc 7.3.0. After giving up, I tried installing VirtualBox. Surprisingly it also failed. Both keep asking for location of gcc 7.3.0. So the solution that I discover is by running "sudo apt install virtualbox-dkms". After reboot, I just try to run the VMware again, it now able to run. Note: The way I did is after installing the virtualbox-dkms, I uninstall both virtualbox and vmware, restart the OS (I use Kali 2018.2) and install vmware again. It works flawlessly. Good Luck and Cheers!

Your Ubuntu 18.04 cannot mount exFAT storage

Have you ever encounter such problem as per screenshot below? WORRY NOT! I GOT YOU! Steps to do: Open terminal. type " sudo apt install exfat-fuse exfat-utils " and press enter. You will see it will download the necessary package and install it per screenshot below:       Once finished, navigate back to the file manager and try open the storage back. Yo should be able to access it now! This blogpost is to save me from googling random keyword and can easily find it in 1 place aka my own wiki to sort my random shit out.