Installing YateBTS on a Clean Ubuntu Install (16.04 LTS)

Install Prerequisites
$ sudo apt-get install subversion
$ sudo apt-get install autoconf
$ sudo apt-get install libgsm1-dev
$ sudo apt-get install libgusb-dev
$ mkdir ~/tools

Install Yate
$ which -a yate-config (make sure only have 1 instance installed)
$ cd ~/tools
$ svn checkout yate
$ cd yate
$ ./autogen.shr
$ ./configure
$ sudo make install-noapi

Install YateBTS
$ cd ~/tools
$ svn checkout yatebts
$ cd yatebts
$ ./
$ ./configure
$ sudo make install

Configure your username permissions for running YateBTS
$ sudo addgroup yate
$ sudo usermod -G yate [your-username]
$ sudo touch /usr/local/etc/yate/snmp_data.conf /usr/local/etc/yate/tmsidata.conf
$ sudo chown root:yate /usr/local/etc/yate/*.conf
$ sudo chmod g+w /usr/local/etc/yate/*.conf

Configure YateBTS values
$ sudo vim /usr/local/etc/yate/ybts.conf
Radio.Band= 900 (set your countries value here)
Radio.C0=0 (determined by your band)
Identity.MCC=001 (uncomment)

$ sudo vim /etc/security/limits.conf (increase yate’s priority value, append these lines)
@yate hard nice -20
@yate hard rtprio 99

$ sudo vim /usr/local/etc/yate/ybts.conf
radio_read_priority=highest (uncomment and change to highest)
radio_send_priority=high (uncomment and change to high)

$ sudo vim /usr/local/etc/yate/ysnmpagent.conf (change SNMP port numbers so normal users can use them)
port=20161 (uncomment and change value)
remote_port=20162 (uncomment and change value)

$ sudo vim /usr/local/etc/yate/subscribers.conf (set country code)
country_code=61 (e.g. for Australia)

Start and test YateBTS
$ yate
$ telnet localhost 5038
nib list registered (list registered devices)
nib list rejected (list rejected devices)

  • Try and connect to the “101” 2G network on your two test devices
  • Take your two test IMSI numbers from nib list rejected and add regexp= to /usr/local/etc/yate/subscribers.conf
  • Now you can make calls to each other with your allocated phone numbers (you will recieve an sms when you join the network) or text ELIZA questions on 35492

Leave a Reply

Your email address will not be published. Required fields are marked *