OpenBTS: Script Membuat OpenBTS di RangeNetwork Dev Kit

From OnnoWiki
Revision as of 12:51, 14 January 2014 by Onnowpurbo (talk | contribs) (New page: mkdir -p /OpenBTS/ mkdir -p /home/openbts/software/public cd /home/openbts/software svn co http://wush.net/svn/range/software/public public cd /home/openbts/software/public cd a53/...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
mkdir -p /OpenBTS/
mkdir -p /home/openbts/software/public
cd /home/openbts/software
svn co http://wush.net/svn/range/software/public public

cd /home/openbts/software/public
cd a53/trunk
sudo make install

cd /home/openbts
killBTS

cd /home/openbts/software/public/openbts/trunk
autoreconf -i
./configure
make

cd /home/openbts/software/public/openbts/trunk
cd apps
make
ln -s ../TransceiverRAD1/transceiver .
ln -s ../TransceiverRAD1/ezusb.ihx .
ln -s ../TransceiverRAD1/fpga.rbf .

cd /home/openbts/software/public/openbts/trunk/TransceiverRAD1
cp transceiver /OpenBTS/
cp ezusb.ihx /OpenBTS/
cp fpga.rbf /OpenBTS/

cd /home/openbts/software/public/openbts/trunk/apps
cp OpenBTS /OpenBTS/
cp OpenBTSDo /OpenBTS/
cp OpenBTSCLI /OpenBTS/
cp runloop.OpenBTS.sh /OpenBTS/

sudo mkdir /etc/OpenBTS
sudo sqlite3 -init ./apps/OpenBTS.example.sql /etc/OpenBTS/OpenBTS.db ".quit"

sudo mkdir -p /var/lib/asterisk/sqlite3dir

cd /home/openbts/software/public/subscriberRegistry/trunk
make

cd /home/openbts/software/public/subscriberRegistry/trunk
cp comp128 /usr/local/bin/
cp comp128 /OpenBTS/ 
cp sipauthserve /OpenBTS/
cp runloop.sipauthserve.sh /OpenBTS/

cd /home/openbts/software/public/subscriberRegistry/trunk
sudo sqlite3 -init subscriberRegistry.example.sql /etc/OpenBTS/sipauthserve.db ".quit"

cd /home/openbts/software/public/smqueue/trunk
autoreconf -i
./configure
make

cd /home/openbts/software/public/smqueue/trunk
sudo sqlite3 -init smqueue/smqueue.example.sql /etc/OpenBTS/smqueue.db ".quit" 

cd /home/openbts/software/public/smqueue/trunk/smqueue
cp runloop.smqueue.sh /OpenBTS/
cp smqueue /OpenBTS/