[Samsung Galaxy Grand Quattro] Arinio:
How To Install, Initialize and Sync Repo on Ubuntu 13.10

How To Install, Initialize and Sync Repo on Ubuntu 13.10

Hardware Needed : Atleat Dual Core 2.8 GHz. Processor, 4GB RAM (8GB recommended).

Software Needed For Virtualisation : VMware Workstation 10.0.1 Build 1379776

OS Needed : Ubuntu 13.10/13.04 x64 (64 bit recommended)

Virtual Machine Requirement : Atleast 3 GB RAM and 40 GB Hard Disk Space

Other Requirement : Atleast 1 Mbps Shared Internet Connection.

A. INSTALL REPO PART

Install needed libs (Ubuntu 13.10) [Nearly 161 MB]

sudo apt-get install git-core flex bison gperf build-essential curl zlib1g-dev zlib1g-dev:i386 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev lib32readline6 libreadline-dev libbz2-dev libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev

Create Directories

$ mkdir -p ~/bin && mkdir -p ~/android/system

Install Repo

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

Make Repo Executable

$ chmod a+x ~/bin/repo

Add "~/bin" to PATH of Execution

Start By Typing

gedit ~/.bashrc

Add The Below Line

export PATH=${PATH}:~/bin

B. CREATING AN ACCOUNT AT https://github.com

Go to github.com and register yourself. [If you are already a registered user then you do not have to register again]

In terminal type:

git config --global user.name "Your Name Here"

git config --global user.email "your_email@youremail.com"

[NOTE: Use the e-mail used in the website account creation]

Create your unique SSH public key

ssh-keygen -t rsa -C "your_email@youremail.com"

You can create a passphrase or omit.

Now press enter to save the ssh public keys.

Now two keys will be saved in/home/.ssh folder. (Hidden folder)

Now go to ~/.ssh folder and copy your id_rsa.pub content into account administration on github.com (double click id_rsa.pub, copy the key, login to github, go to account setting, click the SSH link and peste there).

Note: If this is the second time you are generating the ssh pubic key then after the generation copy it and visit Github. After clicking the ssh key link you will find a button "Add SSH Key". Click this and paste your new ssh key below the previous one.

Now check whether everything is ok by typing

ssh -T git@github.com

In the prompt type "yes" and you are done!

C. INITIALIZE REPO PART

$ cd ~/android/system/

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

(instead of jellybean, depending on your built you may use gingerbread or ics)

D. SYNCING REPO PART

$ repo sync -j16

[This process will really take time depending on your bandwidth as this will download +16GB]

You can download all at a time or part by part. For downloading part by part just close the download at any time and safely logoff/shutdown your Ubuntu. Next time just cd to ~/android/system and type repo sync -j16. Just like any Window based download manager your download will begin from the point you closed in the last session.

You are done!