UPDATED 04/29/2016 – Builduntu v2 BETA based on Xubuntu 16.04 LTS available! See Downloads
If you prefer a ready-to-go Virtual Machine (ready for Windows, OSX, and Linux) check out BuilduntuVM here!
Builduntu is a custom branch of the Ubuntu operating system, based on my guide for preparing Ubuntu 14.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 loss you may incur on your system/files while trying to install Builduntu. This has been tested and verified working by me (and countless other people) 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 for Ubuntu, Google for Android and me for figuring this out.
– Xubuntu 14.04 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 machine supports a 64 bit OS. 32 bit systems will not work!
1. Use your favorite image burning software to write the newest 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 your repositories:
~ A program called “repo” lets you communicate with git servers and download source code. The next 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
~ At the very bottom (use the Page Down key) paste this code to a new (empty) line:
export PATH=~/bin:$PATH export USE_CCACHE=1
~ Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
~ 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
~ Set up git user.name and user.email:
git config --global user.name "your name" git config --global user.email "email@example.com"
~ 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 git://github.com/CyanogenMod/android.git -b cm-13.0repo sync
When that is finished downloading, you’re ready to start compiling ROMs!
builduntu v1.2 ISO
via BitTorrent – PLEASE HELP SEED!builduntuiso.torrent (797 downloads)
via MediaFirebuilduntuiso.mediafire (1022 downloads)
via Mega.co.nzbuilduntuiso.mega (923 downloads)
builduntu v2 BETA ISO
via BitTorrent – PLEASE HELP SEED!builduntu.v2.iso.torrent (311 downloads)
via Google Drivebuilduntu.v2.iso.drive (830 downloads)
Let me know how it works for you!
If you appreciate my hard work, feel free to buy me a coconut water (donate). It would be greatly appreciated!
Changelog: v1.0 - First Release Mar 05 2014 v1.1 - Rebuilt from scratch v1.2 - 4/20 release - Updated to 14.04 LTS Official v2.0 - Updated to 16.04 LTS with OpenJDK 8 for Android M