Porównaj commity

...

30 Commity

Autor SHA1 Wiadomość Data
KM4ACK b68dc42b84
Merge pull request #427 from km4ack/dev
Dev
2022-10-04 11:31:05 -05:00
KM4ACK 92c72539b3 update 2022-10-04 11:22:58 -05:00
KM4ACK 21abc78b4f add chirp depends 2022-10-04 11:16:42 -05:00
KM4ACK 3d22105617 update chirp download 2022-10-04 11:10:37 -05:00
KM4ACK 4fe36594d0 fix callsign 2022-10-04 10:28:22 -05:00
KM4ACK 74a2db1682 add pi 4 check for vara 2022-10-02 11:14:28 -05:00
KM4ACK a39fe2b216 add pi 4 check for vara 2022-10-02 11:14:14 -05:00
KM4ACK 58d03b66ae update 2022-09-22 11:25:51 -05:00
KM4ACK 6b814e12fd fix #424 2022-09-22 11:23:02 -05:00
KM4ACK 3d98f8fd3f fix typo 2022-09-16 08:06:52 -05:00
KM4ACK 1fb7e5f062 fix #393 2022-08-31 17:35:34 -05:00
KM4ACK ac6ade5e48 add repeater start depends 2022-08-26 19:20:36 -05:00
KM4ACK 668dfa8999 update chirp install 2022-08-26 12:41:46 -05:00
KM4ACK d969bd9cca update chirp download 2022-08-26 12:36:37 -05:00
KM4ACK 9f56d8a3a3 fix VARA variable 2022-08-26 11:54:48 -05:00
KM4ACK 31d68055e9 add VARA check 2022-08-26 11:53:42 -05:00
KM4ACK 4d0bd8b6c1 fix typo 2022-08-26 11:24:01 -05:00
KM4ACK 399a54c81f add repeaterSTART #400 2022-08-26 11:20:54 -05:00
KM4ACK afbe8e625f add repeaterSTART #400 2022-08-26 11:20:47 -05:00
KM4ACK 5a66ae5c32 add repeaterSTART #400 2022-08-26 11:20:38 -05:00
KM4ACK 8de092d6fd add repeaterSTART #400 2022-08-26 11:20:31 -05:00
KM4ACK f62363e99e fix #413 2022-08-26 09:30:50 -05:00
KM4ACK 092bfe4bd9 fix #414 2022-08-26 09:21:23 -05:00
KM4ACK b775e18c02 add VARA #394 2022-08-26 09:15:04 -05:00
KM4ACK 3a1717b0b1 add VARA #394 2022-08-26 09:14:48 -05:00
KM4ACK f4aa40e28d update 2022-08-26 09:14:14 -05:00
KM4ACK 9dd5b309ef add VARA #394 2022-08-26 09:14:08 -05:00
KM4ACK 18c7fa62f5 update 2022-07-09 08:52:52 -05:00
KM4ACK bce3af9c91 update 2022-07-09 08:51:24 -05:00
KM4ACK f0bca5e4ba update 2022-06-08 07:56:24 -05:00
9 zmienionych plików z 249 dodań i 78 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
# Support this Project
[![Patreon](https://www.dropbox.com/s/gr6k9j359b744tl/patreon-logo1.png?dl=1)](https://patreon.com/km4ack) | [![Tip Jar](https://www.dropbox.com/s/tk4w0tery1ugrqz/tip-jar-1024x900.png?dl=1)](https://paypal.me/km4ack)
# Description
Build-a-Pi will allow you to get up and running fast with a Raspberry Pi for ham radio.
@ -155,3 +159,8 @@ Graphic viewer to view/manage log files.
#### Gparted
Disk utility.
# Support this Project
[![Patreon](https://www.dropbox.com/s/gr6k9j359b744tl/patreon-logo1.png?dl=1)](https://patreon.com/km4ack) | [![Tip Jar](https://www.dropbox.com/s/tk4w0tery1ugrqz/tip-jar-1024x900.png?dl=1)](https://paypal.me/km4ack)

Wyświetl plik

@ -65,6 +65,15 @@ CHECK() {
echo "ARDOPGUI=Not_Installed" >> $UPDATEFILE
fi
#----------------------------------------------------#
# VARA
#----------------------------------------------------#
echo "Checking VARA"
if [ -f /home/pi/.wine/drive_c/VARA/VARA.exe ]; then
echo "VARA=Installed" >> $UPDATEFILE
else
echo "VARA=Not_Installed" >> $UPDATEFILE
fi
#----------------------------------------------------#
# JS8Call
#----------------------------------------------------#
if ! hash js8call 2>/dev/null; then
@ -683,13 +692,27 @@ echo "Checking Packet Search"
fi
fi
#----------------------------------------------------#
# piQtSoundModem
#----------------------------------------------------#
if [ -f /usr/local/bin/piQtSoundModem ]; then
echo "QTSOUND=Installed" >> $UPDATEFILE
else
echo "QTSOUND=Not_Installed" >> $UPDATEFILE
fi
#----------------------------------------------------#
# piQtSoundModem
#----------------------------------------------------#
if [ -f /usr/local/bin/piQtSoundModem ]; then
echo "QTSOUND=Installed" >> $UPDATEFILE
else
echo "QTSOUND=Not_Installed" >> $UPDATEFILE
fi
#----------------------------------------------------#
# Repeater-Start
#----------------------------------------------------#
echo "Checking Repeater-Start"
REPEAT_CURRENT_VER=$(dpkg --list | grep repeater-start | awk '{print $3}')
REPEAT_LATEST=$(curl -s https://sourceforge.net/projects/repeater-start/files/ | grep all.deb | head -1 | sed 's/.*repeater/repeater/;s/".*//')
REPEAT_LATEST_VER=$(echo $REPEAT_LATEST | sed 's/repeater-start_//;s/_.*//')
if (($(echo "${REPEAT_LATEST_VER} ${REPEAT_CURRENT_VER}" | awk '{print ($1 > $2)}'))); then
echo "REPEAT=NEEDS-UPDATE" >> $UPDATEFILE
else
echo "REPEAT=is_latest_version" >> $UPDATEFILE
fi
CHECK

Wyświetl plik

@ -239,6 +239,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \
false "GPSUPDATE" "Tool to Manage GPS Devices" \
false "ARDOP" "Modem for HF" \
false "ARDOPGUI" "GUI for ARDOP" \
false "VARA" "VARA Modem" \
false "HAMLIB" "Needed for Rig Control" \
false "DIREWOLF" "Software TNC" \
false "AX25" "Data Link Layer Protocol" \
@ -252,12 +253,27 @@ if [ ${BUT} = 252 ] || [ ${BUT} = 1 ]; then
fi
if [ ${BUT} = 3 ]; then
BASEAPPS=(HOTSPOT HSTOOLS GPS ARDOP ARDOPGUI HAMLIB DIREWOLF AX25 PULSE GPSUPDATE)
BASEAPPS=(HOTSPOT HSTOOLS GPS ARDOP ARDOPGUI VARA HAMLIB DIREWOLF AX25 PULSE GPSUPDATE)
for i in "${BASEAPPS[@]}"; do
echo "$i" >>${BASE}
done
fi
#If vARA is chosen, make sure we have a Pi 4 to work with.
#As of 02OCT2022 the VARA installer only works with the Pi 4.
VARA_CHK=$(grep VARA ${BASE})
if [ -n $VARA_CHK ]; then
FREEMEM=$(free -m | grep Mem: | awk '{ print $2 }')
if [ $FREEMEM -lt 1900 ]; then
echo "Not enough memory available"
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="<b>Not enough memory</b>\rVARA requires a Pi 4.\r\rVARA will not be installed during the build." \
--button=gtk-ok
sed -i 's/VARA//;/^$/d' ${BASE}
fi
fi
#check if hotspot is chosen for install & get info if needed
HS=$(grep "HOTSPOT" ${BASE})
if [ -n "$HS" ]; then
@ -405,6 +421,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \
false "GPREDICT" "Satellite Tracking" \
false "TQSL" "LOTW Software" \
false "GRIDCALC" "Grid Calculation Software" \
false "REPEAT" "Repeater Directory" \
--button="Exit":1 \
--button="Check All and Continue":3 \
--button="Next":2 >${ADDITIONAL}
@ -416,7 +433,7 @@ fi
if [ ${BUT} = 3 ]; then
ADDAPPS=(CONKY PI-APRS CHIRP GARIM PAT PAT-MENU JS8CALL M0IAX WSJTX PYQSO
HAMRS EES QSSTV GRIDTRACKER HAMCLOCK PROPAGATION YAAC XASTIR GPREDICT TQSL
GRIDCALC CQRLOG)
GRIDCALC CQRLOG REPEAT)
for i in "${ADDAPPS[@]}"; do
echo "$i" >>${ADDITIONAL}

Wyświetl plik

@ -1,5 +1,12 @@
version=3.2.4
version=3.3.0
3.3.0 Add VARA modem - https://github.com/km4ack/pi-build/issues/394
fix conky 7 inch config - https://github.com/km4ack/pi-build/issues/414
fix old ardop modem not removed - https://github.com/km4ack/pi-build/issues/413
create VARA sub category - https://github.com/km4ack/pi-build/issues/393
update chirp install - https://github.com/km4ack/pi-build/issues/337
use 64bit package to install pat on 64bit OS - https://github.com/km4ack/pi-build/issues/424
Add RepeaterStart - https://github.com/km4ack/pi-build/issues/400
3.2.4 Update HotSpot Tools shortcut
Change 1000 to UID in update script
Remove Pi username check
@ -10,6 +17,7 @@ version=3.2.4
fix issue #380 https://github.com/km4ack/pi-build/issues/380
fix issue #401 Gridtracker not downloading https://github.com/km4ack/pi-build/issues/401
fix hamrs not installing/updating - https://github.com/km4ack/pi-build/issues/404
fix issue #408 https://github.com/km4ack/pi-build/issues/408
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

Wyświetl plik

@ -1,33 +1,36 @@
background yes
use_xft yes
xftfont 123:size=6
xftalpha 0.5
update_interval 0.5
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 120 5
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 5
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer right
TEXT
conky.config = {
background = true,
use_xft = true,
font = '123:size=8',
xftalpha = 0.5,
update_interval = 0.5,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
minimum_width = 250, minimum_height = 5,
maximum_width = 400,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'gray',
default_shade_color = 'red',
default_outline_color = 'green',
alignment = 'top_right',
gap_x = 10,
gap_y = 10,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 1,
override_utf8_locale = true,
use_spacer = 'right',
};
conky.text = [[
${font Arial:size=12}${color Yellow}${alignc}N0CALL
${voffset -30}
@ -51,7 +54,7 @@ ${font Arial:bold:size=08}${color Yellow}SYSTEM ${color DarkSlateGray} ${hr 2}
${font Arial:bold:size=08}${color White}Frequency $alignr${freq_g cpu0}Ghz
${font Arial:bold:size=08}${color White}Uptime $alignr${uptime}
#TEMP
${font Arial:bold:size=08}${color White}Temp: $alignr ${exec /usr/bin/vcgencmd measure_temp | awk -F "[=']" '{print($2 * 1.8)+32}'} F
${font Arial:bold:size=08}${color White}Temp: $alignr ${exec /usr/bin/vcgencmd measure_temp | cut -c6-9} C
${voffset -10}
${font Arial:bold:size=6}${color White}CPU${alignr}${cpu}%
${cpubar cpu}
@ -88,3 +91,4 @@ ${font Arial:bold:size=6}${color White}${tail ~/Documents/mylog.txt 5}
#$diskio
]];

Wyświetl plik

@ -26,34 +26,16 @@ PAT() {
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
#install deb file for 64 bit systems
NEWPATV=$(curl -s https://github.com/la5nta/pat/releases | grep arm64 | head -1 | sed 's/.*pat_/pat_/' | sed 's/<\/a>.*$//')
NEWPAT=$(echo ${NEWPATV} | sed 's/pat_//' | sed 's/_linux_arm64.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}
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\.//')
@ -100,6 +82,36 @@ PAT() {
mv ${DIR}/config.json ${HOME}/.wl2k/
fi
PAT_OLD_SOURCE_INSTALL() {
#This code is left for reference. This was used ot build pat from source when 64bit Pi OS was first released. 20220922
#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
}
}
##################################
# PAT MENU
@ -399,7 +411,29 @@ sudo make install
##################################
CHIRP() {
sudo apt install -y chirp
#sudo apt install -y chirp
cd ${DIR} || return
sudo apt install libfuse2
CHIRPDATE=$(curl -s https://github.com/goldstar611/chirp-appimage | grep "releases/tag/" | sed 's|.*releases/tag/||;s|">||')
LINK="https://github.com/goldstar611/chirp-appimage/releases/download/$CHIRPDATE/Chirp-daily-$CHIRPDATE-armhf.AppImage"
wget $LINK
CHIRP=$(ls | grep Chirp-daily)
sudo mv $CHIRP /usr/local/bin/chirp
sudo chmod +x /usr/local/bin/chirp
cat >chirp.desktop <<EOF
[Desktop Entry]
Name=Chirp
Comment=Radio Programming Software
GenericName=Chirp
Exec=/usr/local/bin/chirp
Icon=qsstv.png
Type=Application
Terminal=false
Categories=HamRadio;
EOF
sudo mv chirp.desktop /usr/share/applications/
OLDCODE(){
#left for reference
@ -891,6 +925,18 @@ GRIDCALC(){
$HOME/bin/grid-calc
}
##################################
# Repeater-Start
##################################
REPEAT(){
sudo apt install -y gir1.2-osmgpsmap-1.0 gir1.2-geoclue-2.0 libosmgpsmap-1.0-1
REPEAT_LATEST=$(curl -s https://sourceforge.net/projects/repeater-start/files/ | grep all.deb | head -1 | sed 's/.*repeater/repeater/;s/".*//')
cd ${HOME}/Downloads
wget https://sourceforge.net/projects/repeater-start/files/$REPEAT_LATEST
sudo dpkg -i $REPEAT_LATEST
}
##################################
# JTDX
##################################
@ -912,4 +958,6 @@ JTDX() {
sudo apt-get --fix-broken -y install
sudo dpkg -i ${VER}
rm ${VER}
}

Wyświetl plik

@ -133,6 +133,9 @@ EOF
# ARDOP
################################
ARDOP() {
if [ -f ${HOME}/ardop/piardopc; then
rm ${HOME}/ardop/piardopc
fi
mkdir -p ${HOME}/ardop
cd ${HOME}/ardop || return
#determine if 64 bit and install correct dependencies.
@ -173,6 +176,16 @@ EOF
echo "Port=8515" >>${FILE}
}
################################
# VARA
################################
VARA() {
cd ${HOME}/Downloads || return
curl -O https://raw.githubusercontent.com/WheezyE/Winelink/main/install_winelink.sh && bash install_winelink.sh bap
rm ${HOME}/Downloads/install_winelink.sh
}
################################
# HAMLIB
################################

Wyświetl plik

@ -9,7 +9,7 @@
#km4ack - km4ack subcategory
REV=20210411
REV=20220829
source $HOME/.config/KM4ACK
@ -60,11 +60,42 @@ sudo sed -i "s/Categories.*/Categories=$CATEGORY/" $FLPATH/flrig.desktop
fi
}
VARA(){
##########################
# VARA
##########################
echo "updating VARA shortcuts"
if [ -f /usr/share/applications/vara-chat.desktop ]; then
sudo sed -i 's/Categories.*/Categories=vara/' /usr/share/applications/vara-chat.desktop
fi
if [ -f /usr/share/applications/vara.desktop ]; then
sudo sed -i 's/Categories.*/Categories=vara/' /usr/share/applications/vara.desktop
fi
if [ -f /usr/share/applications/vara-fm.desktop ]; then
sudo sed -i 's/Categories.*/Categories=vara/' /usr/share/applications/vara-fm.desktop
fi
if [ -f /usr/share/applications/vara-sat.desktop ]; then
sudo sed -i 's/Categories.*/Categories=vara/' /usr/share/applications/vara-sat.desktop
fi
if [ -f /usr/share/applications/vara-soundcardsetup.desktop ]; then
sudo sed -i 's/Categories.*/Categories=vara/' /usr/share/applications/vara-soundcardsetup.desktop
fi
if [ -f /usr/share/applications/vara-update.desktop ]; then
sudo sed -i 's/Categories.*/Categories=vara/' /usr/share/applications/vara-update.desktop
fi
}
BAP(){
##########################
# BAP
##########################
echo "Updating Build a Pi Shortcuts"
cd /run/user/$UID
#DONATE
@ -141,15 +172,15 @@ EOF
sudo mv FLsuite.directory /usr/share/desktop-directories/
cat >km4ack.directory <<EOF
cat >vara.directory <<EOF
[Desktop Entry]
Type=Directory
Encoding=UTF-8
Name=KM4ACK-Tools
Name=VARA
Icon=CQ.png
EOF
sudo mv km4ack.directory /usr/share/desktop-directories/
sudo mv vara.directory /usr/share/desktop-directories/
cat >bap.directory <<EOF
[Desktop Entry]
@ -181,10 +212,10 @@ cat >hamradio.menu <<EOF
</Include>
</Menu>
<Menu>
<Name>KM4ACK</Name>
<Directory>km4ack.directory</Directory>
<Name>VARA</Name>
<Directory>vara.directory</Directory>
<Include>
<Category>km4ack</Category>
<Category>vara</Category>
</Include>
</Menu>
@ -220,6 +251,7 @@ else
echo "MENU=$REV" >> $HOME/.config/KM4ACK
CREATEMENU
FLSUITE
VARA
fi

17
update
Wyświetl plik

@ -306,6 +306,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \
false "GPSUPDATE" "${GPSUPDATE}" "Tool to Manage GPS Devices" \
false "ARDOP" "$ARDOP" "Mode for HF" \
false "ARDOPGUI" "$ARDOPGUI" "GUI for ARDOP" \
false "VARA" "$VARA" "VARA Modem" \
false "DIREWOLF" "$DIRE" "Software TNC" \
false "AX25" "$AX25" "Data Link Layer Protocol" \
false "PULSE" "$PULSE" "Sound server" \
@ -316,6 +317,21 @@ if [ ${BUT} = 1 ] || [ ${BUT} = 252 ]; then
exit
fi
#If vARA is chosen, make sure we have a Pi 4 to work with.
#As of 02OCT2022 the VARA installer only works with the Pi 4.
VARA_CHK=$(grep VARA ${BASE})
if [ -n $VARA_CHK ]; then
FREEMEM=$(free -m | grep Mem: | awk '{ print $2 }')
if [ $FREEMEM -lt 1900 ]; then
echo "Not enough memory available"
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="<b>Not enough memory</b>\rVARA requires a Pi 4.\r\rVARA will not be installed during the build." \
--button=gtk-ok
sed -i 's/VARA//;/^$/d' ${BASE}
fi
fi
#############################################################
#check if hotspot is chosen for install & get info if needed#
#############################################################
@ -450,6 +466,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \
false "CONKY" "$CONKY" "System Information Display" \
false "WSJTX" "$FT8" "Weak signal digital mode software" \
false "JS8CALL" "$JS8" "Weak signal digital mode software" \
false "REPEAT" "$REPEAT" "Repeater Directory" \
false "XASTIR" "$XASTIR" "APRS Client" \
false "YAAC" "$YAAC" "Yet Another APRS Client" \
false "PI-APRS" "$PIAPRS" "APRS Messaging Client" \