Difference between revisions of "OpenBTS: Ubuntu Install"

From OnnoWiki
Jump to navigation Jump to search
 
(59 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* [[GNURadio: Ubuntu Install| Compile dan Install GNURadio 3.3.0]]. Tanpa [[GNURadio]] terinstall maka [[OpenBTS]] tidak mungkin di instalasi.
 +
* [[Instalasi Astersik di Ubuntu]] tanpa Asterisk, tidak bisa melakukan authentikasi.
  
 +
Instalasi paket / library pendukung tambahan
  
    * Development Tools (need for compilation)
+
apt-get install libortp8 libortp-dev libosip2-4 libosip2-dev
          o g++
 
          o subversion
 
          o make
 
          o autoconf, automake, libtool
 
          o sdcc (from "universe"; 2.4 or newer)
 
          o guile (1.6 or newer)
 
          o ccache (not required, but recommended if you compile frequently)
 
  
    * Libraries (need for runtime and for compilation)
+
==Compile osip==
          o python-dev
 
          o FFTW 3.X (fftw3, fftw3-dev)
 
          o cppunit (libcppunit and libcppunit-dev)
 
          o Boost 1.35 (or later)
 
          o libusb and libusb-dev
 
          o wxWidgets (wx-common) and wxPython (python-wxgtk2.8)
 
          o python-numpy (via python-numpy-ext) (for SVN on or after 2007-May-28)
 
          o ALSA (alsa-base, libasound2 and libasound2-dev)
 
          o Qt (libqt3-mt-dev for versions earlier than 8.04; version 4 works for 8.04 and later)
 
          o SDL (libsdl-dev)
 
          o GSL GNU Scientific Library (libgsl0-dev >= 1.10 required for SVN trunk, not in binary repositories for 7.10 and earlier)
 
  
    * SWIG (1.3.31 or newer required)
+
'''LANGKAH INI SEBAIKNYA DI SKIP'''
          o Edgy or previous: requires installation from source
 
          o Feisty or newer: use the standard package install (swig)
 
  
    * QWT (optional) (5.0.0 or newer required)
+
Kadang kala untuk bisa mengcompile [[SMS]] queue tampaknya osip dari [[Ubuntu]] tidak bisa di gunakan kita harus compile dari scratch
          o Must be installed from source (as of 2008-01-15).
 
          o qt4 versions should be used for 8.04 and 8.10. DO! : sudo apt-get update and then upgrade for a proper qt4.
 
  
    * QWT Plot3d Lib
+
apt-get remove --purge libosip2-4 libosip2-dev
          o Must be installed for gr-qtgui to work. qt4 version preferred for Ubuntu 8.04 and 8.10
 
  
    * Polyphase Filter Bank examples
+
Download osip
          o for the examples in gnuradio-examples/python/pfb to work you need to install python-scipy, python-matplotlib, and python-tk
 
  
    * Other useful packages
+
http://ftp.gnu.org/gnu/osip/
          o doxygen (for creating documentation from source code)
+
http://ftp.gnu.org/gnu/osip/libosip2-3.6.0.tar.gz
          o octave (from "universe")
+
http://mirrors.kernel.org/gnu/osip/libosip2-3.6.0.tar.gz
 +
ftp://mirrors.kernel.org/gnu/osip/
  
Install Scripts¶
+
Compile
  
The following are scripts to take most users through a GNU Radio install on a typical Ubuntu install, with the hope that it provides enough guidance such that you can get GNU Radio up and running on your Ubuntu box.
+
cp libosip2-3.6.0.tar.gz /usr/local/src
* This section is for Edgy or previous only (no changes are needed on Feisty or newer, except possibly to disable the CDROM entry):
+
cd /usr/local/src
Manually uncomment all repositories to include "universe" and "multiverse" either via direct editing
+
tar zxvf libosip2-3.6.0.tar.gz
 +
mkdir linux-build
 +
cd /usr/local/src/linux-build/
 +
../libosip2-3.6.0/configure
 +
make clean
 +
make all
 +
make
 +
make install
  
  sudo <EDITOR> /etc/apt/sources.list
+
==Install OpenBTS==
  
 +
Download [[source code]] dari
  
or via the provided GUI: System -> Administration -> Software Sources. Then enter the admin password for access. On the "Ubuntu" tab, make sure all of "main restricted universe multiverse" are checked and the rest unchecked (or deal with those are you deem correct for your setup). Click "Close", then "Reload" to update the package list. The uncommented lines of the file "/etc/apt/sources.list" should read something like (DIST is a string with your particular distribution: edgy, feisty, gusty, etc):
+
http://www.openbts.org
 +
http://sourceforge.net/projects/openbts/
  
deb http://us.archive.ubuntu.com/ubuntu/ DIST main restricted universe multiverse
+
Lakukan
deb http://us.archive.ubuntu.com/ubuntu/ DIST-updates main restricted universe multiverse
 
deb http://security.ubuntu.com/ubuntu/ DIST-security main restricted universe multiverse
 
  
Update
+
cp openbts-2.6.0Mamou.tar.gz /usr/local/src/
 +
cd /usr/local/src/
 +
tar zxvf openbts-2.6.0Mamou.tar.gz
 +
cd /usr/local/src/openbts-2.6.0Mamou/
 +
./configure
 +
make clean
 +
make all
 +
make
 +
make install
  
sudo apt-get update
+
===Modifikasi USRP Device untuk Single Doughterboard===
  
Instal untuk Maverick (10.10)
+
Referensi:
  
  apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake libtool python-dev libfftw3-dev \
+
  https://github.com/somat/openbts-patch
libcppunit-dev libboost-all-dev libusb-dev fort77 sdcc sdcc-libraries \
+
  http://github.com/ttsou/openbts-dboard/tarball/master
  libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \
 
libqt4-dev python-numpy ccache python-opengl libgsl0-dev \
 
python-cheetah python-lxml doxygen qt4-dev-tools \
 
libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools
 
  
 +
Download [[source code]] ttsou
  
 +
cp ttsou-openbts-dboard-dff7527.tar.gz /usr/local/src/
 +
cd /usr/local/src
 +
tar zxvf ttsou-openbts-dboard-dff7527.tar.gz
 +
cd /usr/local/src/ttsou-openbts-dboard-dff7527/public-trunk/
 +
cp -Rf * /usr/local/src/openbts-2.6.0Mamou
  
Note that above line for Edgy installs python-wxgtk-2.6. While this is good enough for older gnuradio releases, it is too old for recent gnuradio svn snapshots. If you want to build a recent svn snapshot of gnuradio you need wxgtk version 2.8 or later.
+
Modifikasi file USRPDevice.cpp
You can install more recent wxgtk versions from the wxwidgets debian and ubuntu repository.
 
See Installing latest wxgtk-2.8 packages on debian or Ubuntu Install optional packages, if desired; some might already be installed from the previous command:
 
  
  sudo apt-get -y install gkrellm wx-common libwxgtk2.8-dev alsa-base autoconf xorg-dev g77 gawk bison
+
  cd /usr/local/src/openbts-2.6.0Mamou/Transceiver
  openssh-server emacs  cvs usbview octave
+
  vi USRPDevice.cpp
  
For Edgy only: Get, Compile, and Install SWIG
+
const dboardConfigType dboardConfig = TXA_RXA;
  
wget http://prdownloads.sourceforge.net/swig/swig-1.3.33.tar.gz
+
Compile
tar zxf swig-1.3.33.tar.gz
 
cd swig-1.3.33
 
./configure
 
make
 
sudo make install
 
cd ..
 
  
Optional: Get, Compile, Install QWT 5.0.0 (or newer): * NOTE: You should not need to set the environment variables "QTDIR" or "QWT_CFLAGS", so leave them be (for now).
+
cd /usr/local/src/openbts-2.6.0Mamou/
 +
./configure
 +
make clean
 +
make all
 +
make
 +
make install
  
wget http://superb-east.dl.sourceforge.net/sourceforge/qwt/qwt-5.0.2.tar.bz2
+
==Compile smqueue==
tar jxf qwt-5.0.2.tar.bz2
 
cd qwt-5.0.2
 
  
* Now edit qwtconfig.pri: ** Change the unix version of "INSTALLBASE" to "/usr/local" (was "/usr/local/qwt-5.0.2"); ** Change "doc.path" to "$$INSTALLBASE/doc/qwt" (was "$$INSTALLBASE/doc"); ** Save, exit.
+
Install g++ 4.3 karena versi 4.4 tidak bisa digunakan untuk compile smqueue
The "doc" portion is in both HTML and man-style, but is all in /usr/local/doc/{html,man}. While this isn't the standard path, there doesn't seem to be an easy way to separate them and thus this is left as is. Then:
 
  
qmake
+
apt-get install g++-4.3
make
 
sudo make install
 
cd ..
 
  
Install Boost¶
+
Edit Makefile.standalone
  
For Ubuntu 8.04 and older, download and install Boost 1.35 or later as follows (see README.building-boost file):
+
vi /usr/local/src/openbts-2.6.0Mamou/smqueue/Makefile.standalone
  
1) Download the latest version of boost from boost.sourceforge.net (boost_1_37_0.tar.bz2 was the latest when this was written).
+
g++ -o smqueue $(CPPFLAGS) $(INCLUDES) smqueue.cpp smnet.cpp smcommands.cpp ../HLR/HLR.cpp $(LIBS)
2) unpack it somewhere and cd into the resulting directory
+
menjadi
 +
g++-4.3 -o smqueue $(CPPFLAGS) $(INCLUDES) smqueue.cpp smnet.cpp smcommands.cpp ../HLR/HLR.cpp $(LIBS)
  
$ cd boost_1_37_0
+
Compile smqueue
  
3) Pick a prefix to install it into. For example use /opt/boost_1_37_0
+
cd /usr/local/src/openbts-2.6.0Mamou/smqueue/
 +
make -f Makefile.standalone
  
$ BOOST_PREFIX=/opt/boost_1_37_0
+
Instalasi OpenBTS Selesai :)
  
4) Configure
+
OpenBTS 2.6 masih belum sempurna, setiap kali kita mengubah user di asterisk, kita perlu mengcompile ulang smqueue, silahkan baca-baca [[OpenBTS: SMS]]
  
$ ./configure --prefix=$BOOST_PREFIX --with-libraries=thread,date_time,program_options
 
  
5) Compile the package
+
===Error g++ 4.4===
  
$ make
+
Jika kita menggunakan g++ 4.4 maka akan terjadi error sebagai berikut
  
6) Install the package
+
smnet.cpp:423: error: invalid conversion from ‘const char*’ to ‘char*’
 +
make: *** [smqueue] Error 1
  
$ sudo make install
 
  
$ cd ..
+
Di OpenBTS 2.6 masih belum sempurna, setiap kali kita mengubah user di asterisk, kita perlu mengcompile ulang smqueue, silahkan baca-baca [[OpenBTS: SMS]]
  
Installing GNU Radio¶
 
Download, bootstrap, configure, and compile GNU Radio package:
 
  
# Install GNU Radio from git
+
==Edit Konfigurasi smqueue==
  
git clone http://gnuradio.org/git/gnuradio.git
 
  
cd gnuradio
+
Copy smqueue.config.example ke smqueue.config
export LD_LIBRARY_PATH=$BOOST_PREFIX/lib    # As per the instructions for installing Boost
 
  
./bootstrap
+
cd /usr/local/src/openbts-2.6.0Mamou/smqueue/
./configure --with-boost=$BOOST_PREFIX  # As per the instructions for installing Boost
+
cp smqueue.config.example smqueue.config
make
 
  
Optionally: Run the GNU Radio software self-check; does not require a USRP.
+
Konfigurasi smqueue berada di ./smqueue/smqueue.config. Tambahkan sedikit di smqueue.config agar:
  
make check
+
vi /usr/local/src/openbts-2.6.0Mamou/smqueue/smqueue.config
  
 +
tambahkan supaya tidak crash waktu mengirim [[SMS]] registrasi
  
If any test or tests do not work, GNU Radio might still function properly, but it might be wise to look in the email archives for a fix or to write the email list. If writing to the email list, please include the OS type, OS version, and CPU type (e.g. via "uname -a"), anything special about the computer hardware, software versions (gcc, g++, swig, sdcc, etc) and how installed (standard or non-standard package, source). Now install GNU Radio for general use (default is in to /usr/local ):
+
Log.Alarms.Max 10
  
sudo make install
+
buat savedqueue.txt di directory ./smqueue
  
Ubuntu uses udev for handling hotplug devices, and does not by default provide non-root access to the USRP. The following script is taken from directions, and sets up groups to handle USRP via USB, either live or hot-plug
+
touch /usr/local/src/openbts-2.6.0Mamou/smqueue/savedqueue.txt
  
sudo addgroup usrp
+
==Pranala Menarik==
sudo usermod -G usrp -a <YOUR_USERNAME>
 
echo 'ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", GROUP:="usrp", MODE:="0660"' > tmpfile
 
sudo chown root.root tmpfile
 
sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules
 
  
* At this point, Ubuntu is configured to know what to do if/when it detects the USRP on the USB, except that "udev" needs to reload the rules to include the newly created one. The following might work, but if it doesn't then rebooting the computer will.
+
* [[OpenBTS]]
 +
* [[OpenBTS: Arsitektur secara umum]]
  
sudo udevadm control --reload-rules
+
===Persiapan===
  
 +
* [[USRP: High Precision Clock]]
 +
* [[USRP: Menyambungkan ClockTamer ke USRP1]]
 +
* [[USRP: Kalibrasi ClockTamer]]
 +
* [[USRP: ClockTamer Control Protocol]]
 +
* [[USRP: Instalasi Board]]
 +
* [[OpenBTS: GIT Source Code]]
 +
* [[USRP: Rangkaian Board USRP]]
 +
* [[OpenBTS: Tethr untuk Bencana Alam]]
  
or
+
===OpenBTS 2.6===
  
sudo /etc/init.d/udev stop
+
* [[GNURadio]]
sudo /etc/init.d/udev start
+
* [[GNURadio: Ubuntu Install]]
 +
* [[GNURadio: Menggunakan UHD]]
 +
* [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz]] '''RECOMMENDED'''
 +
* [[GNURadio: Contoh Aplikasi]]
 +
* [[GNURadio: Spectrum Analizer GSM]]
 +
* [[GNURadio: Mengubah board RFX1800 menjadi RFX900]]
 +
* [[GNURadio: Programming Untuk Pemula]]
 +
* [[OpenBTS: Ubuntu Install]] '''RECOMMENDED'''
 +
* [[OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz]] '''RECOMMENDED'''
 +
* [[OpenBTS: Konfigurasi]] '''RECOMMENDED'''
 +
* [[OpenBTS: Kalibrasi]]
 +
* [[OpenBTS: Konfigurasi Asterisk untuk OpenBTS]] '''RECOMMENDED'''
 +
* [[OpenBTS: Menjalankan smqueue]]
 +
* [[OpenBTS: Mengoperasikan BTS]] '''RECOMMENDED'''
 +
* [[OpenBTS: Tampilan di Nokia saat pakai OpenBTS]]
 +
* [[OpenBTS: Operasi 1800 MHz]]
 +
* [[OpenBTS: Beberapa Tips]]
 +
* [[OpenBTS: USRP2]]
 +
* [[OpenBTS: Amplifier]]
 +
* [[OpenBTS: SMS]]
 +
* [[AirProbe]]
  
 +
===OpenBTS 2.8===
  
or
+
* [[GNURadio: Ubuntu 11.10 Install]] ''NOT RECOMMENED''
 +
* [[GNURadio: Ubuntu 11.10 instalasi menggunakan Repo]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Download GNURadio]]
 +
* [[GNURadio: Install UHD]]
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.3.0]]
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 12.04 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.0]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.3.2]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.6.0]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Install dari GIT GNURadio]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 cek USRP Daughter Board]]
 +
* [[GNURadio: UHD]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD Image]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD burn EEPROM RFX Board di USRP1]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD Identifikasi Device]]
 +
* [[OpenBTS: Ubuntu 11.10 Install]]
 +
* [[OpenBTS: dari GIT ttsou]]
 +
* [[OpenBTS: 2.8 dari SVN Install]]
 +
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz dengan UHD tanpa GNURadio]] ''NOT RECOMMENDED''
 +
* [[OpenBTS: 2.8 Edit User di sqlite3.db]] '''RECOMMEND'''
 +
* [[OpenBTS: Yate Softswitch]] '''RECOMMENDED'''
 +
* [[OpenBTS: Yate Config Test]]
 +
* [[OpenBTS: 2.8 Instalasi Real Time Asterisk]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 Menjalankan]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 Konfigurasi]]
 +
* [[OpenBTS: 2.8 Konfigurasi Subscriber Registery]]
 +
* [[OpenBTS: Database SQLite]]
  
sudo killall -HUP udevd
+
===Multi OpenBTS 2.8===
  
You can check if the USRP is being recognized, by examining /dev/bus/usb after plugging in a USRP. Using the command:
+
* [[OpenBTS: Pola Multi OpenBTS]] '''RECOMMENDED'''
 +
* [[Multi OpenBTS: Catatan Konfigurasi]] '''RECOMMENDED'''
  
ls -lR /dev/bus/usb | grep usrp
+
===Ettus E110===
  
 +
* [[OpenBTS: E110 Cara Login]]
 +
* [[OpenBTS: E110 Install Image di MicroSD]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: E110 Cek Daughter Board]]
 +
* [[OpenBTS: E110 Mengubah Master Clock]]
 +
* [[OpenBTS: E110 Kalibrasi Clock]]
 +
* [[OpenBTS: E110 Bekerja dengan opkg]]
 +
* [[OpenBTS: E110 GNURadio]]
 +
* [[OpenBTS: E110 Compile UHD]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: E110 UHD burn EEPROM RFX Board]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: E110 Install UHD Image]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: E110 Instalasi OpenBTS]]
 +
* [[OpenBTS: E110 Instalasi OpenBTS 2.6]] ''NOT RECOMMENDED''
 +
* [[OpenBTS: E110 Instalasi OpenBTS 2.8 untuk MultiBTS]] '''*RECOMMENDED*'''
  
should result in one or more lines (one for each USRP) reading something like:
+
===GPRS===
  
crw-rw---- 1 root usrp 189, 514 Mar 24 09:46 003
+
* [[OpenBTS: GPRS]]
  
 +
===Power Amplifier===
  
Each device file will be listed with group 'usrp' and mode 'crw-rw----'.
+
* [[Driver 900MHz]]
 +
* [[Power Amplifier 900MHz]]
 +
* [[Duplexer]]
  
    * NOTE: If installing on Feisty or newer, the computer probably needs to be rebooted in order for the GNU Radio software to interface correctly with the USRP hardware. This does not seem to be necessary on Edgy.
+
===Lain Lain===
  
Once you've verified that the USRP is available to Ubuntu, now it is time to verify that GNU Radio works with the USRP (if installed; if not, skip this). While "usrp_benchmark_usb" might not return a full 32 MB/s of throughput, the script should at least run properly; if not, either GNU Radio didn't make correctly or the USRP isn't accessible. From the "gnuradio" directory, verify that all of the following work:
+
* [[OpenBTS: Materi Magang di ICTWATCH]]
* Python interface to the USRP; provides a rough estimate of the maximum throughput (quantized to a power of 2) between the host computer and the USRP.
+
* [[OpenBTS: Seminar Outline]]
 +
* [[OpenBTS: Workshop Outline]]
 +
* [[Membuat Base Station GSM Open Source]]
 +
* [[Teknologi Selular]]
 +
* [[GSM: Daftar Channel Frekuensi]]
 +
* [[Wireless Internet]]
 +
* [[OpenBSC]]
 +
* [[AirProbe]]
 +
* [[Base station subsystem]]
 +
* [[GSM]]
 +
* [[Asterisk]]
 +
* [[Mobile phone]]
  
cd gnuradio-examples/python/usrp
+
===Catatan Legal dan Pendukung===
./usrp_benchmark_usb.py
 
  
* C++ interface to the USRP; provides a good estimate of the maximum throughput (non-quantized) between the host computer and the USRP.
+
* [[Siapa Bilang OpenBTS Ilegal?]]
 +
* [[OpenBTS: Catatan MNC dan MCC Indonesia]]
 +
* [[OpenBTS: Catatan MNC dan MCC COOL]]
 +
* [[OpenBTS : Alokasi Frekuensi Operator GSM Indonesia]]
 +
* [[GSM: Daftar Channel Frekuensi]]
  
cd usrp/host/apps
+
===Catatan Sejarah===
./test_usrp_standard_tx
 
./test_usrp_standard_rx
 
  
Update the rest of the system, after which you might need or want to reboot:
+
* [[2011/04/30 - Workshop OpenBTS Pertama di Indonesia dilakukan di Univ Gajah Putih Takengon Aceh Tengah]]
 +
* [[OpenBTS: Daftar Workshop atau Seminar yang pernah dilakukan]]
 +
* [[OpenBTS: Daftar Artikel di Media]]
  
sudo apt-get -y upgrade
+
===Dokumentasi Video===
  
Update the Linux distro, after which a reboot is required:
+
* http://youtu.be/8ogOcUSpINU (1/6)
 +
* http://youtu.be/F5d7HGuhppk (2/6)
 +
* http://youtu.be/90Jgq6bOgrQ (3/6)
 +
* http://youtu.be/cNkx_qNqdfc (4/6)
 +
* http://youtu.be/6LCuoeI57ak (5/6)
 +
* http://youtu.be/-dEqcHoIlYk (6/6)
  
sudo apt-get -y dist-upgrade
+
[[Category: Wireless]]
 
+
[[Category: Selular]]
Broken libtool on Debian and Ubuntu¶
 
 
 
Because Debian and Ubuntu apply a poorly implemented "enhancement" to the upstream version of libtool,
 
they break the ability to test code and libraries prior to installing them. We think that testing before
 
installation is a good idea. To work around their damage, be sure to include
 
$PREFIX/lib (and $PREFIX/lib64 on 64-bit machines) in /etc/ld.so.conf.
 
 
 
If you don't include $PREFIX/lib in /etc/ld.so.conf, you will see errors during the linking phase
 
of the build. There are several places it shows up. The first one is often during the build of
 
mblocks. It's not an mblock problem. It's a Debian/Ubuntu problem.
 
 
 
Do this to work around this "feature":
 
1) Make a copy from the current ld.so.conf file and save it in a temp folder:
 
 
 
cp /etc/ld.so.conf /tmp/ld.so.conf
 
 
 
2) Add /usr/local/lib path to it :
 
 
 
echo /usr/local/lib >> /tmp/ld.so.conf
 
 
 
3) If you installed Boost (version 1_37_0 for example) manually, then add its library path to the file:
 
 
 
echo /opt/boost_1_37_0/lib >> /tmp/ld.so.conf
 
 
 
4) Delete the original ld.so.conf file and put the modified file instead:
 
 
 
sudo mv /tmp/ld.so.conf /etc/ld.so.conf
 
 
 
5) Do ldconfig:
 
 
 
sudo ldconfig
 

Latest revision as of 07:21, 14 August 2012

Instalasi paket / library pendukung tambahan

apt-get install libortp8 libortp-dev libosip2-4 libosip2-dev

Compile osip

LANGKAH INI SEBAIKNYA DI SKIP

Kadang kala untuk bisa mengcompile SMS queue tampaknya osip dari Ubuntu tidak bisa di gunakan kita harus compile dari scratch

apt-get remove --purge libosip2-4 libosip2-dev

Download osip

http://ftp.gnu.org/gnu/osip/
http://ftp.gnu.org/gnu/osip/libosip2-3.6.0.tar.gz
http://mirrors.kernel.org/gnu/osip/libosip2-3.6.0.tar.gz
ftp://mirrors.kernel.org/gnu/osip/

Compile

cp libosip2-3.6.0.tar.gz /usr/local/src
cd /usr/local/src
tar zxvf libosip2-3.6.0.tar.gz
mkdir linux-build
cd /usr/local/src/linux-build/
../libosip2-3.6.0/configure 
make clean
make all
make
make install

Install OpenBTS

Download source code dari

http://www.openbts.org
http://sourceforge.net/projects/openbts/

Lakukan

cp openbts-2.6.0Mamou.tar.gz /usr/local/src/
cd /usr/local/src/
tar zxvf openbts-2.6.0Mamou.tar.gz
cd /usr/local/src/openbts-2.6.0Mamou/
./configure 
make clean
make all
make 
make install

Modifikasi USRP Device untuk Single Doughterboard

Referensi:

https://github.com/somat/openbts-patch
http://github.com/ttsou/openbts-dboard/tarball/master

Download source code ttsou

cp ttsou-openbts-dboard-dff7527.tar.gz /usr/local/src/
cd /usr/local/src
tar zxvf ttsou-openbts-dboard-dff7527.tar.gz 
cd /usr/local/src/ttsou-openbts-dboard-dff7527/public-trunk/
cp -Rf * /usr/local/src/openbts-2.6.0Mamou

Modifikasi file USRPDevice.cpp

cd /usr/local/src/openbts-2.6.0Mamou/Transceiver
vi USRPDevice.cpp
const dboardConfigType dboardConfig = TXA_RXA;

Compile

cd /usr/local/src/openbts-2.6.0Mamou/
./configure 
make clean
make all
make 
make install

Compile smqueue

Install g++ 4.3 karena versi 4.4 tidak bisa digunakan untuk compile smqueue

apt-get install g++-4.3

Edit Makefile.standalone

vi /usr/local/src/openbts-2.6.0Mamou/smqueue/Makefile.standalone 
g++ -o smqueue $(CPPFLAGS) $(INCLUDES) smqueue.cpp smnet.cpp smcommands.cpp ../HLR/HLR.cpp $(LIBS)

menjadi

g++-4.3 -o smqueue $(CPPFLAGS) $(INCLUDES) smqueue.cpp smnet.cpp smcommands.cpp ../HLR/HLR.cpp $(LIBS)

Compile smqueue

cd /usr/local/src/openbts-2.6.0Mamou/smqueue/
make -f Makefile.standalone

Instalasi OpenBTS Selesai :)

OpenBTS 2.6 masih belum sempurna, setiap kali kita mengubah user di asterisk, kita perlu mengcompile ulang smqueue, silahkan baca-baca OpenBTS: SMS


Error g++ 4.4

Jika kita menggunakan g++ 4.4 maka akan terjadi error sebagai berikut

smnet.cpp:423: error: invalid conversion from ‘const char*’ to ‘char*’
make: *** [smqueue] Error 1


Di OpenBTS 2.6 masih belum sempurna, setiap kali kita mengubah user di asterisk, kita perlu mengcompile ulang smqueue, silahkan baca-baca OpenBTS: SMS


Edit Konfigurasi smqueue

Copy smqueue.config.example ke smqueue.config

cd /usr/local/src/openbts-2.6.0Mamou/smqueue/
cp smqueue.config.example smqueue.config

Konfigurasi smqueue berada di ./smqueue/smqueue.config. Tambahkan sedikit di smqueue.config agar:

vi /usr/local/src/openbts-2.6.0Mamou/smqueue/smqueue.config

tambahkan supaya tidak crash waktu mengirim SMS registrasi

Log.Alarms.Max 10

buat savedqueue.txt di directory ./smqueue

touch /usr/local/src/openbts-2.6.0Mamou/smqueue/savedqueue.txt

Pranala Menarik

Persiapan

OpenBTS 2.6

OpenBTS 2.8

Multi OpenBTS 2.8

Ettus E110

GPRS

Power Amplifier

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah

Dokumentasi Video