mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
Testing Mint 20.3 vara installer
This commit is contained in:
+64
-32
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
################################################################################
|
||||
####################### AmRRON Vara Setup v.0.1 #########################
|
||||
####################### AmRRON Vara Setup v.0.2 #########################
|
||||
####################### Created by TB-14 #########################
|
||||
####################### 05 NOV 2022 #########################
|
||||
####################### 06 NOV 2022 #########################
|
||||
################################################################################
|
||||
################################################################################
|
||||
|
||||
@@ -11,6 +11,23 @@
|
||||
### This script will perform basic setup for VARA.
|
||||
### Tested on Mint 21
|
||||
### Using guidance and tools from TK-05, KM4ACK, ptitSeb, Box86, and KI7POL
|
||||
# Ask for the administrator password upfront
|
||||
clear;echo
|
||||
echo "╔═╗╔╦╗╦═╗╦═╗╔═╗╔╗╔ ╔═╗╔═╗╦═╗╔═╗╔═╗";
|
||||
echo "╠═╣║║║╠╦╝╠╦╝║ ║║║║ ║ ║ ║╠╦╝╠═╝╚═╗";
|
||||
echo "╩ ╩╩ ╩╩╚═╩╚═╚═╝╝╚╝ ╚═╝╚═╝╩╚═╩ ╚═╝";
|
||||
echo "###########################################"
|
||||
echo "###########################################"
|
||||
echo "You will be prompted for your sudo password"
|
||||
echo "below in order to install vara dependencies."
|
||||
echo "###########################################"
|
||||
echo "###########################################"
|
||||
sudo -v
|
||||
|
||||
# Keep-alive: update existing `sudo` time stamp until script has finished
|
||||
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
|
||||
|
||||
|
||||
#### Program setup functions
|
||||
# Find out if we have yad and install if not
|
||||
echo "Yad is used to create the interactive menus this program uses."
|
||||
@@ -147,7 +164,9 @@ fi
|
||||
|
||||
function confirm_mint21() {
|
||||
|
||||
if [ $OSCN != vanessa ]; then
|
||||
if [[ $OSCN =~ una|vanessa ]]; then
|
||||
echo "Continuing with install"
|
||||
else
|
||||
yad --image=$DIR/images/corps-icon.png --center \
|
||||
--title "Not Supported OS" \
|
||||
--text "::: Exiting due to unsupported OS. This script has only been tested on Mint 21 at this time." ${r} ${c}
|
||||
@@ -209,7 +228,7 @@ CHK_AUDIO=$(id -nG | grep audio)
|
||||
if [ -z "$CHK_DIALOUT" ]; then
|
||||
echo "Adding user to dialout group"
|
||||
sudo usermod -a -G dialout $MYUSER ||
|
||||
{ ERRCODE="Failed to add user to dialout group"; errors; }
|
||||
{ ERRCODE="Failed to add user to dialout group"; errors; return; }
|
||||
else
|
||||
echo "User already in dialout group"
|
||||
fi
|
||||
@@ -217,7 +236,7 @@ fi
|
||||
if [ -z "$CHK_TTY" ]; then
|
||||
echo "Adding user to tty group"
|
||||
sudo usermod -a -G tty $MYUSER ||
|
||||
{ ERRCODE="Failed to add user to tty group"; errors; }
|
||||
{ ERRCODE="Failed to add user to tty group"; errors; return; }
|
||||
else
|
||||
echo "User already in tty group"
|
||||
fi
|
||||
@@ -225,7 +244,7 @@ fi
|
||||
if [ -z "$CHK_AUDIO" ]; then
|
||||
echo "Adding user to audio group"
|
||||
sudo usermod -a -G audio $MYUSER ||
|
||||
{ ERRCODE="Failed to add user to audio group"; errors; }
|
||||
{ ERRCODE="Failed to add user to audio group"; errors; return; }
|
||||
else
|
||||
echo "User already in audio group"
|
||||
fi
|
||||
@@ -236,29 +255,29 @@ export WINEARCH=win32
|
||||
|
||||
#install dependencies
|
||||
sudo apt install -y wine-stable winetricks ||
|
||||
{ ERRCODE="Failed to install wine-stable and winetricks"; errors; }
|
||||
{ ERRCODE="Failed to install wine-stable and winetricks"; errors; return; }
|
||||
|
||||
#install with wintricks
|
||||
#winetricks winxp ||
|
||||
#{ ERRCODE="Failed to set winetricks winxp"; errors; }
|
||||
#{ ERRCODE="Failed to set winetricks winxp"; errors; return; }
|
||||
#winetricks sound=pulse ||
|
||||
#{ ERRCODE="Failed to set winetricks sound=pulse"; errors; }
|
||||
#{ ERRCODE="Failed to set winetricks sound=pulse"; errors; return; }
|
||||
#winetricks vb6run ||
|
||||
#{ ERRCODE="Failed to set winetricks vb6run"; errors; }
|
||||
#{ ERRCODE="Failed to set winetricks vb6run"; errors; return; }
|
||||
#winetricks -q vcrun2015 ||
|
||||
#{ ERRCODE="Failed to set winetricks -q vcrun2015"; errors; }
|
||||
#{ ERRCODE="Failed to set winetricks -q vcrun2015"; errors; return; }
|
||||
|
||||
### Version 2 attempt
|
||||
DISPLAY=0 WINEARCH=win32 wine wineboot ||
|
||||
{ ERRCODE="Failed to set winearch=win32 and wineboot"; errors; }
|
||||
{ ERRCODE="Failed to set winearch=win32 and wineboot"; errors; return; }
|
||||
winetricks -q dotnet35sp1 win7 sound=pulse ||
|
||||
{ ERRCODE="Failed to set winetricks dotnet35sp1 win7 sound=pulse"; errors; }
|
||||
{ ERRCODE="Failed to set winetricks dotnet35sp1 win7 sound=pulse"; errors; return; }
|
||||
winetricks -q vb6run pdh_nt4 win7 sound=pulse ||
|
||||
{ ERRCODE="Failed to set winetricks vb6run pdh_nt4 win7 sound=pulse"; errors; }
|
||||
{ ERRCODE="Failed to set winetricks vb6run pdh_nt4 win7 sound=pulse"; errors; return; }
|
||||
|
||||
#cleanup cache from installers
|
||||
rm -rf ~/.cache/winetricks/ ||
|
||||
{ ERRCODE="Failed to remove ~/.cache/winetricks files. These can be removed to free space."; errors; }
|
||||
{ ERRCODE="Failed to remove ~/.cache/winetricks files. These can be removed to free space."; errors; return; }
|
||||
|
||||
echo "You will need to select your sound system for wine in the following dialog." | yad --image=$DIR/images/corps-icon.png \
|
||||
--text-info --wrap \
|
||||
@@ -271,56 +290,66 @@ winecfg
|
||||
function installvara() {
|
||||
#download/install VARA HF/FM
|
||||
sudo apt install -y megatools curl p7zip-full ||
|
||||
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; }
|
||||
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
||||
cd $HOME/Downloads
|
||||
megadl $VARAHFLINK ||
|
||||
{ ERRCODE="Failed to download VARA HF"; errors; }
|
||||
{ ERRCODE="Failed to download VARA HF"; errors; return; }
|
||||
megadl $VARAFMLINK ||
|
||||
{ ERRCODE="Failed to download VARA FM"; errors; }
|
||||
{ ERRCODE="Failed to download VARA FM"; errors; return; }
|
||||
megadl $VARACHATLINK ||
|
||||
{ ERRCODE="Failed to download VARA Chat"; errors; }
|
||||
{ ERRCODE="Failed to download VARA Chat"; errors; return; }
|
||||
|
||||
|
||||
unzip VARA\ FM\ $VARAFMVER\ Setup.zip ||
|
||||
{ ERRCODE="Failed to unzip VARA FM"; errors; }
|
||||
{ ERRCODE="Failed to unzip VARA FM"; errors; return; }
|
||||
unzip VARA\ HF\ $VARAHFVER\ Setup.zip ||
|
||||
{ ERRCODE="Failed to unzip VARA HF"; errors; }
|
||||
{ ERRCODE="Failed to unzip VARA HF"; errors; return; }
|
||||
unzip VARA\ Chat\ $VARACHATVER\ Setup.zip ||
|
||||
{ ERRCODE="Failed to unzip VARA Chat"; errors; }
|
||||
{ ERRCODE="Failed to unzip VARA Chat"; errors; return; }
|
||||
|
||||
rm VARA\ FM\ $VARAFMVER\ Setup.zip VARA\ HF\ $VARAHFVER\ Setup.zip VARA\ Chat\ $VARACHATVER\ Setup.zip ||
|
||||
{ ERRCODE="Failed to remove VARA zip files"; errors; }
|
||||
{ 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; }
|
||||
{ ERRCODE="Failed to install VARA FM"; errors; return; }
|
||||
#install VARA with wine
|
||||
/usr/bin/wine VARA\ setup\ \(Run\ as\ Administrator\).exe ||
|
||||
{ ERRCODE="Failed to install VARA HF"; errors; }
|
||||
{ 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; }
|
||||
{ ERRCODE="Failed to install VARA Chat"; errors; return; }
|
||||
|
||||
#Install Driver
|
||||
cd $HOME/Downloads && wget http://files.k6eta.com/pdh.dll.zip ||
|
||||
{ ERRCODE="Failed to download k6eta pdh.dll drivers"; errors; }
|
||||
{ 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; }
|
||||
{ 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; }
|
||||
{ ERRCODE="Failed to move drivers to $HOME/.wine/drive_c/windows/system32"; errors; return; }
|
||||
|
||||
}
|
||||
|
||||
function installrmsexpress() {
|
||||
cd $HOME/Downloads
|
||||
wget -q -r -l1 -np -nd -A "Winlink_Express_install_*.zip" https://downloads.winlink.org/User%20Programs ||
|
||||
{ ERRCODE="Failed to download Winlink Express"; errors; }
|
||||
{ ERRCODE="Failed to download Winlink Express"; errors; return; }
|
||||
unzip Winlink_Express_install*.zip && rm Winlink_Express_install*.zip ||
|
||||
{ ERRCODE="Failed to unzip Winlink Express"; errors; }
|
||||
{ ERRCODE="Failed to unzip Winlink Express"; errors; return; }
|
||||
/usr/bin/wine Winlink_Express_install.exe ||
|
||||
{ ERRCODE="Failed to Install Winlink Express"; errors; }
|
||||
{ ERRCODE="Failed to Install Winlink Express"; errors; return; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
function installpi() {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function failure_handling() {
|
||||
|
||||
FAIL=$(cat /tmp/varafailures) || echo "No failures recorded"
|
||||
@@ -380,6 +409,9 @@ exit 1
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
set_screen_size
|
||||
confirm_mint21
|
||||
primer_menu
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
# Version 0.2
|
||||
- testing sudo keepalive and Mint 20.3 support
|
||||
|
||||
# Version 0.1
|
||||
-initial testing for Vara install on Mint 21.
|
||||
- initial testing for Vara install on Mint 21.
|
||||
Reference in New Issue
Block a user