Ansible installation of osmocom-bb

Hello in this tutorial we will use ansible to simplify installation of osmocom-bb. OS tested : Kali-rolling 2018.1

# apt dist-upgrade
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/linux-headers-4.15.0-041500_4.15.0-041500.201802011154_all.deb
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/linux-headers-4.15.0-041500-generic_4.15.0-041500.201802011154_amd64.deb
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/linux-image-4.15.0-041500-generic_4.15.0-041500.201802011154_amd64.deb
# dpkg -i *.deb
# update-grub

reboot on linux image 4.15 (in advanced options) Check if new Kernel has been installed with command:
# uname -r
4.15.0-041500-generic
# apt install openssh-server ansible
# cd /root
# git clone https://github.com/bbaranoff/osmocombb-ansible test
# cp /root/test/hosts /etc/ansible/hosts
# cp /root/test/sshd_config /etc/ssh/sshd_config
# ssh-keygen
# service ssh restart
# ssh-copy-id localhost
# ansible all -m ping

if it answer pong you’re good
# cd /root/test/
# ansible-playbook osmocombb.yml

12 réflexions sur “Ansible installation of osmocom-bb”

  1. Hello. This is UberWaves.
    I see that you have made a great contribution to the OsmocomBB community. As an OsmocomBB hardware provider, I would like to make a hardware donation to you, so I can contribute to your effort to evolve the OsmocomBB project and bring more people to it.
    I would like to send you:
    2 x Motorola C123 with Filter Rework in New condition, complete with battery and charger.
    2 x FTDI Serial Adapter with Upgraded/Professional Cable.
    2 x Antenna to SMA Adapter with 2.5db antenna.
    2 x USB Power Supplies. (With these, you can use them in place of the lithium batteries to power on the Motorola indefinitely from any USB port, without the need to solder anything to the Motorola.)
    Please contact me at [email protected] to arrange the details.
    Once again, thank you for your great effort and time that you’ve put to the OsmocomBB Project.
    Best Regards.
    P.S. You have tried to buy a serial cable from my ebay store (uber.waves), and I tried to contact you to send it to you for free, but I never got back a reply till I found your blog spot.

  2. make[3]: Leaving directory ‘/root/trx/src/host/layer23/src/misc’
    Making all in mobile
    make[3]: Entering directory ‘/root/trx/src/host/layer23/src/mobile’
    CC main.o
    main.c: In function ‘main’:
    main.c:220:2: warning: ‘msgb_set_talloc_ctx’ is deprecated (declared at /usr/local/include/osmocom/core/msgb.h:707): Use msgb_talloc_ctx_init() instead [-Wdeprecated-declarations]
    msgb_set_talloc_ctx(l23_ctx);
    ^
    CC app_mobile.o
    app_mobile.c:376:2: warning: initialization from incompatible pointer type
    .go_parent_cb = ms_vty_go_parent,
    ^
    app_mobile.c:376:2: warning: (near initialization for ‘vty_info.go_parent_cb’)
    CC gsm322.o
    gsm322.c: In function ‘gsm322_cs_select’:
    gsm322.c:1865:3: warning: ‘gsm_arfcn2band’ is deprecated (declared at /usr/local/include/osmocom/gsm/gsm_utils.h:165): Use gsm_arfcn2band_rc() instead [-Wdeprecated-declarations]
    band = gsm_arfcn2band(index2arfcn(i));
    ^
    gsm322.c: In function ‘gsm322_search_end’:
    gsm322.c:2055:30: warning: variable ‘mnc’ set but not used [-Wunused-but-set-variable]
    int tune_back = 0, mcc = 0, mnc = 0;
    ^
    gsm322.c: In function ‘gsm322_nb_check’:
    gsm322.c:4196:3: warning: ‘gsm_arfcn2band’ is deprecated (declared at /usr/local/include/osmocom/gsm/gsm_utils.h:165): Use gsm_arfcn2band_rc() instead [-Wdeprecated-declarations]
    band = gsm_arfcn2band(nb->arfcn);
    ^
    gsm322.c: In function ‘gsm322_nb_new_rxlev’:
    gsm322.c:4693:2: warning: ‘gsm_arfcn2band’ is deprecated (declared at /usr/local/include/osmocom/gsm/gsm_utils.h:165): Use gsm_arfcn2band_rc() instead [-Wdeprecated-declarations]
    int band = gsm_arfcn2band(cs->arfcn);
    ^
    gsm322.c: In function ‘gsm322_exit’:
    gsm322.c:5142:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
    int rc;
    ^
    CC gsm480_ss.o
    gsm480_ss.c:312:30: error: redefinition of ‘msgb_wrap_with_TL’
    static inline unsigned char *msgb_wrap_with_TL(struct msgb *msgb, uint8_t tag)
    ^
    In file included from gsm480_ss.c:28:0:
    /usr/local/include/osmocom/core/msgb.h:371:30: note: previous definition of ‘msgb_wrap_with_TL’ was here
    static inline unsigned char *msgb_wrap_with_TL(struct msgb *msgb, uint8_t tag)
    ^
    gsm480_ss.c: In function ‘gsm480_tx_ussd’:
    gsm480_ss.c:535:2: warning: ‘gsm_7bit_encode’ is deprecated (declared at /usr/local/include/osmocom/gsm/gsm_utils.h:241): Use gsm_7bit_encode_n() instead [-Wdeprecated-declarations]
    length = gsm_7bit_encode(msg->data, text);
    ^
    gsm480_ss.c: In function ‘gsm480_rx_ussd’:
    gsm480_ss.c:779:2: warning: ‘gsm_7bit_decode’ is deprecated (declared at /usr/local/include/osmocom/gsm/gsm_utils.h:239): Use gsm_7bit_decode_n() instead [-Wdeprecated-declarations]
    gsm_7bit_decode(text, tag_data, num_chars);
    ^
    gsm480_ss.c: In function ‘gsm480_mmss_ind’:
    gsm480_ss.c:1221:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
    int rc = 0;
    ^
    make[3]: *** [Makefile:420: gsm480_ss.o] Error 1
    make[3]: Leaving directory ‘/root/trx/src/host/layer23/src/mobile’
    make[2]: *** [Makefile:325: all-recursive] Error 1
    make[2]: Leaving directory ‘/root/trx/src/host/layer23/src’
    make[1]: *** [Makefile:350: all-recursive] Error 1
    make[1]: Leaving directory ‘/root/trx/src/host/layer23’
    make: *** [Makefile:51: layer23] Error 2
    I Have this error sir, may be you can help me. Thank you, sir.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *