Merge pull request #386 from km4ack/beta

Beta
pull/396/head
KM4ACK 2022-03-14 09:32:28 -05:00 zatwierdzone przez GitHub
commit 27438b4915
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
6 zmienionych plików z 134 dodań i 39 usunięć

Wyświetl plik

@ -5,8 +5,7 @@ Rather than downloading a pre-built image where you have no choices in the build
Pi gives you complete control over the build. It allows you to choose the applications you
want to install and skip the ones you dont need. This keeps your pi as lean and mean as
possible. A list of applications available using Build-a-Pi can be found below on this
page. Use it as your base and add additional applications as needed down the road. Videos
coming soon
page. Use it as your base and add additional applications as needed down the road.
# Needed info for pi build
@ -19,43 +18,46 @@ For Pat Winlink:
Winlink Password & Grid Square
# Install
Download Raspberry Pi OS (previously called Rasbian) 32-bit from https://downloads.raspberrypi.org/raspios_armhf_latest
Use [Raspberry Pi Imager](https://www.raspberrypi.com/software/) to download and flash your micro SD card. Once complete, put the SD card into the pi.
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/
Power up your Raspberry Pi, login, and in your home directory, run the following command
Power up your Raspberry Pi, login, open the terminal, and run the following command.
git clone https://github.com/km4ack/pi-build.git \
$HOME/pi-build && bash $HOME/pi-build/build-a-pi
Additional help can be found in the video below.
# Video
[![IMAGE ALT TEXT](https://img.youtube.com/vi/GkGcu6WaWsc/0.jpg)](https://youtu.be/GkGcu6WaWsc "Build a Pi")
[![IMAGE ALT TEXT](https://img.youtube.com/vi/AjzLp6OMyVk/0.jpg)](https://youtu.be/AjzLp6OMyVk "Build a Pi")
[![IMAGE ALT TEXT](https://img.youtube.com/vi/l4M9VVqGxoc/0.jpg)](https://youtu.be/l4M9VVqGxoc "Build a Pi")
# Issue Reporting - Feature Requests
Please report issues & feature requests here https://github.com/km4ack/pi-build/issues
Please report issues & feature requests here: https://github.com/km4ack/pi-build/issues
# BOINC FREE
# BOINC-FREE
Build a Pi has never and will not ever try to force any user to run BOINC (Berkeley Open Infrastructure for Network Computing). Build a pi has been always been about giving the end user a choice in the software they run. It is the reason Build a Pi isn't distrubuted as a pre built image. You have the final say in what you run on your pi. Install as little or as much as you choose. While it doesn't include as many apps as some of the pre-built images, it should give you a great base to work with and then you can add additional applications that may be important to you on top of Build a Pi. Want to run BOINC? Feel free because freedom is the basis of Build a Pi. The power is yours and yours alone.
Build-a-Pi has never, and will never, try to force any user to run BOINC (Berkeley Open Infrastructure for Network Computing). Build-a-Pi has always been about giving the end-user a choice in the software they run. It's also the reason Build-a-Pi isn't distrubuted as a pre-built image. You have the final say in what you run on your RPi. Install as little, or as much, as you choose. While it doesn't include as many apps as some of the pre-built images, Build-a-Pi should give you a great base to work with, then you can add additional applications that may be important to you on top. Want to run BOINC? Feel free because freedom is the basis of Build-a-Pi. The power is yours and yours alone.
# Available Apps to Install
#### RTC | Real Time Clock
Software for DS3231 real time clock (Available through update script after initial install)
Software for DS3231 real-time clock (Available through update script after initial install)
#### HOTSPOT:
Hotspot is used to generate a wifi hotspot that you can connect to with other wireless devices. This is useful when in the field so you can connect to and contol the pi from a wireless device.
Hotspot is used to generate a wifi hotspot that you can connect-to with other wireless devices. This is useful in the field, so you can connect-to and contol the RPi from a wireless device.
If enabled, the hotspot will only activate IF the Pi is not connected to a wireless network. The hotspot will either activate at bootup, OR a maximum of 5 minutes AFTER you have forcefully disconnected from a wireless network. You can tune that detection delay in the settings.
If enabled, the hotspot will only activate _IF_ the RPi is not already connected to a wireless network. The hotspot will either activate at bootup, _OR_ a maximum of 5 minutes AFTER you have forcefully disconnected from a wireless network. You can tune that detection delay in the settings.
The hotspot default SSID is *RpiHotspot* and the default IP address of the Pi is 10.10.10.10.
Make sure to enable either VNC or SSH server in order to remotely connect to your Pi at that address.
(Make sure to enable either VNC or SSH server to remotely connect to your RPi at that address!)
#### Hotspot Tools:
Hotspot tools is a collection of tools designed to make managing the hotspot easier through a GUI interface. https://youtu.be/O_eihSN_ES8
#### GPS:
This will install the needed utilities to get a GPS device configured as a time source on the pi. Helpful when you are not connected to the internet since the pi doesn't have a real time clock and therefore will NOT keep accurate time when powered off. Confirmed to work with this GPS https://amzn.to/2R9Muup Other GPS units may work but have not been tested.
This will install the needed utilities to get a GPS device configured as a time source on the RPi. Helpful when you are not connected to the Internet since the RPi doesn't have a real-time clock (RTC) and therefore will _NOT_ keep accurate time when powered-off. Confirmed to work with this GPS: https://amzn.to/2R9Muup Other GPS units may work, but have not been tested.
#### FLRIG:
Rig contol graphical interface. http://www.w1hkj.com/
@ -70,7 +72,7 @@ Forms manager for FLDIGI http://www.w1hkj.com/
Amateur Multicast Protocol - file transfer program http://www.w1hkj.com/
#### FLWRAP
file encapsulation / compression
File encapsulation & compression
#### PAT:
Winlink client for Raspberry Pi https://getpat.io/
@ -79,28 +81,29 @@ Winlink client for Raspberry Pi https://getpat.io/
Menu for configuring Pat. Recommended if installing Pat. https://github.com/km4ack/patmenu
#### ARDOPC:
HF modem for Pat. Recommended if installing Pat https://www.cantab.net/users/john.wiseman/Documents/ARDOPC.html
HF modem for Pat. Recommended if installing Pat. https://www.cantab.net/users/john.wiseman/Documents/ARDOPC.html
#### ARDOPGUI:
GUI interface for ARDOPC. Recommended if installing Pat
GUI interface for ARDOPC. Recommended if installing Pat.
#### DIREWOLF:
Software TNC. In this setup, direwolf is used for 2M packet connection with Pat and can be used for APRS connection with Xastir. Recommneded if installing Pat or Xastir https://github.com/wb2osz/direwolf/tree/master/doc
Software TNC. In this setup, Direwolf is used for a 2M packet connection with Pat, and can be used for APRS connection with Xastir. Recommended if installing Pat or Xastir. https://github.com/wb2osz/direwolf/tree/master/doc
#### AX25:
AX25 tools for Direwolf & Pat. Recommended if installing Pat.
AX.25 tools for Direwolf & Pat. Recommended if installing Pat.
#### HAMLIB:
Rig contol software. https://sourceforge.net/projects/hamlib/
#### PULSE:
Pulse audio. Provides a way to configure virtual sound cards. REQUIRED for AMRRON ops.
Pulse audio. Provides a way to configure virtual sound cards. REQUIRED for AMRRON ops.
(Get involved! https://amrron.com)
#### JS8:
JS8Call digital software https://js8call.com
JS8Call digital software. https://js8call.com
#### M0IAX:
Tools for working with JS8Call. Recommended if installing JS8Call https://github.com/m0iax/
Tools for working with JS8Call. Recommended if installing JS8Call. https://github.com/m0iax/
#### WSJTX:
FT8 & WISPR software suite. https://sourceforge.net/projects/wsjt/
@ -115,22 +118,22 @@ GUI interface useful when configuring APRS nodes. https://sourceforge.net/projec
Yet Another APRS Client GUI interface useful when configuring APRS nodes. https://www.ka2ddo.org/ka2ddo/YAAC.html
#### PYQSO:
Logging software https://github.com/ctjacobs/pyqso
Logging software. https://github.com/ctjacobs/pyqso
#### GPREDICT:
Satellite Tracking http://gpredict.oz9aec.net/
Satellite Tracking. http://gpredict.oz9aec.net/
#### CQRLOG:
Loggin Software https://www.cqrlog.com/
Logging Software. https://www.cqrlog.com/
#### QSSTV:
Slow scan tv http://users.telenet.be/on4qz/qsstv/index.html
Slow-scan TV (SSTV). http://users.telenet.be/on4qz/qsstv/index.html
#### Gridtracker
https://tagloomis.com/
#### Propagation (VOACAP)
Propagation Prediction Software https://www.qsl.net/hz1jw/voacapl/index.html
Propagation Prediction Software. https://www.qsl.net/hz1jw/voacapl/index.html
#### Emergency Email Server (EES):
My personal EES. Requires hotspot to be installed. https://youtu.be/XC9vdAnolO0
@ -142,13 +145,13 @@ Admin credentials are admin/admin by default but can be changed in the file foun
For more configuration options - https://youtu.be/KaEeCq50Mno
#### Call Sign Lookup
Look amateur radio call signs
Amateur radio call-sign lookup.
#### Dipole Calculator
Calculate lengths needed for dipole legs
Calculate lengths needed for dipole legs.
#### Log Viewer
Graphic viewer to view/manage log files
Graphic viewer to view/manage log files.
#### Gparted
Disk utility
Disk utility.

Wyświetl plik

@ -1,4 +1,15 @@
version=3.2.2
version=3.2.3
3.2.3 Add support for Pat Winlink in 64 bit OS
Fix FLDIGI on 64 bit - https://github.com/km4ack/pi-build/issues/378
Add support for gridtracker 64 bit - https://github.com/km4ack/pi-build/issues/382
Fix broken VNC viewer package for 64 bit
Fix HAMRS not starting 32 bit - https://github.com/km4ack/pi-build/issues/379
Fix HAMRS not starting 64 bit - Thanks W9RNR
Fix PiQtSoundModem for 64 bit install - Thanks Ben,KU0HN
Fix PiQtTermTCP for 64 bit install - Thanks Ben,KU0HN
Fix broken link for VNC viewer download
Fix piardopc dependencies for 64 bit install
3.2.2 Add cqrlog built from source - https://github.com/km4ack/pi-build/issues/349
Fix HAMRS install (Thanks WF5W)- https://github.com/km4ack/pi-build/issues/345

Wyświetl plik

@ -24,12 +24,46 @@ PAT() {
elif [ -f ${XDG_CONFIG_HOME}/pat/config.json ]; then
cp $XDG_CONFIG_HOME/pat/config.json ${DIR}/config.json
fi
if [ `getconf LONG_BIT` = '64' ]; then
#reference:
#https://www.jeremymorgan.com/tutorials/raspberry-pi/install-go-raspberry-pi/
#https://github.com/la5nta/pat/wiki/Building-from-source
#https://cqdeks4td.blogspot.com/2021/11/installing-pat-open-source-winlink.html
#install golang needed for pat build
cd
wget https://go.dev/dl/go1.17.7.linux-arm64.tar.gz
sudo tar -C /usr/local -xzf go1.17.7.linux-arm64.tar.gz
rm go1.17.7.linux-arm64.tar.gz
echo "PATH=$PATH:/usr/local/go/bin" >> $HOME/.profile
echo "GOPATH=$HOME/go" >> $HOME/.profile
source $HOME/.profile
#download/build latest pat
cd
git clone https://github.com/la5nta/pat
cd pat
./make.bash libax25
./make.bash
sudo cp $HOME/pat/debian/pat@.service /lib/systemd/system/
sudo cp $HOME/pat/pat /usr/bin/
rm -rf $HOME/pat
else
#install deb file for 32 bit systems
NEWPATV=$(curl -s https://github.com/la5nta/pat/releases | grep armhf | head -1 | sed 's/.*pat_/pat_/' | sed 's/<\/a>.*$//')
NEWPAT=$(echo ${NEWPATV} | sed 's/pat_//' | sed 's/_linux_armhf.deb//' | sed 's/0\.//')
echo "new pat v ${NEWPATV}"
echo "new pat ${NEWPAT}"
wget --tries 2 --connect-timeout=60 https://github.com/la5nta/pat/releases/download/v0.${NEWPAT}/${NEWPATV}
sudo dpkg -i ${DIR}/${NEWPATV}
fi
#lines below configure pat with user info
pat http &
sudo killall pat
sudo systemctl start pat@${WHO}
@ -445,12 +479,22 @@ EOF
GRIDTRACKER() {
cd ${HOME} || return
sudo apt-get install -y libgconf-2-4
#determine if 32/64 bit and set download link accordingly. issue #382
if [ `getconf LONG_BIT` = '32' ]; then
GRIDDLL=$(curl -s https://download.gridtracker.org/latest_release.html | grep arm32 | sed 's/.*href="//;s/">.*//')
else
GRIDDLL=$(curl -s https://download.gridtracker.org/latest_release.html | grep arm64 | sed 's/.*href="//;s/">.*//')
fi
wget --tries 2 --connect-timeout=60 $GRIDDLL
GRIDTAR=$(echo $GRIDDLL | sed 's/.*\///g')
tar -xzvf $GRIDTAR
rm GridTracker*.gz
#determine if 32/64 bit and get correct directory name.
if [ `getconf LONG_BIT` = '32' ]; then
OLDFOLDER=$(ls | grep GridTracker*-linux-arm32)
else
OLDFOLDER=$(ls | grep GridTracker*-linux-arm64)
fi
mv "$OLDFOLDER" $HOME/GridTracker
cat >gridtracker.desktop <<EOF
[Desktop Entry]
@ -791,12 +835,21 @@ sudo modprobe fuse
sudo groupadd fuse
sudo usermod -a -G fuse pi
#as of Feb 2022 there is no 64 bit version of HAMRS. The following will allow it to run
if [ `getconf LONG_BIT` = '64' ]; then
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt install -y libasound2:armhf zlib1g-dev:armhf fuse:armhf libglib2.0-0:armhf libnss3:armhf libatk1.0-0:armhf \
libatk-bridge2.0-0:armhf libx11-xcb1:armhf libgdk-pixbuf-2.0-0:armhf libgtk-3-0:armhf libdrm2:armhf libgbm1:armhf
fi
#create menu item and download icon
cat >${HOME}/Downloads/hamrs.desktop <<EOF
[Desktop Entry]
Name=HAMRS
Comment=POTA Logging Software
Exec=/usr/local/bin/hamrs --no-sanbox
Exec=/usr/local/bin/hamrs --no-sandbox
Icon=/usr/share/pixmaps/hamrs-logo.png
Terminal=false
Type=Application

Wyświetl plik

@ -122,6 +122,12 @@ EOF
ARDOP() {
mkdir -p ${HOME}/ardop
cd ${HOME}/ardop || return
#determine if 64 bit and install correct dependencies.
if [ `getconf LONG_BIT` = '64' ]; then
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/piardopc
sudo chmod +x ${HOME}/ardop/piardopc
}

Wyświetl plik

@ -26,7 +26,13 @@ FLSTART() {
# DEPENDS
##################################
#install needed depends
sudo apt-get install -y libfltk1.3-dev libjpeg9-dev libxft-dev libxinerama-dev libxcursor-dev libsndfile1-dev libsamplerate0-dev portaudio19-dev libpulse-dev libusb-1.0-0-dev texinfo libudev-dev
#check to see if 32 or 64 bit to detemine correct dependency
if [ `getconf LONG_BIT` = '64' ]; then
LIBJPG=libjpeg62-turbo-dev
else
LIBJPG=libjpeg9-dev
fi
sudo apt-get install -y libfltk1.3-dev $LIBJPG libxft-dev libxinerama-dev libxcursor-dev libsndfile1-dev libsamplerate0-dev portaudio19-dev libpulse-dev libusb-1.0-0-dev texinfo libudev-dev
##################################
# FLXMLRPC

Wyświetl plik

@ -212,8 +212,15 @@ TELNET() {
##################################
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
wget https://www.cantab.net/users/john.wiseman/Downloads/Beta/piQtTermTCP
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/
@ -405,12 +412,14 @@ EOF
##################################
VNC() {
cd ${HOME} || return
PACKAGE=$(curl -s https://www.realvnc.com/en/connect/download/viewer/raspberrypi/ | grep ARM.deb | awk '{print $2}' |
sed 's/href="\/download\/file\/viewer.files\///' | sed 's/"//')
PACKAGE=$(curl -s https://www.realvnc.com/en/connect/download/viewer/raspberrypi/ | grep ARM.deb | head -1 | sed s'/.*href="//;s/".*//;s/.*files\///')
wget https://realvnc.com/download/file/viewer.files/${PACKAGE}
wget https://downloads.realvnc.com/download/file/viewer.files/${PACKAGE}
sudo dpkg -i ${PACKAGE}
rm ${PACKAGE}
if [ `getconf LONG_BIT` = '64' ]; then
sudo apt --fix-broken install -y
fi
}
##################################
@ -509,7 +518,14 @@ sudo mv /run/user/$UID/packetsearch.desktop /usr/share/applications/
#Documentation - https://www.cantab.net/users/john.wiseman/Documents/QtSoundModem.html
QTSOUND(){
sudo apt install -y libqt5serialport5
#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
cd ${HOME}/Downloads || return
wget --tries 2 --connect-timeout=60 https://www.cantab.net/users/john.wiseman/Downloads/Beta/piQtSoundModem
chmod +x piQtSoundModem