Вы находитесь на странице: 1из 3

FULL INSTALLATION GUIDE OPENBTS

Proceed all the steps in line. Do not miss any step.

UBUNTU INSTALLATION
1. Install Ubuntu 12.04.3 LTS x64 bit.
2. Make three partitions
_boot (ext 4)1gb
swap area 5gb
Main partition (more than 10gb) ext4
3. After installation of Ubuntu, Change the repositories server to main server.

OPENBTS INSTALLATION
4.
5.
6.
7.

Open terminal and type sudo apt-get update


Then, install synaptic packet manager from Ubuntu software center.
Install asterisk by searching asterisk into the search bar of synaptic manager and then installing
For the configuration of asterisk after installation a GUI appears which ask you to enter the ITUT telephone code. Enter 92 in the bar.(92 represents Pakistan telephony code)
8. Install main prerequisite libraries for installation of openbts by typing the command given in box.
sudo apt-get install autoconf libtool libosip2-dev libortp-dev libusb-1.0-0-dev g++ sqlite3
libsqlite3-dev erlang libreadline6-dev libncurses5-dev
9. After installation of these packages, install subversion by typing the following command.
sudo apt-get install subversion
10. Now close all terminals and open a new terminal and type the following command for creation
of new folder in home directory
mkdir OPENBTS
11. Then type cd OPENBTS (cd means the terminal level go inside that folder)
12. Now type svn co http://wush.net/svn/range/software/public (This command fetch the 2.8
version of openbts from the website. In the whole procedure, internet is must).
13. Now open the link given below, download driver (i.e compatible with x64 version OS) and extract
it through de-packaging command while first going to the folder where file has been
http://files.ettus.com/binaries/uhd_stable/releases/uhd_003.005.004-release/
downloaded.
Example: Let suppose the file is downloaded in download folder, so you have to type on terminal
cd Download >sudo dpkg -i uhd_003.005.004-release_Ubuntu-12.04-x86_64.deb

FULL INSTALLATION GUIDE OPENBTS


14. Now add two more repositories for adding a new library that will be required for the working of
UHD driver. These repositories are :
1. deb http://ppa.launchpad.net/riccardo-kde/boost-ppa/ubuntu precise main
2. deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu precise main

15. Now type and install the major library


sudo apt-get install libboost-all-dev

16. For the configuration of openbts , do the following steps. Do keep in mind that when I write
Openbts home or smqueue home , it means openbts/trunk folder.
17. For installation of liba53,
cd OpenBTS/public/a53/trunk
sudo make install
18. Enable UHD support by typing the following commands
cd openbts/trunk
autoreconf i
./configure with-uhd
make
19. Create a symbolic link to build the transceiver52M executable
From OpenBTS ROOT
cd apps
ln -s ../Transceiver52M/transceiver .
20. Configure OpenBTS database
(from the OpenBTS directory)
sudo mkdir /etc/OpenBTS
sudo sqlite3 -init ./apps/OpenBTS.example.sql /etc/OpenBTS/OpenBTS.db ".quit"
Test this by running:
sqlite3 /etc/OpenBTS/OpenBTS.db .dump
If you see a lot of configuration variables, the DB has been installed correctly.

FULL INSTALLATION GUIDE OPENBTS


21. Configure Subscriber Registry and smqueue
(create database)
sudo mkdir -p /var/lib/asterisk/sqlite3dir
(from svn root)
cd subscriberRegistry/trunk
make
(from subscriberRegistry root)
sudo sqlite3 -init subscriberRegistry.example.sql /etc/OpenBTS/sipauthserve.db
".quit"
From smqueue root (meaning smqueue/trunk)
autoreconf -i
./configure
make
(from the smqueue directory)
sudo sqlite3 -init smqueue/smqueue.example.sql /etc/OpenBTS/smqueue.db
".quit
22. Set GIGABIT Ethernet Card IP : 192.168.10.1 and subnet mask 255.255.255.0
23. Now run all serves by typing commands in different terminals.
1.

sudo OPENBTS/public/openbts/trunk/apps
sudo ./OpenBTS (1st Terminal)
sudo ./OpenBTSCLI (2nd terminal)

2.

sudo OPENBTS/public/subscriberRegistry/trunk
sudo ./sipauthserve (3rd terminal)

3.

sudo OPENBTS/public/smqueue/trunk/smqueue
sudo ./smqueue (4th Terminal)

4.

sudo asterisk vvvvr (5th terminal)

24. If all terminals respond correct, then you are good to go.
Note: Experience on Ubuntu is required to done all the installation correctly.

Вам также может понравиться