BUILDDIR=$HOME/.bap-source-files mkdir -p ${BUILDDIR} ################################## # DIPOLE CALC ################################## DIPOLE() { cd ${HOME}/bin || return wget --tries 2 --connect-timeout=60 https://raw.githubusercontent.com/km4ack/pi-scripts/master/dipole chmod +x dipole cat >dipole.desktop <getcall.desktop </dev/null; then sudo apt-get install -y bc fi cd ${HOME}/bin || return wget --tries 2 --connect-timeout=60 https://raw.githubusercontent.com/km4ack/pi-scripts/master/converttemp chmod +x converttemp cat >converttemp.desktop <showlog.desktop < /sys/class/i2c-adapter/i2c-1/new_device" | sudo tee -a /etc/rc.local >/dev/null 2>&1 echo "sudo hwclock -s" | sudo tee -a /etc/rc.local >/dev/null 2>&1 echo "date" | sudo tee -a /etc/rc.local >/dev/null 2>&1 echo "exit 0" | sudo tee -a /etc/rc.local >/dev/null 2>&1 yad --form --width=500 --text-align=center --center --title="Build-a-Pi" --text-align=center \ --image ${LOGO} --window-icon=${LOGO} --image-on-top --separator="|" --item-separator="|" \ --text="Real Time Clock has been installed and configured" \ --button=gtk-close fi fi #close first if/then statement } ################################## # PISTATS ################################## PISTATS() { cd ${BUILDDIR} || return CUR=$(curl http://www.w1hkj.com/PI/pistats.html | grep tgz | sed 's/^.*href="//;s/">.*//') wget http://www.w1hkj.com/PI/${CUR} tar -xzvf ${CUR} rm ${CUR} PISTATDIR=$(ls ${BUILDDIR} | grep pistats) cd ${PISTATDIR} || return sudo apt-get install -y libfltk1.3-dev make sudo mv pistats /usr/local/bin sudo mv ${BUILDDIR}/${PISTATDIR}/data/pistats.desktop /usr/share/applications/ make clean cd ${HOME} || return } ################################## # TELNET ################################## TELNET() { sudo apt install -y telnet } ################################## # PiQtTermTCP ################################## PITERM() { cd ${DIR} || return #determine if 32 or 64 bit and install correct dependencies. Thanks Ben,KU0HN! Reference: https://groups.io/g/bpq32/message/34486 if [ `getconf LONG_BIT` = '32' ]; then sudo apt install libqt5serialport5 else sudo dpkg --add-architecture armhf sudo apt update sudo apt install -y libqt5widgets5:armhf libqt5serialport5:armhf libasound2:armhf libasound2-plugins:armhf fi wget --tries 2 --connect-timeout=60 https://www.cantab.net/users/john.wiseman/Downloads/Beta/piQtTermTCP sudo chmod +x piQtTermTCP sudo mv piQtTermTCP /usr/local/bin/ cat >piqttermtcp.desktop <secure-file.desktop <ygate.desktop <bpq-config.desktop <${FILE} LinBPQ was installed during the build. You will find the config file generator under accessories 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 and the main LinBPQ web page at http://g8bpq.org.uk EOF } ################################## # Battery Test Script ################################## BATT() { cd ${HOME}/bin || return wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/batt-test chmod +x batt-test cat >battery-test.desktop <gpsupdate.desktop <${HOME}/Desktop/Block-Microsoft.txt You have chosen to install the removeMS script which will block the Pi from accessing the Microsoft repository. The block has not been applied yet. To apply the block, open a terminal window and run the following command: removeMS You only need to perform the block one time for each Pi. You can delete the removeMS script from your system by running: rm ~/bin/removeMS More information is available in this video https://youtu.be/I7jLVgnnUW0 EOF } ################################## # Packet Search ################################## PACKETSEARCH(){ cd ${HOME}/bin || return wget --tries 2 --connect-timeout=60 https://raw.githubusercontent.com/km4ack/pi-scripts/master/packetsearch chmod +x packetsearch cat > /run/user/$UID/packetsearch.desktop < /run/user/$UID/qtsoundmodem.desktop <