Skip to content

Instantly share code, notes, and snippets.

@darkspadez
Created December 5, 2011 22:20
Show Gist options
  • Save darkspadez/1435656 to your computer and use it in GitHub Desktop.
Save darkspadez/1435656 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Preemptively agree to the JDK license
echo "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true" | sudo debconf-set-selections
# Get required packages
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo aptitude update
sudo apt-get --yes install \
git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils sun-java6-jdk
ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
# Get repo
mkdir -p ~/bin
curl curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
# Let new path settings take effect
exec bash -l
# Get ready to repo sync
mkdir ~/android/system
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b ics
repo sync -j8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment