[Android] sylentprofet:
--- copied with permission from nathanpfry.com ---​

Builduntu is a custom branch of the Ubuntu operating system, based on my guide here for preparing Ubuntu 16.04 to compile Android ROMs from source. It includes everything you need to sync with the repository of your choice (Cyanogenmod, AOKP, AOSP, etc) and start building.

I am not responsible for any damage you may cause to your system/files while trying to install Builduntu. This has been tested and verified working by me, so if you break Windows or your system won't boot, it's your fault.

This thread is not the place to ask how to install Linux or Dual Boot!!! These topics are well documented elsewhere and can be easily found in a few seconds on Google.

Thanks to Canonical, Google and me.

Features:

- Xubuntu 16.04 LTS base system

- Installed all necessary packages for compiling (list available in the guide link above)

- Unnecessary junk removed (media players, games etc.)

All you have to do is download the source!

The only requirement is that your host machine supports a 64 bit OS.

32 bit systems will not work!

Instructions:

1. Use your favorite image burning software to write the builduntu ISO to a blank DVD. Will not fit on a CD

2. Boot the disc. When the graphical installer starts, click "Install Xubuntu"

3. Follow the on-screen instructions to select language, username, etc. * Note * When setting up partitions, I recommend doing it yourself if you know how. If not, that's fine, let Ubuntu decide for you.

4. When the installation finishes, reboot and eject the installation media.

5. Sync the Android source locally:

~ A program called "repo" lets you communicate with git repositories and download source code. The following command will install it:

mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

~ Use nano to edit ~/.bashrc

sudo nano ~/.bashrc

~ At the very bottom (use the Page Down key) paste this code to a new (empty) line:

export PATH=~/bin:$PATH

~ Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:

source ~/.bashrc

~ In the terminal, navigate to where you would like to download the Android source code. The command below will make it in your home folder, but if you have limited space you may want to create it somewhere else. Faster is better, i.e. SSD would be best, USB external is basically unusable.

mkdir ~/android
cd ~/android

~ Now to initialize the repo. Decide the flavor of Android to build, i.e. AOKP, CyanogenMod, AOSP etc.

For the purposes of the tutorial, here's the command for CyanogenMod 13:

repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
repo sync

When that is finished downloading, you're ready to start compiling ROMs!

Download Builduntu ISO:

Click here for mirrors!

Let me know how it works for you!

Feel free to buy me a Zico (donate) if you like my work. It would be greatly appreciated!

Please hit the "Thanks" button if this project helps you out!

​

[U][B]Changelog:[/B][/U]

v1.0 - First Release Mar 05 2014

v1.1 - Rebuilt from scratch the hard way

v1.2 - 4/20 Release - Update to 14.04 LTS Official

v2.0 - Update to 16.04 LTS with OpenJDK 8 for Android M builds