Setup ADB and Fastboot (Ubuntu)

For Ubuntu 14.04 and Greater

1: Open the Terminal application

2: Type the below command into the terminal:

sudo apt-get install android-tools-adb android-tools-fastboot

3: Then type:

sudo adb devices

(This will start the adb server and search for connected devices)

You should now see this in your terminal:

List of devices attached
171446424240f1d7 device (Your device number will differ from mine)