Setting up the BSC

From Rhizomatica Wiki
Jump to: navigation, search
This page contains changes which are not marked for translation.

Other languages:
English • ‎español

These instruction are specific to our installations at rhizomatica using our servers and VPN setups. Some cleverness amay be required to fill in some of the holes...


Hardware

In our installations, we use this: http://www.jetwaycomputer.com/JBC373F38.html

We like these because they are fanless, tough, no moving parts and have a 4 ethernet ports.


BIOS Changes:

First we need to make some changes in the BIOS:

Bios Feature Integrated Peripheral > onboard SATA fnct > AHCI

Power Management >

ERP Function > Disabled (power saving)

PWR Status after Power failure > Always On

PC Health Status > Shutdown Temp 75C


Prepare Ubuntu for install

Download Ubuntu 12.04 server & put it on a USB drive

replace /preseed/ubuntu.seed on USB drive with preseed file from git: https://github.com/Rhizomatica/puppet/blob/master/rhizomatica.seed

install Ubuntu on BSC with US english keyboard and Mexico City timezone


Boot it up!

connect to LAN1

login: rhizomatica rhizomatica (has this changed?)


  here we edited out a bunch of rhizo specific networking and VPN info


INSTALL PUPPET

Maybe start by taking a look at [[1]] or [[2]]

 wget https://apt.puppetlabs.com/puppetlabs-release-precise.deb #just the repo info
 
 dpkg -i puppet.deb file # just install repos
 
 apt-get update
 
 apt-get install puppet
 
 See the README at https://github.com/Rhizomatica/puppet

Back on BSC:

 puppet agent --test 


on work machine:

We use a git repo of .yaml files to set up our various BSCs. How would this get set up by someone trying to do it themselves?

example file:

# Site specific info
rhizo::bts1_ip_address:  "172.16.0.11"
rhizo::site_name:   "Tabaa"
rhizo::postcode:    "68847" 	# we use the postal code for the dialing prefix
rhizo::pbxcode:"1"
rhizo::network_name:"TabaaGSM"
rhizo::arfcn_A:"239" # channel
rhizo::arfcn_B:"243" #channel 
rhizo::auth_policy: "closed"
rhizo::vpn_ip_address:   "10.23.1.15" #this is just part of our own VPN
rhizo::wan_ip_address:   "192.168.0.0" # ip from isp add this later - used for VOIP

#Emergency call contact
rhizo::emergency_contact:"12345" 

# VoIP provider info
rhizo::voip_provider_name:    "provider"
rhizo::voip_username:    "1234567890"
rhizo::voip_fromuser:    "1234567890"
rhizo::voip_password:    "1234"
rhizo::voip_proxy:  "169.132.196.11"
rhizo::voip_did:    "12345678901"
rhizo::voip_cli:    "12345678901"


Back on BSC

 puppet agent --test 
 q:How does some stranger get puppet setup?
 a: set up the puppet master on bsc and set up the agent on 'localhost'
  cd /root
  tar -zxf /home/rhizomatica/git_key.tar.gz 

  ./git_rccn.sh #to pull from git

  puppet agent --test (again to generate config python file: /var/rhizomatica/rccn/config_values.py )

  python /var/rhizomatica/rccn/install.py



  
  nano /etc/default/puppet
  
  #change to  START=yes #make puppet auto start
  
  service puppet start
 

as root:

  update-rc.d osmocom-nitb disable #disable osmocom standard script because we do it different

Reboot the BSC!


Network config on the BSC:

 nano /etc/network/interfaces

Leave the primary interface as DHCP

add:

 
#LAN2 BTS interface
auto eth1
iface eth1 inet static
 address 172.16.0.1 
 netmask 255.255.255.0 

#LAN4 local admin PC
auto eth3
 iface eth3 inet static
 address 192.168.100.1 
 netmask 255.255.255.0 
 ifup eth1
 ifup eth3


Language Setup

If Spanish lang pages are in english, spanish PHP support can be generated via:

 locale-gen es


BSC LAN PORTS

LAN 1 LAN 2 LAN 3 LAN 4
Internet BTS available Admin compu
Assigned by DHCP 172.16.0.11 and 172.16.0.12 available 192.168.100.1