[Android Q&A, Help & Troubleshooting] Yeasis:
I just want to go straight to the point:

1. Run 64-Bits Ubuntu 12.04 either native or in a Virtual Machine

download the iso from here:

http://www.ubuntu.com/download/desktop/thank-you?distro=desktop&bits=64&release=lts

I run Ubuntu on VMware Workstation 9 but you can choose whatever you like, make sure to have Vt-d enabled in your bios setting when you use a virtual machine.

2. Install required stuff:

a) Go to the terminal (to go here open your dash home in the left upper corner and write down : Terminal) and copy-paste or write the following lines and install the software: DO THIS ONE BY ONE! (you have to fill in the password of the computer and when you are prompted with: Do you want to continue, simple type Y and hit enter)

sudo apt-get install openjdk-6-jdk

sudo apt-get install git-core

sudo apt-get install python

b) Now we are going to install the android sdk wich you can get from this link:

http://dl.google.com/android/android-sdk_r22.3-linux.tgz

other versions here:

http://developer.android.com/sdk/index.html

Extract the SDK and place it in your home directory.

Rename the SDK to android-sdk to make it easier to navigate to.

Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.

Add these lines at the bottom of the file:

# Android tools

export PATH=${PATH}:~/android-sdk/tools

export PATH=${PATH}:~/android-sdk/platform-tools

export PATH=${PATH}:~/bin

Find your .profile file and add this at the bottom of the file:

PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"

Now you have installed Android SDK, go to your terminal and type:

Android

Now you should install the following in here:

ALL TOOLS

ALL EXTRA's (some are unnessesary, but just install them all to be sure)

Android 4.1/4.2/4.3/4.4 (this depens on wich version you want to build, but i have them all)

c) Now we have to install some other packages:

Go to Installing required packages (Ubuntu 12.04) and use those lines:

http://source.android.com/source/initializing.html

if this doesnt work use the following:

sudo apt-get install libgl1-mesa-dri:i386

and try again!

3) now we have to configure USB:

type the following in the terminal:

gksudo gedit /etc/udev/rules.d/51-android.rules (or go here with the explorer)

inside of this blank text file paste:

#Acer

SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"

#ASUS

SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"

#Dell

SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"

#Foxconn

SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"

#Garmin-Asus

SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"

#Google

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"

#HTC

SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"

#Huawei

SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"

#K-Touch

SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"

#KT Tech

SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"

#Kyocera

SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"

#Lenevo

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

#LG

SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"

#Motorola

SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"

#NEC

SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"

#Nook

SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"

#Nvidia

SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"

#OTGV

SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"

#Pantech

SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"

#Philips

SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"

#PMC-Sierra

SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"

#Qualcomm

SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"

#SK Telesys

SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"

#Samsung

SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"

#Sharp

SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"

#Sony Ericsson

SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"

#Toshiba

SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"

#ZTE

SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"

Save the file and tyoe the following in the terminal:

sudo chmod a+r /etc/udev/rules.d/51-android.rules

IF YOU'R WORKING FOR OT-995 DO THE FOLLOWING:

Now follow the steps provided by bagyusz (i will make my own tutorail for this later):

BUT CHANGE

repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1

to

repo init -u http://github.com/CyanogenMod/android.git -b cm-10.1

https://bitbucket.org/bagyusz/android_device_alcatel_cocktail

OTHERWISE FOLLOW THE STEPS FROM 5 AT THE FOLLOWING LINK:

http://xdaforums.com/showthread.php?t=1762641

I DONT OWN ANY CREDITS, THIS IS JUST A REVAMPED VERSION OF http://xdaforums.com/showthread.php?t=1762641 FOR OT-995 ON UBUNTU 12.04 64-BITS!