Last edited · 1 revision  

 


Since Debian 10 is out (Buster) I wanted to rebuild my Intel HB server based on Buster "in the cloud". So, I'll add this to the mix:

################## Start from fresh Buster install x64 install #################################
# Make sure everything is up to date.
apt-get update
apt-get upgrade -y
apt-get install net-tools
# Install needed programs to get HBlink3 and HBmonitor
apt-get install git-core -y
# I like to keep my downloads (git pull) in another area
cd /srv
git clone https://github.com/n0mjs710/hblink3.git
git clone https://github.com/n0mjs710/HBmonitor.git
# Not needed but nice to have to look at.
git clone https://github.com/n0mjs710/dmr_utils3.git
# Copy hblink3 and hbmonitor to /opt
cp -rf hblink3 /opt
cp -rf HBmonitor /opt

# I like to keep my datafiles and logs separate
mkdir /var/log/hblink
mkdir /var/lib/hblink
cd /opt/hblink3/

# Install pip3
apt-get install python3-pip -y
# Install all the required python3 programs
cat requirements.txt
pip3 install -r requirements.txt
# Copy the sample config file to working
copy hblink-SAMPLE.cfg hblink.cfg
cp hblink-SAMPLE.cfg hblink.cfg
# Do basic setup and disable all masters and peers for initial test
# nano hblink.cfg
# Create a patch file. Not needed but...
diff -u hblink-SAMPLE.cfg hblink.cfg >hblink.cfg_patch
# There is one data file that I like to include.
cp /srv/HBmonitor/talkgroup_ids.json /var/lib/hblink/

python3 hblink.py
# no errors? Good basic hblink3 setup complete

######## This is not required, It is optional ################
cd /opt/HBmonitor/
# install pip
apt-get install python-pip -y

# copy the sample config to working...
cp config_SAMPLE.py config.py
# install requirements for HBmonitor
cat requirements.txt
pip install -r requirements.txt
# Do basic setup for testing
# nano config.py
# Create a patch file. Not needed but...
diff -u config_SAMPLE.py config.py >config.py_patch
# test basic function
python web_tables.py
# no errors? Good

#################################### Now configure hblink for actual work... ##################################

Steve N4IRS