OS: Android - Mirror Source: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
New page: Using a local mirror When using several clients, especially in situations where bandwidth is scarce, it is better to create a local mirror of the entire server content, and to sync clien...
 
Onnowpurbo (talk | contribs)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
Using a local mirror
Untuk beberapa client sekaligus, sebaiknya kita menggunakan mirror. Asumsinya kita melalukan mirror pada /usr/local/aosp/mirror.
Lakukan sebagai user biasa


When using several clients, especially in situations where bandwidth is scarce, it is better to create a local mirror of the entire server content, and to sync clients from that mirror (which requires no network access). The download for a full mirror is smaller than the download of two clients, while containing more information.
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


These instructions assume that the mirror is created in /usr/local/aosp/mirror. The first step is to create and sync the mirror itself, which uses close to 13GB of network bandwidth and a similar amount of disk space. Notice the --mirror flag, which can only be specified when creating a new client:
Di sisi client, dapat melakukan sebagai userbiasa


  $ mkdir -p /usr/local/aosp/mirror
  mkdir -p ~/android-source
  $ cd /usr/local/aosp/mirror
  cd ~/android-source
  $ repo init -u https://android.googlesource.com/mirror/manifest --mirror
  repo init -u /usr/local/aosp/mirror/platform/manifest.git
  $ repo sync
  repo sync


Once the mirror is synced, new clients can be created from it. Note that it's important to specify an absolute path:
Untuk melakukan sync, lakukan secara berurut, dari sisi mirror dan dari sisi master.


  $ mkdir -p /usr/local/aosp/master
  cd /usr/local/aosp/mirror
$ cd /usr/local/aosp/master
  repo sync
$ repo init -u /usr/local/aosp/mirror/platform/manifest.git
  $ repo sync


Finally, to sync a client against the server, the mirror needs to be synced against the server, then the client against the mirror:
cd ~/android-source
repo sync


$ cd /usr/local/aosp/mirror
Mirror dapat dilakukan melalui NFS, SSH atau Git.
$ repo sync
Folder mirror dapat di share ke harddisk lain.
$ cd /usr/local/aosp/master
$ repo sync
 
It's possible to store the mirror on a LAN server and to access it over NFS, SSH or Git. It's also possible to store it on a removable drive and to pass that drive around between users or between machines.  




Line 30: Line 32:


* http://source.android.com/source/downloading.html
* http://source.android.com/source/downloading.html
* http://soupdawg.wordpress.com/
* http://wiki.cyanogenmod.org/w/Build_for_mako
==Pranala Menarik==
* [[Android]]
* [[Pemrogramman Android]]
* [[OS: Android - Mempersiapkan Development Environment]]
* [[OS: Android - Memeriksa Spesifikasi Handphone yang digunakan]]
* [[OS: Android - Membuat Mirror Source]]
* [[OS: Android - Download]]
* [[OS: Android - Membuat Folder untuk Bekerja]]
* [[OS: Android - Mirror Source]]
* [[OS: Android - Mirror Source AOKP]]
* [[OS: Android - Mirror Source CyanogenMod]]
* [[OS: Android - Build]]
* [[OS: Android - Build CyanogenMod]]
* [[OS: Android - Build AOSP]]

Latest revision as of 01:36, 3 September 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.


Referensi

Pranala Menarik