diff --git a/MMDVM.README b/MMDVM.README index c1baccf..b1221a7 100644 --- a/MMDVM.README +++ b/MMDVM.README @@ -19,11 +19,11 @@ your start. On a Raspberry Pi, you can do all of this with the configureation me 2) Clone the MMDVMHost repository: git clone git://github.com/g4klx/MMDVMHost.git 3) cd into the MMDVMHost directory and compile: make - If you're on a multicore system use: make -jx + If you're system has multiple processors, use: make -jx where x is the number of processors on you system. To tell how many processors you have: cat /cpu/info | grep processor | wc -l -4) Copy the ini file: cp MMDVM.ini MMDVM.qn +4) Copy the ini file template: cp MMDVM.ini MMDVM.qn 5) Edit the MMDVM.qn file. Set your Callsign and Id. Turn off duplex. Enable an external display, if you have one. Set the Frequency(s). Set the Latitude and @@ -55,19 +55,20 @@ your start. On a Raspberry Pi, you can do all of this with the configureation me 12) You need a configuration file called qn.cfg for QnetGateway. A good, nearly working config file is qn.mmdvm.cfg. Copy it to qn.cfg and edit it. -13) You need a gwys.txt file for all the reflectors: ./reflist.sh - This will download and format your reflect list. If you find you can no longer - connect to a reflector, it may be because its IP address has changed. You can - execute the reflist.sh script again, copy it to /usr/local/etc, and then - either reboot you system, or put "_ _ _ _ _ _ _ L" in your URField and key - your radio. +13) You need a gwys.txt file for all the systems to which you may wish to link. + If you want to be able to link to repeaters: ./get_gwy_list.sh + If you are only interested in linking to reflectors: ./reflist.sh + This will download and format your gwys.txt file. If you find you can no + longer connect to a system, it may be because its IP address has changed. You + can execute either script again, copy it to /usr/local/etc, and then either + reboot you system, or put " L" in your URField and key + your radio, or: sudo systemctl restart qnlink -14) Install and start the three QnetGateway services: sudo make install +14) We have a gwys.txt file and a qn.cfg in the build directory, so we are ready + to install and start the three QnetGateway services: sudo make install - Now it's time to start the MMDVMHost service. You'll do this from the - QnetGateway directory you are aleady in... - -15) Start the MMDVM service: sudo make installmmdvm +15) Now it's time to start the MMDVMHost service. You'll do this from the + QnetGateway directory you are aleady in: sudo make installmmdvm This command will fail if it can't find both MMDVMHost and MMDVM.qn in the ../MMDVMHost directory. @@ -86,4 +87,4 @@ your start. On a Raspberry Pi, you can do all of this with the configureation me Being able to detach from a screen session is very useful, especially if you are operating "headless"! -17) Start other MMDVMHost services... +17) Build and start other MMDVMHost services... diff --git a/get_reflectors.sh b/get_reflectors.sh index 8352a97..fe62c66 100755 --- a/get_reflectors.sh +++ b/get_reflectors.sh @@ -1,10 +1,11 @@ #/bin/bash + # Get the big list from Ramesh (VA3UV) and extract the DCS, DStar and XReflectors only. -# Put XREF reflectors on port 20001 so no ports have to be forwarded on your home router! +# Put XREF reflectors on port 20001 so they will use DPlus linking! # # 73 # -# Tom, n7tae@arrl.net +# Tom, n7tae (at) arrl (dot) net if [ -e gwys.txt ]; then mv -f gwys.txt gwys.txt.orig @@ -15,14 +16,15 @@ rm -f gwys.va2uv.txt wget -nv -O gwys.va3uv.txt http://www.va3uv.com/gwys.txt if [ -e gwys.va3uv.txt ]; then + echo "# from www.va3uv.com on `date`" > gwys.txt + echo "Got `awk '$1~/^REF/{print $1, $2, $3}' gwys.va3uv.txt | tee -a gwys.txt | wc -l` REF reflectors" # Move DPlus and DExtra to port 20001 - awk '$1~/^REF|XRF/{print $1, $2, 20001}' gwys.va3uv.txt > gwys.txt - # Get the DCS reflectors too - awk '$1~/^DCS/{print $1, $2, $3}' gwys.va3uv.txt >> gwys.txt + echo "Got `awk '$1~/^XRF/{print $1, $2, 20001}' gwys.va3uv.txt | tee -a gwys.txt | wc -l` XRF reflectors" + echo "Got `awk '$1~/^DCS/{print $1, $2, $3}' gwys.va3uv.txt | tee -a gwys.txt | wc -l` DCS reflectors" else - echo "Could not get gateways list from www.va3uv.com!" + echo "Could not get gateways list from www.va3uv.com!" if [ -e gwys.txt.orig ]; then - mv -f gwys.txt.orig gwys.txt + mv -f gwys.txt.orig gwys.txt fi fi diff --git a/reflist.sh b/reflist.sh index 2e778c4..65946f8 100755 --- a/reflist.sh +++ b/reflist.sh @@ -1,13 +1,29 @@ -#!/bin/bash -# from the PiStar servers... -wget http://www.pistar.uk/downloads/DPlus_Hosts.txt -wget http://www.pistar.uk/downloads/DExtra_Hosts.txt -wget http://www.pistar.uk/downloads/DCS_Hosts.txt -/bin/rm -f gwys.txt - -echo "# Downloaded from www.pistar.uk `date`" > gwys.txt -awk '$1 ~ /^REF/ { printf "%s %s 20001\n", $1, $2 }' DPlus_Hosts.txt >> gwys.txt -awk '$1 ~ /^XRF/ { printf "%s %s 30001\n", $1, $2 }' DExtra_Hosts.txt >> gwys.txt -awk '$1 ~ /^DCS/ { printf "%s %s 30051\n", $1, $2 }' DCS_Hosts.txt >> gwys.txt - -/bin/rm -f D{Extra,Plus,DCS}_Hosts.txt +#/bin/bash + +# Get the big list from Ramesh (VA3UV) and extract the DCS, DStar and XReflectors only. +# Put XREF reflectors on port 20001 so they will use DPlus linking! +# +# 73 +# +# Tom, n7tae (at) arrl (dot) net + +if [ -e gwys.txt ]; then + mv -f gwys.txt gwys.txt.orig +fi + +rm -f gwys.va2uv.txt + +wget -nv -O gwys.va3uv.txt http://www.va3uv.com/gwys.txt + +if [ -e gwys.va3uv.txt ]; then + echo "# from www.va3uv.com on `date`" > gwys.txt + echo "Got `awk '$1~/^REF/{print $1, $2, $3}' gwys.va3uv.txt | tee -a gwys.txt | wc -l` REF reflectors" + echo "Got `awk '$1~/^XRF/{print $1, $2, $3}' gwys.va3uv.txt | tee -a gwys.txt | wc -l` XRF reflectors" + echo "Got `awk '$1~/^DCS/{print $1, $2, $3}' gwys.va3uv.txt | tee -a gwys.txt | wc -l` DCS reflectors" +else + echo "Could not get gateways list from www.va3uv.com!" + if [ -e gwys.txt.orig ]; then + mv -f gwys.txt.orig gwys.txt + fi +fi +