mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
testing updates AmRRON-Vara-setup
This commit is contained in:
+171
-29
@@ -215,12 +215,14 @@ echo "VARA FM: ${VARAFMVER} available"
|
|||||||
#VARACHATVER=$(curl -s https://rosmodem.wordpress.com/ | grep -m 1 "VARA Chat" | awk -F "VARA Chat" '{print $2}' | awk -F " " '{print $1}' | sed s/\ //g)
|
#VARACHATVER=$(curl -s https://rosmodem.wordpress.com/ | grep -m 1 "VARA Chat" | awk -F "VARA Chat" '{print $2}' | awk -F " " '{print $1}' | sed s/\ //g)
|
||||||
|
|
||||||
|
|
||||||
VARAFMLINK=https://downloads.winlink.org/VARA%20Products/VARA%20FM%20${VARAFMVER}%20%20setup.zip
|
VARAFMLINK=https://downloads.winlink.org/VARA%20Products/VARA%20FM%20${VARAFMVER}%20setup.zip
|
||||||
echo "VARA FM URL: ${VARAFMLINK}"
|
echo "VARA FM URL: ${VARAFMLINK}"
|
||||||
|
|
||||||
VARAHFLINK=https://downloads.winlink.org/VARA%20Products/VARA%20HF%20${VARAHFVER}%20setup.zip
|
VARAHFLINK=https://downloads.winlink.org/VARA%20Products/VARA%20HF%20${VARAHFVER}%20setup.zip
|
||||||
echo "VARA HF URL: ${VARAHFLINK}"
|
echo "VARA HF URL: ${VARAHFLINK}"
|
||||||
|
|
||||||
|
#https://downloads.winlink.org/VARA%20Products/VARA%20HF%20v4.8.9%20setup.zip
|
||||||
|
|
||||||
#VARACHATLINK=$(curl -s https://rosmodem.wordpress.com/ | grep -oP '(?=https://mega.nz).*?(?=" target="_blank" rel="noopener noreferrer">VARA Chat v)')
|
#VARACHATLINK=$(curl -s https://rosmodem.wordpress.com/ | grep -oP '(?=https://mega.nz).*?(?=" target="_blank" rel="noopener noreferrer">VARA Chat v)')
|
||||||
|
|
||||||
function primer_menu() {
|
function primer_menu() {
|
||||||
@@ -315,8 +317,8 @@ winecfg
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function installvara_mint() {
|
function install_varahf() {
|
||||||
#download/install VARA HF/FM
|
#download/install VARA HF
|
||||||
|
|
||||||
if [[ $OSCN = una ]]; then
|
if [[ $OSCN = una ]]; then
|
||||||
sudo apt install -y curl libcurl4-openssl-dev libssl-dev ||
|
sudo apt install -y curl libcurl4-openssl-dev libssl-dev ||
|
||||||
@@ -324,60 +326,111 @@ sudo apt install -y curl libcurl4-openssl-dev libssl-dev ||
|
|||||||
|
|
||||||
elif [[ $OSCN =~ (vera|vanessa|victoria|virginia|wilma) ]]; then
|
elif [[ $OSCN =~ (vera|vanessa|victoria|virginia|wilma) ]]; then
|
||||||
|
|
||||||
sudo apt install -y curl p7zip-full ||
|
sudo apt install -y curl p7zip-full winbind||
|
||||||
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Install Driver
|
#Install Driver
|
||||||
|
if [[ ! -f $HOME/.wine/drive_c/windows/system32/pdh.dll ]]; then
|
||||||
cd $HOME/Downloads && wget http://files.k6eta.com/pdh.dll.zip ||
|
cd $HOME/Downloads && wget http://files.k6eta.com/pdh.dll.zip ||
|
||||||
{ ERRCODE="Failed to download k6eta pdh.dll drivers"; errors; return; }
|
{ ERRCODE="Failed to download k6eta pdh.dll drivers"; errors; return; }
|
||||||
unzip pdh.dll.zip && rm pdh.dll.zip ||
|
unzip pdh.dll.zip && rm pdh.dll.zip ||
|
||||||
{ ERRCODE="Failed to unzip k6eta drivers"; errors; return; }
|
{ ERRCODE="Failed to unzip k6eta drivers"; errors; return; }
|
||||||
mv pdh.dll $HOME/.wine/drive_c/windows/system32 ||
|
mv pdh.dll $HOME/.wine/drive_c/windows/system32 ||
|
||||||
{ ERRCODE="Failed to move drivers to $HOME/.wine/drive_c/windows/system32"; errors; return; }
|
{ ERRCODE="Failed to move drivers to $HOME/.wine/drive_c/windows/system32"; errors; return; }
|
||||||
|
else
|
||||||
|
echo "Driver already installed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
cd $HOME/Downloads && wget ${VARAHFLINK} ||
|
||||||
cd $HOME/Downloads
|
|
||||||
wget ${VARAHFLINK} ||
|
|
||||||
{ ERRCODE="Failed to download VARA HF. Visit https://downloads.winlink.org/ to download appropriate file. Unzip this file and install from terminal using the command: wine <filename>"; errors; return; }
|
{ ERRCODE="Failed to download VARA HF. Visit https://downloads.winlink.org/ to download appropriate file. Unzip this file and install from terminal using the command: wine <filename>"; errors; return; }
|
||||||
wget ${VARAFMLINK} ||
|
|
||||||
{ ERRCODE="Failed to download VARA FM. Visit https://downloads.winlink.org/ to download appropriate file. Unzip this file and install from terminal using the command: wine <filename>"; errors; return; }
|
|
||||||
|
|
||||||
|
|
||||||
unzip VARA\ FM\ $VARAFMVER*.zip ||
|
|
||||||
{ ERRCODE="Failed to unzip VARA FM"; errors; return; }
|
|
||||||
unzip VARA\ HF\ $VARAHFVER*.zip ||
|
unzip VARA\ HF\ $VARAHFVER*.zip ||
|
||||||
{ ERRCODE="Failed to unzip VARA HF"; errors; return; }
|
{ ERRCODE="Failed to unzip VARA HF"; errors; return; }
|
||||||
#unzip VARA\ Chat\ $VARACHATVER\ Setup.zip ||
|
|
||||||
#{ ERRCODE="Failed to unzip VARA Chat"; errors; return; }
|
|
||||||
|
|
||||||
#rm VARA\ HF\ $VARAHFVER*.zip ||
|
#install VARA HF with wine
|
||||||
rm VARA\ FM\ $VARAFMVER*.zip VARA\ HF\ $VARAHFVER*.zip || #VARA\ Chat\ $VARACHATVER\ Setup.zip ||
|
|
||||||
{ ERRCODE="Failed to remove VARA zip files"; errors; return; }
|
|
||||||
#install VARA FM with wine
|
|
||||||
/usr/bin/wine VARA\ FM\ setup\ \(Run\ as\ Administrator\).exe ||
|
|
||||||
{ ERRCODE="Failed to install VARA FM"; errors; return; }
|
|
||||||
#install VARA with wine
|
|
||||||
/usr/bin/wine VARA\ setup\ \(Run\ as\ Administrator\).exe ||
|
/usr/bin/wine VARA\ setup\ \(Run\ as\ Administrator\).exe ||
|
||||||
{ ERRCODE="Failed to install VARA HF"; errors; return; }
|
{ ERRCODE="Failed to install VARA HF"; errors; return; }
|
||||||
#install VARA Chat with wine
|
|
||||||
#/usr/bin/wine VARA\ Chat\ setup\ \(Run\ as\ Administrator\).exe ||
|
|
||||||
#{ ERRCODE="Failed to install VARA Chat"; errors; return; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function install_varafm() {
|
||||||
|
|
||||||
|
if [[ $OSCN = una ]]; then
|
||||||
|
sudo apt install -y curl libcurl4-openssl-dev libssl-dev ||
|
||||||
|
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
||||||
|
|
||||||
|
elif [[ $OSCN =~ (vera|vanessa|victoria|virginia|wilma) ]]; then
|
||||||
|
|
||||||
|
sudo apt install -y curl p7zip-full winbind||
|
||||||
|
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f $HOME/.wine/drive_c/windows/system32/pdh.dll ]]; then
|
||||||
|
cd $HOME/Downloads && wget http://files.k6eta.com/pdh.dll.zip ||
|
||||||
|
{ ERRCODE="Failed to download k6eta pdh.dll drivers"; errors; return; }
|
||||||
|
unzip pdh.dll.zip && rm pdh.dll.zip ||
|
||||||
|
{ ERRCODE="Failed to unzip k6eta drivers"; errors; return; }
|
||||||
|
mv pdh.dll $HOME/.wine/drive_c/windows/system32 ||
|
||||||
|
{ ERRCODE="Failed to move drivers to $HOME/.wine/drive_c/windows/system32"; errors; return; }
|
||||||
|
else
|
||||||
|
echo "Driver already installed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $HOME/Downloads/ && wget ${VARAFMLINK} ||
|
||||||
|
ERRCODE="Failed to download VARA FM. Visit https://downloads.winlink.org/ to download appropriate file. Unzip this file and install from terminal using the command: wine <filename>"; errors; return; }
|
||||||
|
|
||||||
|
unzip VARA\ FM\ $VARAFMVER*.zip ||
|
||||||
|
{ ERRCODE="Failed to unzip VARA FM"; errors; return; }
|
||||||
|
|
||||||
|
#install VARA FM with wine
|
||||||
|
/usr/bin/wine VARA\ FM\ setup\ \(Run\ as\ Administrator\).exe ||
|
||||||
|
{ ERRCODE="Failed to install VARA FM"; errors; return; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function installvarac() {
|
function installvarac() {
|
||||||
|
|
||||||
|
if [[ $OSCN = una ]]; then
|
||||||
|
sudo apt install -y curl libcurl4-openssl-dev libssl-dev ||
|
||||||
|
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
||||||
|
|
||||||
|
elif [[ $OSCN =~ (vera|vanessa|victoria|virginia|wilma) ]]; then
|
||||||
|
|
||||||
|
sudo apt install -y curl p7zip-full winbind||
|
||||||
|
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f $HOME/.wine/drive_c/windows/system32/pdh.dll ]]; then
|
||||||
|
cd $HOME/Downloads && wget http://files.k6eta.com/pdh.dll.zip ||
|
||||||
|
{ ERRCODE="Failed to download k6eta pdh.dll drivers"; errors; return; }
|
||||||
|
unzip pdh.dll.zip && rm pdh.dll.zip ||
|
||||||
|
{ ERRCODE="Failed to unzip k6eta drivers"; errors; return; }
|
||||||
|
mv pdh.dll $HOME/.wine/drive_c/windows/system32 ||
|
||||||
|
{ ERRCODE="Failed to move drivers to $HOME/.wine/drive_c/windows/system32"; errors; return; }
|
||||||
|
else
|
||||||
|
echo "Driver already installed"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $OSCN = wilma ]]; then
|
if [[ $OSCN = wilma ]]; then
|
||||||
|
|
||||||
cd $HOME/setup-scripts/Files/ && wine VarAC_Installer_V10_4_3.exe ||
|
cd $HOME/setup-scripts/Files/ && wine VarAC_Installer_V10_4_3.exe ||
|
||||||
{ ERRCODE="Failed to install VarAC"; errors; return; }
|
{ ERRCODE="Failed to install VarAC"; errors; return; }
|
||||||
|
|
||||||
|
else
|
||||||
|
{ ERRCODE="VarAC is only compatible with Mint 22 at this time."; errors; return; }
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function installrmsexpress() {
|
function install_rmsexpress() {
|
||||||
cd $HOME/Downloads
|
cd $HOME/Downloads
|
||||||
wget -q -r -l1 -np -nd -A "Winlink_Express_install_*.zip" https://downloads.winlink.org/User%20Programs ||
|
wget -q -r -l1 -np -nd -A "Winlink_Express_install_*.zip" https://downloads.winlink.org/User%20Programs ||
|
||||||
{ ERRCODE="Failed to download Winlink Express"; errors; return; }
|
{ ERRCODE="Failed to download Winlink Express"; errors; return; }
|
||||||
@@ -388,8 +441,99 @@ unzip Winlink_Express_install*.zip && rm Winlink_Express_install*.zip ||
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#########################################################################################
|
||||||
|
|
||||||
|
function installermenu() {
|
||||||
|
|
||||||
|
yad --image=$DIR/images/corps-icon.png --center --checklist --print-column=2 --separator="" \
|
||||||
|
--title "Select Programs" \
|
||||||
|
--text "Select the programs you would like to install or update. WINE is required for initial install." \
|
||||||
|
--list --wrap-width=150 --wrap-cols=3 \
|
||||||
|
--button="gtk-close:1" --button="Install All:2" --button="Install Selected:0" \
|
||||||
|
--column="Tick" --column="Category" --column="Description" --column="Installed" \
|
||||||
|
false "WINE" "Windows compatibility layer" \
|
||||||
|
false "VARAHF" "Vara HF modem" \
|
||||||
|
false "VARAFM" "Vara FM modem" \
|
||||||
|
false "VARAC" "VarAC keyboard to keyboard chat program"\
|
||||||
|
false "RMSEXPRESS" "Winlink RMS Express" \
|
||||||
|
${r} ${c} >>/tmp/results
|
||||||
|
rc=$?
|
||||||
|
|
||||||
|
if [[ $rc == 2 ]]; then
|
||||||
|
securityArray=(WINE VARAHF VARAFM VARAC RMSEXPRESS)
|
||||||
|
|
||||||
|
for i in "${securityArray[@]}"
|
||||||
|
do
|
||||||
|
echo "$i" >> /tmp/results
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
elif [[ $rc == 1 ]]; then
|
||||||
|
yad --image=$DIR/images/corps-icon.png --center --button="gtk-ok:0" --title "Exit Selected" --text "Exiting installer now" ${r} ${c}
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
######################### Execute the selections #############################
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
#install_wine
|
||||||
|
#nstallvara_mint
|
||||||
|
#installvarac
|
||||||
|
#installrmsexpress
|
||||||
|
|
||||||
|
function selection_results() {
|
||||||
|
|
||||||
|
if [[ -s /tmp/results ]]; then
|
||||||
|
cat /tmp/results | yad --text-info --center \
|
||||||
|
--image=$DIR/images/corps-icon.png \
|
||||||
|
--button="Quit:1" \
|
||||||
|
--button="Begin:0" \
|
||||||
|
--title "Confirm Update Selection" \
|
||||||
|
--text "You have chosen to install / update the following:" ${r} ${c} || exit 1
|
||||||
|
else
|
||||||
|
yad --center \
|
||||||
|
--image=$DIR/images/donate.png \
|
||||||
|
--button="gtk-ok:0" \
|
||||||
|
--title "Goodbye" \
|
||||||
|
--text "You did not make any selections.\n\nThe installer will now exit.\n\nThank you." ${r} ${c}
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
while read results
|
||||||
|
do
|
||||||
|
case $results in
|
||||||
|
|
||||||
|
WINE) echo "Installing wine"
|
||||||
|
install_wine
|
||||||
|
;;
|
||||||
|
VARAHF) echo "Installing VaraHF"
|
||||||
|
install_varahf
|
||||||
|
;;
|
||||||
|
VARAFM) echo "Installing VaraFM"
|
||||||
|
install_varafm
|
||||||
|
;;
|
||||||
|
VARAC) echo "Installing VarAC"
|
||||||
|
install_varac
|
||||||
|
;;
|
||||||
|
RMSEXPRESS) echo "Installing RMS express"
|
||||||
|
install_rmsexpress
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done < /tmp/results
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#########################################################################################
|
||||||
function failure_handling() {
|
function failure_handling() {
|
||||||
|
|
||||||
FAIL=$(cat /tmp/varafailures) || echo "No failures recorded"
|
FAIL=$(cat /tmp/varafailures) || echo "No failures recorded"
|
||||||
@@ -466,11 +610,9 @@ check_repo_version
|
|||||||
confirm_os
|
confirm_os
|
||||||
primer_menu
|
primer_menu
|
||||||
if [[ $PLAT = Linuxmint ]]; then
|
if [[ $PLAT = Linuxmint ]]; then
|
||||||
|
installermenu
|
||||||
usergroups
|
usergroups
|
||||||
install_wine
|
selection_results
|
||||||
installvara_mint
|
|
||||||
installvarac
|
|
||||||
#installrmsexpress
|
|
||||||
else
|
else
|
||||||
pi_install
|
pi_install
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user