OpenBTS: Build OpenBTS 4.0: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
No edit summary
Onnowpurbo (talk | contribs)
Line 30: Line 30:
download tool development terbaru
download tool development terbaru


cd /usr/local/src
  git clone https://github.com/RangeNetworks/dev.git
  git clone https://github.com/RangeNetworks/dev.git




==Download Source Code==


Components
cd /usr/local/src
cd dev
./clone.sh


This development scripts assume that you have SSH keys set up for GitHub. If you do not, please follow these instructions to set them up before proceeding.
==Build==


Now, to download all of the components simply run the clone.sh script.
Kita perlu memilih branch yang akan di compile menggunakan switchto.sh.


$ cd dev
  $ ./switchto.sh master
  $ ./clone.sh


Selecting a Branch or Tag
atau
 
$ ./switchto.sh 4.0


Before building, you should choose which branch or tag you'd like to compile using switchto.sh.
atau


$ ./switchto.sh master
(or)
$ ./switchto.sh 4.0
(or)
  $ ./switchto.sh v4.0.0
  $ ./switchto.sh v4.0.0


Building
atau


The build.sh script will automatically install any build dependencies (building them manually when required). After dependencies are taken care of, each component is compiled into an installable package.
$ ./switchto.sh 5.0
 
Lakukan


  $ ./build.sh
  $ ./build.sh
Line 90: Line 93:


placeholder
placeholder


==Referensi==
==Referensi==

Revision as of 06:27, 19 July 2014

Sumber: https://github.com/RangeNetworks/dev/wiki


Persiapan Environment

  • Siapkan Ubuntu Desktop / Server 32 bit 12.04.
    • username openbts
    • password openbts


Update Git

Pastikan menggunakan git versi terakhir

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

Download Tool

Check versi git, misalnya

git --version

hasilnya pastikan >1.8.2

git version 1.9.1

download tool development terbaru

cd /usr/local/src
git clone https://github.com/RangeNetworks/dev.git


Download Source Code

cd /usr/local/src
cd dev
./clone.sh

Build

Kita perlu memilih branch yang akan di compile menggunakan switchto.sh.

$ ./switchto.sh master

atau

$ ./switchto.sh 4.0

atau

$ ./switchto.sh v4.0.0

atau

$ ./switchto.sh 5.0

Lakukan

$ ./build.sh

Compiled packages are now in a new directory named BUILD-sometimestamp. Installing

Use dpkg to install the fresh packages (this will complain about dependencies):

$ sudo dpkg -i BUILD-timestamp/*.deb

To have Aptitude resolve the dependencies, execute the following:

$ sudo apt-get -f install

When prompted about overwriting existing configuration files, use your own judgement. It is recommended to overwrite all files to make sure things work out of the box. However, overwriting /etc/network/interfaces will set your system to a static IP instead of whatever you had configured previously. Running

Each component has an Upstart service definition for Ubuntu. To start all the required services, execute the following:

$ sudo start sipauthserve
$ sudo start smqueue
$ sudo start openbts
$ sudo start asterisk

Conversely, to stop them:

$ sudo stop sipauthserve
$ sudo stop smqueue
$ sudo stop openbts
$ sudo stop asterisk

Exploring

placeholder

Referensi