Difference between revisions of "OS: Android - Mirror Source"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Undo revision 38003 by Onnowpurbo (Talk)) |
Onnowpurbo (talk | contribs) (Undo revision 38004 by Onnowpurbo (Talk)) |
||
Line 12: | Line 12: | ||
Di sisi client, dapat melakukan sebagai userbiasa | Di sisi client, dapat melakukan sebagai userbiasa | ||
− | mkdir -p / | + | mkdir -p ~/android-source |
− | cd / | + | cd ~/android-source |
repo init -u /usr/local/aosp/mirror/platform/manifest.git | repo init -u /usr/local/aosp/mirror/platform/manifest.git | ||
repo sync | repo sync | ||
Line 21: | Line 21: | ||
$ cd /usr/local/aosp/mirror | $ cd /usr/local/aosp/mirror | ||
$ repo sync | $ repo sync | ||
− | $ cd / | + | |
+ | $ cd ~/android-source | ||
$ repo sync | $ repo sync | ||
Revision as of 17:11, 11 August 2013
Untuk beberapa client sekaligus, sebaiknya kita menggunakan mirror. Asumsinya kita melalukan mirror pada /usr/local/aosp/mirror. Lakukan sebagai user biasa
sudo mkdir -p /usr/local/aosp/mirror sudo mount --bind /media/onno/onnolibrary/repository/android-source/mirror/ /usr/local/aosp/mirror/ sudo chmod -Rf 777 /usr/local/aosp sudo chown -Rf nobody.nogroup /usr/local/aosp cd /usr/local/aosp/mirror repo init -u https://android.googlesource.com/mirror/manifest --mirror repo sync
Di sisi client, dapat melakukan sebagai userbiasa
mkdir -p ~/android-source cd ~/android-source repo init -u /usr/local/aosp/mirror/platform/manifest.git repo sync
Untuk melakukan sync, lakukan secara berurut, dari sisi mirror dan dari sisi master.
$ cd /usr/local/aosp/mirror $ repo sync
$ cd ~/android-source $ repo sync
Mirror dapat dilakukan melalui NFS, SSH atau Git. Folder mirror dapat di share ke harddisk lain.