################################## # DIPOLE CALC ################################## DIPOLE() { cd ${HOME}/bin || exit 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 || exit 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 ${HOME} || exit CUR=$(curl -s http://www.w1hkj.com/pi3/ | grep .tgz | sed 's/.*pistats//' | sed 's/<\/a>
//') wget http://www.w1hkj.com/pi3/pistats${CUR} tar -xzvf pistats${CUR} rm pistats${CUR} PISTATDIR=$(ls ${HOME} | grep pistats) cd ${PISTATDIR} || exit sudo apt-get install -y libfltk1.3-dev make sudo mv pistats /usr/local/bin sudo mv ${HOME}/${PISTATDIR}/data/pistats.desktop /usr/share/applications/ cd ${HOME} || exit rm -rf "${PISTATDIR}" } ################################## # TELNET ################################## TELNET() { sudo apt install -y telnet } ################################## # PiQtTermTCP ################################## PITERM() { cd ${DIR} || exit wget 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 || exit 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 }