Думаю кому то может пригодится !!!
Мануал по установки OsmocomBB + доп. Софт на Kali Linux 2016.1
Протестировано на VMware Workstation 12 Pro
#apt-get update && apt-get upgrade
# apt-get install build-essential libssl2-dev libgmp-dev libx11-6 libx11-dev flex libncurses5 libncurses5-dev libncursesw5 libpcsclite-dev zlib1g-dev libmpfr4 libmpc3 lemon aptitude libtinfo-dev libtool shtool autoconf git-core pkg-config make libmpfr-dev libmpc-dev libtalloc-dev libfftw3-dev gcc-4.9
# update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10
# update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-5 20
# update-alternatives –install /usr/bin/g++ g++ /usr/bin/g++-4.9 10
# update-alternatives –install /usr/bin/g++ g++ /usr/bin/g++-5 20
# update-alternatives –install /usr/bin/cc cc /usr/bin/gcc 30
# update-alternatives –set cc /usr/bin/gcc
# update-alternatives –install /usr/bin/c++ c++ /usr/bin/g++ 30
# update-alternatives –set c++ /usr/bin/g++
# update-alternatives –config gcc
# update-alternatives –config g++
(choose 4.9)
# apt-get remove texinfo
# wget
# gzip -dc < texinfo-4.13.tar.gz | tar -xf –
# cd texinfo-4.13
# ./configure
# make
# make install
# mkdir gnuarm
# cd gnuarm
# wget
# chmod +x gnu-arm-build.2.sh
# mkdir build install src
# cd src/
# wget
# wget
# wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz
# cd ..
# ./gnu-arm-build.2.sh
#
export PATH=$PATH:/root/gnuarm/install/bin
Теперь у вас есть готовый кросс-компилятор, и Вы можете установить OsmocomBB и дополнительный софт…
# cd /root
# git clone git://git.osmocom.org/libosmocore.git
# cd libosmocore
# autoreconf -i
# ./configure
# make
# make install
# ldconfig
# cd ..
# git clone git://git.osmocom.org/libosmo-dsp.git
# cd libosmo-dsp/
# autoreconf -i
# ./configure
# make
# make install
# cd ..
# git clone git://git.osmocom.org/osmocom-bb.git trx
# cd trx
# git checkout jolly/testing
# cd src
# nano target/firmware/Makefile
# It needs TX support
# Just uncomment 'CFLAGS += -DCONFIG_TX_ENABLE
# make HOST_layer23_CONFARGS=–enable-transceiver
# cd /root
#git clone
Asterisk download this version (1.8.13.1) :
# nano /etc/apt/sources.list
comment kali rolling and add
deb
moto main non-free contrib
# apt-get update
# apt-get install asterisk-dev
# cd asterisk-1.8.13.1
# cp ../imsi-catcher/tcpls.c main/tcpls.c
#./configure
#make
# make install
nano /etc/apt/sources.list
comment kali moto and uncomment kali rolling
# apt-get update
# apt-get install osmocom-nitb osmo-bts
Download
# tar xvzf opencore-amr-0.1.3.tar.gz
# cd opencore-amr-0.1.3
# ./configure
# make
# sudo make install
# sudo ldconfig
# tar xvzf sofia-sip-x.x.x.tar.gz
# cd sofia-sip-x.x.x
# ./configure
# make
# sudo make install
# sudo ldconfig
mso-themecolor:text1;mso-ansi-language:EN-US">rm -Rf /lib/modules/$(uname -r)/kernel/drivers/isdn/hardware/mISDN
mso-themecolor:text1;mso-ansi-language:EN-US">rm -Rf /lib/modules/$(uname -r)/kernel/drivers/isdn/mISDN/
mso-themecolor:text1;mso-ansi-language:EN-US">depmod -a
mso-themecolor:text1;mso-ansi-language:EN-US">apt-get install git build-essential libtool autoconf automake linux-headers-$(uname -r)
mso-themecolor:text1;mso-ansi-language:EN-US">git clone
mso-themecolor:text1">
mso-themecolor:text1;mso-ansi-language:EN-US">
mso-themecolor:text1;mso-ansi-language:EN-US">git clone
mso-themecolor:text1">
mso-themecolor:text1;mso-ansi-language:EN-US">
mso-themecolor:text1;mso-ansi-language:EN-US">cd mISDN
mso-themecolor:text1;mso-ansi-language:EN-US">
mso-themecolor:text1;mso-ansi-language:EN-US"># as of Debian 8.5, there is an automake version mismatch, fix it via:
mso-themecolor:text1;mso-ansi-language:EN-US">aclocal && automake --add-missing
mso-themecolor:text1;mso-ansi-language:EN-US">
mso-themecolor:text1;mso-ansi-language:EN-US">./configure
mso-themecolor:text1;mso-ansi-language:EN-US">cp mISDN.cfg.default standalone/mISDN.cfg
mso-themecolor:text1;mso-ansi-language:EN-US">make modules
mso-themecolor:text1;mso-ansi-language:EN-US">make modules_install
mso-themecolor:text1;mso-ansi-language:EN-US">depmod -a
mso-themecolor:text1;mso-ansi-language:EN-US">cd ../mISDNuser
mso-themecolor:text1;mso-ansi-language:EN-US">make
mso-themecolor:text1;mso-ansi-language:EN-US">./configure
mso-themecolor:text1;mso-ansi-language:EN-US">make
mso-themecolor:text1;mso-ansi-language:EN-US">make install
mso-themecolor:text1">cd example
mso-themecolor:text1">make
# git clone
# cd lcr
# autoreconf -i
# ./configure –with-sip –with-gsm-bs –with-gsm-ms –enable-gsmhr –with-asterisk
# make
# make install
# ldconfig
# cd ../imsi-catcher
Place asterisk folder in /etc
Place interface.conf, routing.conf and options.conf folder in /usr/local/etc/lcr
Place osmo-bts.cfg and open-bsc.cfg in /root/.osmocom
Change in /etc/asterisk/sip.conf with your sip provider login and pass (ex diamondcard)
#apt-get install alsa-oss
#modprobe snd_pcm_oss
#modprobe snd_mixer_oss