From 5e81de727a9dd48c5cc08672b070484094682c7f Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Sep 2020 10:34:20 -0500 Subject: [PATCH 01/43] fix issue #139 --- functions/utility.function | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 3bdd665..77ab102 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -119,8 +119,10 @@ yad --form --width=500 --text-align=center --center --title="Build-a-Pi" --text- --image $LOGO --window-icon=$LOGO --image-on-top --separator="|" --item-separator="|" \ --text="Real Time Clock already installed" \ --button=gtk-close -exit 1 -fi +#exit statement here causes script to exit without finishing. Reference link next line +#https://github.com/km4ack/pi-build/issues/139 + +else IC2ACTIVE=$(ls /dev/*i2c*) @@ -183,6 +185,7 @@ yad --form --width=500 --text-align=center --center --title="Build-a-Pi" --text- --button=gtk-close fi +fi #close first if/then statement } From e04c0027e6d69e5af4d6b74f5d6af6b8ce8cb215 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Sep 2020 13:27:03 -0500 Subject: [PATCH 02/43] add telnet --- functions/utility.function | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 77ab102..d3565f6 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -208,8 +208,12 @@ cd $HOME rm -rf $PISTATDIR } - - +################################## +# TELNET +################################## +TELNET(){ +sudo apt install -y telnet +} From fa9adebaef8acdb0e180eec0be26ad7625489881 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Sep 2020 13:30:27 -0500 Subject: [PATCH 03/43] add telnet --- build-a-pi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index bd8854b..0561c95 100755 --- a/build-a-pi +++ b/build-a-pi @@ -416,6 +416,7 @@ false "TEMPCONVERT" "Temperature Converter" \ false "GPARTED" "Disk Utility Tool" \ false "SHOWLOG" "Log file viewer" \ false "PISTATS" "Pi3/4 Stats Monitor" \ +false "TELNET" "Telnet Protocol" \ --button="Exit":1 \ --button="Check All and Continue":3 \ --button="Install Selected":2 > $UTILITY @@ -425,7 +426,7 @@ exit fi if [ $BUT = 3 ]; then -UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS) +UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET) for i in "${UTILAPPS[@]}" do echo "$i" >> $UTILITY From dbbd10d277b8d3688cccbba5e3a6204ce6877817 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Sep 2020 13:34:08 -0500 Subject: [PATCH 04/43] add telnet --- update | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/update b/update index 52d2ae2..6686339 100755 --- a/update +++ b/update @@ -653,8 +653,26 @@ fi } +#----------------------------------------------------# +# TELNET +#----------------------------------------------------# +if ! hash telnet 2>/dev/null; then +TEL="Not Installed" +else +TEL="Installed" +fi CHECK +#################################################################### +#################################################################### +#################################################################### +#################################################################### +#################################################################### +#################################################################### +#################################################################### +#################################################################### +#################################################################### + ##################################### # Get User Call ##################################### @@ -909,6 +927,7 @@ false "GPARTED" "$GPARTED" "Disk Utility Application" \ false "RTC" "$RTC" "Real Time Clock" \ false "SHOWLOG" "$SHOWLOG" "Log File Viewer" \ false "PISTATS" "$PISTATS" "Pi3/4 Stats Monitor" \ +false "TELNET" "$TEL" "Telnet Protocol" \ --button="Exit":1 \ --button="Install/Update Selected":2 > $UTILITY BUT=$? From 3a803badbbdf9133a9794bb230e9d300710a6648 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Sep 2020 14:16:07 -0500 Subject: [PATCH 05/43] add piQtTermTCP --- functions/utility.function | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index d3565f6..26801d1 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -215,8 +215,30 @@ TELNET(){ sudo apt install -y telnet } - - +################################## +# PiQtTermTCP +################################## +PITERM(){ +cd $DIR +wget https://www.cantab.net/users/john.wiseman/Downloads/Beta/piQtTermTCP +sudo chmod +x piQtTermTCP +sudo mv piQtTermTCP /usr/local/bin/ + +cat > piqttermtcp.desktop < Date: Thu, 24 Sep 2020 14:18:33 -0500 Subject: [PATCH 06/43] add piQtTermTCP --- build-a-pi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index 0561c95..0e5d2db 100755 --- a/build-a-pi +++ b/build-a-pi @@ -417,6 +417,7 @@ false "GPARTED" "Disk Utility Tool" \ false "SHOWLOG" "Log file viewer" \ false "PISTATS" "Pi3/4 Stats Monitor" \ false "TELNET" "Telnet Protocol" \ +false "PITERM" "piQtTermTCP Terminal Program" \ --button="Exit":1 \ --button="Check All and Continue":3 \ --button="Install Selected":2 > $UTILITY @@ -426,7 +427,7 @@ exit fi if [ $BUT = 3 ]; then -UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET) +UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM) for i in "${UTILAPPS[@]}" do echo "$i" >> $UTILITY From 413acd08f358d124e6494342c0ccd80189d4f4b5 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Sep 2020 14:22:28 -0500 Subject: [PATCH 07/43] add piQtTermTCP --- update | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/update b/update index 6686339..270cd2f 100755 --- a/update +++ b/update @@ -662,6 +662,15 @@ else TEL="Installed" fi +#----------------------------------------------------# +# piQtTermTCP +#----------------------------------------------------# +if [ -f /usr/local/bin/piQtTermTCP ]; then +PITERM="Installed" +else +PITERM="Not Installed" +fi + CHECK #################################################################### #################################################################### @@ -928,6 +937,7 @@ false "RTC" "$RTC" "Real Time Clock" \ false "SHOWLOG" "$SHOWLOG" "Log File Viewer" \ false "PISTATS" "$PISTATS" "Pi3/4 Stats Monitor" \ false "TELNET" "$TEL" "Telnet Protocol" \ +false "PITERM" "$PITERM" "PiQTermTCP Terminal Program" \ --button="Exit":1 \ --button="Install/Update Selected":2 > $UTILITY BUT=$? From d2d35d52291f8d5bf2cb1d58d2a731768f410026 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Sep 2020 15:03:59 -0500 Subject: [PATCH 08/43] add security tools --- functions/utility.function | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 26801d1..01362cd 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -240,9 +240,30 @@ sudo mv piqttermtcp.desktop /usr/share/applications/ } - - - +################################## +# Security Tools +################################## +SECURITY(){ +cd $DIR +wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/security-tools +bash security-tools + +sudo mv $HOME/bin/securefile /usr/local/bin + +cat > secure-file.desktop < Date: Thu, 24 Sep 2020 15:06:08 -0500 Subject: [PATCH 09/43] add security tools --- build-a-pi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index 0e5d2db..fb56ba5 100755 --- a/build-a-pi +++ b/build-a-pi @@ -418,6 +418,7 @@ false "SHOWLOG" "Log file viewer" \ false "PISTATS" "Pi3/4 Stats Monitor" \ false "TELNET" "Telnet Protocol" \ false "PITERM" "piQtTermTCP Terminal Program" \ +false "SECURITY" "File Encryption Software" \ --button="Exit":1 \ --button="Check All and Continue":3 \ --button="Install Selected":2 > $UTILITY @@ -427,7 +428,7 @@ exit fi if [ $BUT = 3 ]; then -UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM) +UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY) for i in "${UTILAPPS[@]}" do echo "$i" >> $UTILITY From b5768bba8ce00d3b872c41bb5350250ac72e5b02 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Sep 2020 15:10:36 -0500 Subject: [PATCH 10/43] add security tools --- update | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/update b/update index 270cd2f..d42a294 100755 --- a/update +++ b/update @@ -671,6 +671,15 @@ else PITERM="Not Installed" fi +#----------------------------------------------------# +# Security Tools +#----------------------------------------------------# +if [ -f /usr/local/bin/securefile ]; then +SECURITY="Installed" +else +SECURITY="Not Installed" +fi + CHECK #################################################################### #################################################################### @@ -938,6 +947,7 @@ false "SHOWLOG" "$SHOWLOG" "Log File Viewer" \ false "PISTATS" "$PISTATS" "Pi3/4 Stats Monitor" \ false "TELNET" "$TEL" "Telnet Protocol" \ false "PITERM" "$PITERM" "PiQTermTCP Terminal Program" \ +false "SECURITY" "$SECURITY" "File Encryption Software" \ --button="Exit":1 \ --button="Install/Update Selected":2 > $UTILITY BUT=$? From 0df2d387ecc6c80abdca892458dccd2c44010e2d Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Fri, 25 Sep 2020 07:29:49 -0500 Subject: [PATCH 11/43] add direwolf ptt --- functions/base.function | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/base.function b/functions/base.function index 8da4042..3cb4812 100644 --- a/functions/base.function +++ b/functions/base.function @@ -121,6 +121,7 @@ sudo make install make install-conf sed -i "s/N0CALL/$CALL/" "$HOME/direwolf.conf" sed -i 's/# ADEVICE plughw:1,0/ADEVICE plughw:2,0/' $HOME/direwolf.conf +sed -i '/#PTT\ \/dev\/ttyUSB0\ RTS/a #Uncomment line below for PTT with sabrent sound card\n#PTT RIG 2 localhost:4532' $HOME/direwolf.conf rm -rf $HOME/direwolf } From d879300670cca8229c6f8fd76404546de077155c Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Fri, 25 Sep 2020 17:21:03 -0500 Subject: [PATCH 12/43] fix body write fail --- update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update b/update index d42a294..1e18e1b 100755 --- a/update +++ b/update @@ -62,7 +62,7 @@ mkdir -p $HOME/.config/autostart echo "Checking for Build a Pi updates" CURRENT=$(head -1 $MYPATH/changelog | sed s'/version=//') -LATEST=$(curl -s https://raw.githubusercontent.com/km4ack/pi-build/master/changelog | head -1 | sed 's/version=//') +LATEST=$(curl -s https://raw.githubusercontent.com/km4ack/pi-build/master/changelog | tac | tac | head -1 | sed 's/version=//') if (( $(echo "$LATEST $CURRENT" | awk '{print ($1 > $2)}') )) then From ca1e0f350e946e295136e5496c633e88fefa08d6 Mon Sep 17 00:00:00 2001 From: Chris Bosse <30784811+chrisBosse@users.noreply.github.com> Date: Fri, 9 Oct 2020 22:23:06 -0400 Subject: [PATCH 13/43] Fix conky get-vfo with patmenu2 update --- conky/get-vfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conky/get-vfo b/conky/get-vfo index eaf4580..89b0671 100755 --- a/conky/get-vfo +++ b/conky/get-vfo @@ -3,7 +3,7 @@ #get VFO of radio to display in conky #20200428 -source "$HOME/patmenu/config" +source "$HOME/patmenu2/config" MAIN () { From eac576606288f903f2c92fcab8df35af64246d77 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Sun, 11 Oct 2020 14:49:59 -0500 Subject: [PATCH 14/43] touch dnsmasq.leases file --- functions/additional.function | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/additional.function b/functions/additional.function index 500f8dd..40b56b8 100644 --- a/functions/additional.function +++ b/functions/additional.function @@ -121,6 +121,7 @@ CONKY(){ sudo apt install -y conky fi touch $HOME/Documents/mylog.txt #conky will fail to load if this file doesn't exist +touch /var/lib/misc/dnsmasq.leases #conky will fail to load if this file doesn't exist sudo apt-get install -y ruby2.5 sudo gem install gpsd_client sudo gem install maidenhead From a9acccf70a52be2cd21570c8b490dd3d72b5a9d8 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Sun, 11 Oct 2020 14:54:16 -0500 Subject: [PATCH 15/43] fix #155 --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index d2491eb..68272c1 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,7 @@ For Pat Winlink: Winlink Password & Grid Square # Install -This script is intended to run on a brand new installation of Buster. It should not be run on a pi that you have already started installing applications on. Install additional apps that you require after running this script.\ -\ -Get Debian Buster from https://cdimage.debian.org/debian-cd/current/arm64/iso-cd/ file debian-10.4.0-arm64-xfce-CD-1.iso -NOTE: The Debian Buster arm64 image does not come with RealVNC server pre-installed, as it does with Raspbian. The reason is that RealVNC package is currently compiled for the armhf version of libbcm_host.so, which is a hook into the Broadcom GPU chip. As of 2020-06-27, it is not yet possible to get Debian Buster ARM64 to work with VNC. - -If this is a problem for you, then you will need to download Raspberry Pi OS (previously called Rasbian) 32-bit from https://downloads.raspberrypi.org/raspios_armhf_latest +Download Raspberry Pi OS (previously called Rasbian) 32-bit from https://downloads.raspberrypi.org/raspios_armhf_latest Use a USB flash application such as Balena Etcher to copy the iso file to a USB key, get it at https://www.balena.io/etcher/ From f7d3cf2a7a05fcdc05b7e4b2acbdc738ac895742 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Sun, 11 Oct 2020 17:27:42 -0500 Subject: [PATCH 16/43] fix #142 --- functions/utility.function | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 01362cd..ebbb5fc 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -244,7 +244,7 @@ sudo mv piqttermtcp.desktop /usr/share/applications/ # Security Tools ################################## SECURITY(){ -cd $DIR +cd $HOME/bin wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/security-tools bash security-tools @@ -265,8 +265,28 @@ EOF sudo mv secure-file.desktop /usr/share/applications/ } - - +################################## +# YGATE +################################## +YGATE(){ +cd $HOME/bin +wget https://raw.githubusercontent.com/craigerl/ygate/master/ygate.py +chmod +x ygate + +cat > ygate.desktop < Date: Sun, 11 Oct 2020 17:39:18 -0500 Subject: [PATCH 17/43] add ygate --- build-a-pi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index fb56ba5..35d103f 100755 --- a/build-a-pi +++ b/build-a-pi @@ -419,6 +419,7 @@ false "PISTATS" "Pi3/4 Stats Monitor" \ false "TELNET" "Telnet Protocol" \ false "PITERM" "piQtTermTCP Terminal Program" \ false "SECURITY" "File Encryption Software" \ +false "YGATE" "Yaesu APRS Software" \ --button="Exit":1 \ --button="Check All and Continue":3 \ --button="Install Selected":2 > $UTILITY @@ -428,7 +429,7 @@ exit fi if [ $BUT = 3 ]; then -UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY) +UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY YGATE) for i in "${UTILAPPS[@]}" do echo "$i" >> $UTILITY From d6bcbe5461c5c0ac5e6f34b259e3a5b91a580ece Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Sun, 11 Oct 2020 17:45:59 -0500 Subject: [PATCH 18/43] add ygate --- update | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/update b/update index 1e18e1b..4484fd2 100755 --- a/update +++ b/update @@ -680,6 +680,16 @@ else SECURITY="Not Installed" fi +#----------------------------------------------------# +# YGATE +#----------------------------------------------------# +YGATE="$HOME/bin/ygate.py" +if [ ! -f "$YGATE" ]; then +YGATE="Not Installed" +else +YGATE="Installed" +fi + CHECK #################################################################### #################################################################### @@ -948,6 +958,7 @@ false "PISTATS" "$PISTATS" "Pi3/4 Stats Monitor" \ false "TELNET" "$TEL" "Telnet Protocol" \ false "PITERM" "$PITERM" "PiQTermTCP Terminal Program" \ false "SECURITY" "$SECURITY" "File Encryption Software" \ +false "YGATE" "$YGATE" "Yaesu APRS Software" \ --button="Exit":1 \ --button="Install/Update Selected":2 > $UTILITY BUT=$? From 089d3c1f3d9eba32346792676e409db7f2efb0ed Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Sun, 11 Oct 2020 17:47:43 -0500 Subject: [PATCH 19/43] fix path --- functions/utility.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/utility.function b/functions/utility.function index ebbb5fc..f9a5f19 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -278,7 +278,7 @@ cat > ygate.desktop < Date: Sun, 11 Oct 2020 18:16:21 -0500 Subject: [PATCH 20/43] fix #156 --- functions/base.function | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/functions/base.function b/functions/base.function index 3cb4812..acafff9 100644 --- a/functions/base.function +++ b/functions/base.function @@ -53,6 +53,21 @@ rm $DIR/gpsinstall #GPS Variable set by main script or update script #and placed in config file sudo sed -i "s|DEVICES.*$|DEVICES=\"$GPS\"|g" /etc/default/gpsd + +#add xgps to menu +cat > xgps.desktop < Date: Sun, 11 Oct 2020 18:16:36 -0500 Subject: [PATCH 21/43] update --- functions/utility.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/utility.function b/functions/utility.function index f9a5f19..5929bee 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -271,7 +271,7 @@ sudo mv secure-file.desktop /usr/share/applications/ YGATE(){ cd $HOME/bin wget https://raw.githubusercontent.com/craigerl/ygate/master/ygate.py -chmod +x ygate +chmod +x ygate.py cat > ygate.desktop < Date: Tue, 13 Oct 2020 16:14:10 -0500 Subject: [PATCH 22/43] add linbpq --- functions/utility.function | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 5929bee..d3601e9 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -289,10 +289,34 @@ sudo mv ygate.desktop /usr/share/applications/ } - - - - +################################## +# BPQ +################################## +BPQ(){ +#install LinBPQ +cd +wget http://www.cantab.net/users/john.wiseman/Downloads/installLinRMS +chmod +x installLinRMS +./installLinRMS + +#install BPQ config generator +cd $HOME/linbpq +wget https://www.cantab.net/users/john.wiseman/Downloads/Beta/piBPQConfigGen +chmod +x piBPQConfigGen + +cat > bpq-config.desktop < Date: Tue, 13 Oct 2020 17:09:08 -0500 Subject: [PATCH 23/43] add bpq readme --- functions/utility.function | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/functions/utility.function b/functions/utility.function index d3601e9..7519349 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -316,6 +316,32 @@ Categories=Utility EOF sudo mv bpq-config.desktop /usr/share/applications/ + +#add LinBPQ-README to desktop +FILE=$HOME/Desktop/LinBPQ-README +touch $FILE +cat << EOF > $FILE +LinBPQ was installed during the build. +You will find the config file generator +under utilities in the main pi menu. +NO CONFIGURATION was done for LinBPQ +during the build. Each individual +operator is responsible for configuring +his/her station. + +After completing the config file, you can +start LinBPQ from the command line by running: +~/linbpq/.linbpq + +Depending on your station setup, you may +need to start rig control, direwolf, or +other applications before running LinBPQ. + +If you need help, you can find +the LinBPQ forums at +https://groups.io/g/bpq32/topics +EOF + } From 6f8c13d5b20757ddf761b6fc5e20b249dab83851 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Tue, 13 Oct 2020 17:29:40 -0500 Subject: [PATCH 24/43] update bpq install --- functions/utility.function | 47 +++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 7519349..8d8d277 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -293,12 +293,51 @@ sudo mv ygate.desktop /usr/share/applications/ # BPQ ################################## BPQ(){ +source $HOME/pi-build/config #install LinBPQ cd -wget http://www.cantab.net/users/john.wiseman/Downloads/installLinRMS -chmod +x installLinRMS -./installLinRMS +########################################################################## +#commands below this line were taken from John Wiseman's install script. +#and modded to pull the operators call sign from the BAP config file. +#http://www.cantab.net/users/john.wiseman/Downloads/installLinRMS +########################################################################## + export LINBPQ=pilinbpq; + export APRS=piBPQAPRS +echo "Downloading $LINBPQ and $APRS to linbpq and bpqaprs" +mkdir linbpq +cd linbpq +wget -nv http://www.cantab.net/users/john.wiseman/Downloads/Beta/$LINBPQ -O linbpq +chmod +x linbpq +wget -nv http://www.cantab.net/users/john.wiseman/Downloads/Beta/$APRS -O bpqaprs +chmod +x bpqaprs + +echo "Downloading config files" + +wget -nv http://www.cantab.net/users/john.wiseman/Downloads/SimpleRMSGateway_bpq32.cfg -O bpq32.cfg + +echo "Downloading HTML Files" + +mkdir HTML +cd HTML +wget -nv http://www.cantab.net/users/john.wiseman/Downloads/Beta/HTMLPages.zip +unzip -o -q HTMLPages.zip +rm HTMLPages.zip +cd .. +wget -nv http://www.cantab.net/users/john.wiseman/Downloads/LinBPQAPRS.zip +unzip -o -q LinBPQAPRS.zip +rm LinBPQAPRS.zip + +echo "Updating your callsign in configuration files" + +#read -e -p "Enter Your Callsign (Without SSID): " CALL +CALL=$(echo "$CALL" | tr '[:lower:]' '[:upper:]') + +sed -i "s/MYCALL/$CALL/g" bpq32.cfg + +##################################################### +#End John Wiseman install script +##################################################### #install BPQ config generator cd $HOME/linbpq wget https://www.cantab.net/users/john.wiseman/Downloads/Beta/piBPQConfigGen @@ -340,6 +379,8 @@ other applications before running LinBPQ. If you need help, you can find the LinBPQ forums at https://groups.io/g/bpq32/topics +and the main LinBPQ web page at +http://g8bpq.org.uk EOF } From c3ce42307f24947af250170ffd86aeb198b31162 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 11:27:36 -0500 Subject: [PATCH 25/43] add BPQ --- update | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/update b/update index 4484fd2..7ea1286 100755 --- a/update +++ b/update @@ -690,6 +690,16 @@ else YGATE="Installed" fi +#----------------------------------------------------# +# BPQ +#----------------------------------------------------# +BPQ="$HOME/linbpq/linbpq" +if [ ! -f "$BPQ" ]; then +BPQ="Not Installed" +else +BPQ="Installed" +fi + CHECK #################################################################### #################################################################### @@ -959,6 +969,7 @@ false "TELNET" "$TEL" "Telnet Protocol" \ false "PITERM" "$PITERM" "PiQTermTCP Terminal Program" \ false "SECURITY" "$SECURITY" "File Encryption Software" \ false "YGATE" "$YGATE" "Yaesu APRS Software" \ +false "BPQ" "$BPQ" "LinBPQ Software" \ --button="Exit":1 \ --button="Install/Update Selected":2 > $UTILITY BUT=$? From 28c484b83417e3fa86fe579dbc47f8053f3069a7 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 11:33:27 -0500 Subject: [PATCH 26/43] add bpq --- build-a-pi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index 35d103f..c2a4ba0 100755 --- a/build-a-pi +++ b/build-a-pi @@ -420,6 +420,7 @@ false "TELNET" "Telnet Protocol" \ false "PITERM" "piQtTermTCP Terminal Program" \ false "SECURITY" "File Encryption Software" \ false "YGATE" "Yaesu APRS Software" \ +false "BPQ" "LinBPQ Software" \ --button="Exit":1 \ --button="Check All and Continue":3 \ --button="Install Selected":2 > $UTILITY @@ -429,7 +430,7 @@ exit fi if [ $BUT = 3 ]; then -UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY YGATE) +UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY YGATE BPQ) for i in "${UTILAPPS[@]}" do echo "$i" >> $UTILITY From 7e08412857dc3d7f23e69b09d66e695dc15f034c Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 11:41:42 -0500 Subject: [PATCH 27/43] add batt-test --- functions/utility.function | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 8d8d277..4cf773e 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -278,7 +278,7 @@ cat > ygate.desktop < bpq-config.desktop < battery-test.desktop < Date: Wed, 14 Oct 2020 11:55:18 -0500 Subject: [PATCH 28/43] fix #105 --- conky/conky-7inch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conky/conky-7inch b/conky/conky-7inch index 3eecb94..7f71880 100644 --- a/conky/conky-7inch +++ b/conky/conky-7inch @@ -25,7 +25,7 @@ no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 1 -override_utf8_locale no +override_utf8_locale yes use_spacer right TEXT From 6fdf4a5ac33986d25d454e22ada60a462815ad67 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 11:56:00 -0500 Subject: [PATCH 29/43] fix #105 --- conky/conky-large | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conky/conky-large b/conky/conky-large index c2ecf84..2ab645d 100644 --- a/conky/conky-large +++ b/conky/conky-large @@ -26,7 +26,7 @@ conky.config = { uppercase = false, cpu_avg_samples = 2, net_avg_samples = 1, - override_utf8_locale = false, + override_utf8_locale = true, use_spacer = 'right', }; From 26f0c35961a26d9f18f829bfcec7b2c8a5c1954d Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 11:56:16 -0500 Subject: [PATCH 30/43] fix #105 --- conky/conky-medium | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conky/conky-medium b/conky/conky-medium index 8b93776..7b2327e 100644 --- a/conky/conky-medium +++ b/conky/conky-medium @@ -26,7 +26,7 @@ conky.config = { uppercase = false, cpu_avg_samples = 2, net_avg_samples = 1, - override_utf8_locale = false, + override_utf8_locale = true, use_spacer = 'right', }; From 300e4f901bdd7c3a78b7cadb7e1e4a9140056193 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 11:56:29 -0500 Subject: [PATCH 31/43] fix #105 --- conky/conky-small | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conky/conky-small b/conky/conky-small index 958e046..b6ce8dc 100644 --- a/conky/conky-small +++ b/conky/conky-small @@ -26,7 +26,7 @@ conky.config = { uppercase = false, cpu_avg_samples = 2, net_avg_samples = 1, - override_utf8_locale = false, + override_utf8_locale = true, use_spacer = 'right', }; From 53abaec9ba7d28d9fd7069c02f6fb89a67363957 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 12:16:57 -0500 Subject: [PATCH 32/43] add matchbox keyboar --- functions/utility.function | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 4cf773e..d501e1a 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -408,8 +408,12 @@ sudo mv battery-test.desktop /usr/share/applications/ } - - +################################## +# Matchbox Keyboard +################################## +MATCHBOX(){ +sudo apt isntall -y matchbox-keyboard +} From 43ca61e56d6fcbd4b1735122b7a20a28db86567d Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 17:55:11 -0500 Subject: [PATCH 33/43] remove matchbox keyboard --- functions/utility.function | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index d501e1a..5f22c11 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -408,12 +408,7 @@ sudo mv battery-test.desktop /usr/share/applications/ } -################################## -# Matchbox Keyboard -################################## -MATCHBOX(){ -sudo apt isntall -y matchbox-keyboard -} + From 98acb1d8d5d04b10f1823de15377acc9899494d5 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 18:07:11 -0500 Subject: [PATCH 34/43] add batt test script --- build-a-pi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index c2a4ba0..8bead39 100755 --- a/build-a-pi +++ b/build-a-pi @@ -421,6 +421,7 @@ false "PITERM" "piQtTermTCP Terminal Program" \ false "SECURITY" "File Encryption Software" \ false "YGATE" "Yaesu APRS Software" \ false "BPQ" "LinBPQ Software" \ +false "BATT" "Battery Test Script" \ --button="Exit":1 \ --button="Check All and Continue":3 \ --button="Install Selected":2 > $UTILITY @@ -430,7 +431,7 @@ exit fi if [ $BUT = 3 ]; then -UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY YGATE BPQ) +UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY YGATE BPQ BATT) for i in "${UTILAPPS[@]}" do echo "$i" >> $UTILITY From c38ee2c5b95cc0b815bc940ebd7d29b9c8181410 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 18:07:21 -0500 Subject: [PATCH 35/43] add batt test script --- update | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/update b/update index 7ea1286..d1925c8 100755 --- a/update +++ b/update @@ -700,6 +700,16 @@ else BPQ="Installed" fi +#----------------------------------------------------# +# Battery Test Script :: BATT +#----------------------------------------------------# +BATT="$HOME/bin/batt-test" +if [ ! -f "$BATT" ]; then +BATT="Not Installed" +else +BATT="Installed" +fi + CHECK #################################################################### #################################################################### @@ -970,6 +980,7 @@ false "PITERM" "$PITERM" "PiQTermTCP Terminal Program" \ false "SECURITY" "$SECURITY" "File Encryption Software" \ false "YGATE" "$YGATE" "Yaesu APRS Software" \ false "BPQ" "$BPQ" "LinBPQ Software" \ +false "BATT" "$BATT" "Battery Test Script" \ --button="Exit":1 \ --button="Install/Update Selected":2 > $UTILITY BUT=$? From 2e511a50469ed9774c2c6d94504c2482feca9490 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 18:09:48 -0500 Subject: [PATCH 36/43] remove jtdx see #153 --- build-a-pi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build-a-pi b/build-a-pi index 8bead39..1b9543b 100755 --- a/build-a-pi +++ b/build-a-pi @@ -341,7 +341,6 @@ false "PAT-MENU" "Control for Pat Winlink" \ false "JS8CALL" "Weak Signal Digital Mode Software" \ false "M0IAX" "Tools for JS8Call Messages" \ false "WSJTX" "Weak Signal Digital Mode Software" \ -false "JTDX" "Weak Signal Digital Mode Software" \ false "PYQSO" "Logging Software" \ false "CQRLOG" "Logging Software" \ false "XLOG" "Logging Software" \ @@ -365,7 +364,7 @@ fi if [ $BUT = 3 ]; then ADDAPPS=(CONKY PI-APRS CHIRP GARIM PAT PAT-MENU JS8CALL M0IAX WSJTX PYQSO \ CQRLOG EES QSSTV GRIDTRACKER HAMCLOCK PROPAGATION YAAC XASTIR GPREDICT TQSL \ -XLOG JTDX) +XLOG) for i in "${ADDAPPS[@]}" do From 22f9574e7237f82a129f1df78151e51d027ec5a0 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 18:10:06 -0500 Subject: [PATCH 37/43] remove jtdx see #153 --- update | 1 - 1 file changed, 1 deletion(-) diff --git a/update b/update index d1925c8..fcac57a 100755 --- a/update +++ b/update @@ -908,7 +908,6 @@ false "GARIM" "$GARIM" "File Transfer Program " \ false "M0IAX" "$M0IAX" "Tools for JS8Call messages" \ false "CONKY" "$CONKY" "System Information Display" \ false "WSJTX" "$FT8" "Weak signal digital mode software" \ -false "JTDX" "$JTDX" "Weak signal digital mode software" \ false "JS8CALL" "$JS8" "Weak signal digital mode software" \ false "XASTIR" "$XASTIR" "APRS Client" \ false "YAAC" "$YAAC" "Yet Another APRS Client" \ From 8252b8df2547e80f6e301aba9bdf188e11b5c2c2 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 18:14:10 -0500 Subject: [PATCH 38/43] add note to jtdx see #153 --- functions/additional.function | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/additional.function b/functions/additional.function index 40b56b8..bdd6655 100644 --- a/functions/additional.function +++ b/functions/additional.function @@ -555,6 +555,10 @@ fi ################################## # JTDX ################################## +#This code is left in place but no option is given during inital +#run or update because the jtdx website is down. +#see https://github.com/km4ack/pi-build/issues/153 +#14OCT2020 KM4ACK JTDX(){ cd $HOME From da905f594fd753c7be2717dae52aa3425afaad4a Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 14 Oct 2020 18:17:38 -0500 Subject: [PATCH 39/43] update --- changelog | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index a6b4e32..17bc2cb 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,21 @@ -version=3.0.4 +version=3.0.5 + +3.0.5 Fix RTC https://github.com/km4ack/pi-build/issues/139 + Add Telnet https://github.com/km4ack/pi-build/issues/129 + Fix GPS conflict https://github.com/km4ack/pi-build/issues/146 + Add Security Tool File Encryption https://github.com/km4ack/pi-build/issues/148 + Add PTT command to direwolf.conf (commented out by default) + Fix curl "body write fail" in update script + Fix https://github.com/km4ack/pi-build/issues/152 + Fix https://github.com/km4ack/pi-build/issues/155 + Add YGATE - https://github.com/craigerl/ygate/blob/master/ygate.py + Add XGPS menu item - https://github.com/km4ack/pi-build/issues/156 + update README.md + add LinBPQ + fix https://github.com/km4ack/pi-build/issues/105 (Conky display issue) + add Battery Test Script + add piQtTermTCP + Remove JTDX (Website Down) see - https://github.com/km4ack/pi-build/issues/153 3.0.4 Add gitignore Fix Issue #109 https://github.com/km4ack/pi-build/issues/109 From 500fda01dd25b0549b25f68b8d8bf61b82274e4d Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 15 Oct 2020 07:04:44 -0500 Subject: [PATCH 40/43] add vnc viewer --- functions/utility.function | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index 5f22c11..d3349a2 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -408,8 +408,18 @@ sudo mv battery-test.desktop /usr/share/applications/ } - - +################################## +# VNC Viewer +################################## +VNC(){ +cd $HOME +PACKAGE=$(curl -s https://www.realvnc.com/en/connect/download/viewer/raspberrypi/ | grep .deb | awk '{print $2}' | \ +sed 's/href="\/download\/file\/viewer.files\///' | sed 's/"//') + +wget https://realvnc.com/download/file/viewer.files/$PACKAGE +sudo dpkg -i $PACKAGE +rm $PACKAGE +} From 7b4d66fdd7b34bb4bd418dc21b6f2387a51e7941 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 15 Oct 2020 07:39:59 -0500 Subject: [PATCH 41/43] add vnc client --- build-a-pi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index 1b9543b..dba8734 100755 --- a/build-a-pi +++ b/build-a-pi @@ -421,6 +421,7 @@ false "SECURITY" "File Encryption Software" \ false "YGATE" "Yaesu APRS Software" \ false "BPQ" "LinBPQ Software" \ false "BATT" "Battery Test Script" \ +false "VNC" "VNC Client Application" \ --button="Exit":1 \ --button="Check All and Continue":3 \ --button="Install Selected":2 > $UTILITY @@ -430,7 +431,7 @@ exit fi if [ $BUT = 3 ]; then -UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY YGATE BPQ BATT) +UTILAPPS=(DIPOLE CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM SECURITY YGATE BPQ BATT VNC) for i in "${UTILAPPS[@]}" do echo "$i" >> $UTILITY From f629dd35b7535fc024b8aa21d8b786fcd997b9f7 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 15 Oct 2020 07:42:45 -0500 Subject: [PATCH 42/43] add vnc viewer --- update | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/update b/update index fcac57a..c707aee 100755 --- a/update +++ b/update @@ -710,6 +710,15 @@ else BATT="Installed" fi +#----------------------------------------------------# +# VNC Viewer +#----------------------------------------------------# +if ! hash vncviewer 2>/dev/null; then +VNC="Not Installed" +else +VNC="Installed" +fi + CHECK #################################################################### #################################################################### @@ -980,6 +989,7 @@ false "SECURITY" "$SECURITY" "File Encryption Software" \ false "YGATE" "$YGATE" "Yaesu APRS Software" \ false "BPQ" "$BPQ" "LinBPQ Software" \ false "BATT" "$BATT" "Battery Test Script" \ +false "VNC" "$VNC" "VNC Viewer Application" \ --button="Exit":1 \ --button="Install/Update Selected":2 > $UTILITY BUT=$? From a6f23ffde9dbde6b3d9e5e065b36cf1d53020fc3 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 15 Oct 2020 07:43:25 -0500 Subject: [PATCH 43/43] update --- changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog b/changelog index 17bc2cb..58474c1 100644 --- a/changelog +++ b/changelog @@ -16,6 +16,7 @@ version=3.0.5 add Battery Test Script add piQtTermTCP Remove JTDX (Website Down) see - https://github.com/km4ack/pi-build/issues/153 + add VNC viewer 3.0.4 Add gitignore Fix Issue #109 https://github.com/km4ack/pi-build/issues/109