Merge branch 'master' into 'master'

Added PFE. Updated error codes.

See merge request amrron/setup-scripts!4
This commit is contained in:
TangoBravo14
2021-08-30 18:20:07 +00:00
2 changed files with 84 additions and 4 deletions
+61 -4
View File
@@ -245,6 +245,12 @@ if hash pte 2>/dev/null; then
PTEVER="NOT INSTALLED"
fi
if hash pfe 2>/dev/null; then
PFEVER="INSTALLED"
else
PFEVER="NOT INSTALLED"
fi
if hash wsjtx 2>/dev/null; then
WSJTXVER="INSTALLED-v. Unknown"
else
@@ -1514,7 +1520,7 @@ Categories=Network;HamRadio;" > $HOME/Desktop/voacapgui.desktop ||
if [[ ! -f $USERDIR/icons/voacaplIcon.png ]]; then
mkdir -p $USERDIR/icons && \
wget -P $USERDIR/icons/ -N https://www.qsl.net/hz1jw/voacapl/downloads/voacaplIcon.png ||
{ ERRCODE="Failed to icon image for PTE"; errors; }
{ ERRCODE="Failed to icon image for VOACAPGUI"; errors; }
fi
fi
@@ -1565,6 +1571,26 @@ works.mobi/ptepc/img/pte_icon.png ||
fi
fi
if [[ -f $SECDIR/SSEFilePC/ssefencgui.jar ]]; then
echo "[Desktop Entry]
Name=PFE
GenericName=Paranoia File Encrypter
Comment=File encrypter
Exec=pfe
Icon=$USERDIR/icons/pfe_icon.png
Terminal=false
Type=Application
Categories=Network;Security;" > $HOME/Desktop/PFE.desktop ||
{ ERRCODE="Failed to create desktop icon for PFE"; errors; }
if [[ ! -f $USERDIR/icons/pfe_icon.png ]]; then
mkdir -p $USERDIR/icons && wget --no-check-certificate -P $USERDIR/icons/ -N https://www.paranoia\
works.mobi/ssefepc/img/pfe_icon.png ||
{ ERRCODE="Failed to icon image for PFE"; errors; }
fi
fi
if hash keepassxc; then
echo "[Desktop Entry]
@@ -2387,7 +2413,7 @@ EOF
}
function pfe_install() {
function pte_install() {
if ! hash java; then
sudo apt-get install -y default-jre ||
@@ -2413,6 +2439,33 @@ chmod +x /tmp/pte && sudo mv /tmp/pte /usr/local/bin/pte ||
fi
}
function pfe_install() {
if ! hash java; then
sudo apt-get install -y default-jre ||
{ ERRCODE="Failed to get default-jre dependency for PFE"; errors; return; }
fi
cd $SECDIR && wget -N http://www.paranoiaworks.mobi/download/files/SSEFilePC.zip ||
{ ERRCODE="Failed to download PFE"; errors; return; }
unzip -o SSEFilePC.zip && rm SSEFilePC.zip ||
{ ERRCODE="Failed to unzip PFE"; errors; return; }
if ! hash pfe 2>/dev/null; then
cat > /tmp/pfe <<EOF
#!/bin/bash
java -jar '$SECDIR/SSEFilePC/ssefencgui.jar'
EOF
chmod +x /tmp/pfe && sudo mv /tmp/pfe /usr/local/bin/pfe ||
{ ERRCODE="Failed to create system launcher for PFE in /usr/local/bin/"; errors; return; }
fi
}
function veracrypt_install() {
if [[ $NEWVC == "SERVER DOWN" ]]; then
echo "Veracrypt server unresponsive or broken link." >> /tmp/failures
@@ -2865,7 +2918,8 @@ yad --image=$DIR/images/corps-icon.png --center --checklist --print-column=2 --s
false "FAIL2BAN" "Intrusion Prevention Software. Recommended" "${FAIL2BANVER}" \
false "KEEPASS" "KepassXC password manager" "${KEEPASSXCVER}" \
false "ICEWEASEL" "Firefox secure browser" "${ICEWEASELVER}" \
false "PFE" "Paranoia Tools File Encrypter. Encrypt/Decrypt messages and perform Steganography" "${PTEVER}" \
false "PTE" "Paranoia Tools Text Encryption. Encrypt/Decrypt messages and perform Steganography" "${PTEVER}" \
false "PFE" "Paranoia Tools File Encrypter. Encrypt/Decrypt files" "${PFEVER}" \
false "GTKHASH" "GTK based file hash tool" "${GTKHASHVER}" \
false "GPA" "GNU Privacy Assist Key Manager" "${GPAVER}" \
false "VERACRYPT" "Disk/File Encryption. $NEWVC" "" \
@@ -2879,7 +2933,7 @@ yad --image=$DIR/images/corps-icon.png --center --checklist --print-column=2 --s
rc=$?
if [[ $rc == 2 ]]; then
securityArray=(FAIL2BAN KEEPASS ICEWEASEL PFE VERACRYPT BITMESSAGE HARDEN_SSH GTKHASH GPA)
securityArray=(FAIL2BAN KEEPASS ICEWEASEL PTE PFE VERACRYPT BITMESSAGE HARDEN_SSH GTKHASH GPA)
for i in "${securityArray[@]}"
do
@@ -3349,6 +3403,9 @@ cat /tmp/results | yad --text-info --center \
HARDEN_SSH) echo "Hardening SSH and creating guide at $HOME/Documents"
harden_ssh
;;
PTE) echo "Installing Paranoia Text Encrypter"
pte_install
;;
PFE) echo "Installing Paranoia File Encrypter"
pfe_install
;;
+23
View File
@@ -0,0 +1,23 @@
## Programs from KM4ACK's Build-a-Pi Project
__Nice to have Programs__
- libreoffice
- hamclock
- propagation
- gpredict
- tqsl
- callsign
- tempconvert
- gparted
- cqrlog
__Programs to check out__
- ax25
- pat-menu
- m0iax (js8call msg)
- xastir (aprs)
- pi-aprs
- gridtracker (wsjtx grids)
- piterm (PiQTerm tcp term protocol)
- bpq (LinBPQ)
- zygrib (grib file viewer)