mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00
run blitz.display.sh with sudo (#2957)
This commit is contained in:
parent
eb66ab1b77
commit
fbf6db75ab
@ -167,7 +167,7 @@ fi
|
|||||||
|
|
||||||
CHOICE=$(whiptail --clear --title "Choose Mobile Wallet" --menu "" 18 75 12 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
CHOICE=$(whiptail --clear --title "Choose Mobile Wallet" --menu "" 18 75 12 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
||||||
|
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "creating install info ..."
|
echo "creating install info ..."
|
||||||
@ -195,39 +195,39 @@ case $CHOICE in
|
|||||||
;;
|
;;
|
||||||
ZAP_IOS)
|
ZAP_IOS)
|
||||||
appstoreLink="https://apps.apple.com/us/app/zap-bitcoin-lightning-wallet/id1406311960"
|
appstoreLink="https://apps.apple.com/us/app/zap-bitcoin-lightning-wallet/id1406311960"
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zap.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zap.png
|
||||||
whiptail --title "Install Fully Noded on your iOS device" \
|
whiptail --title "Install Fully Noded on your iOS device" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "StoreLink" \
|
--no-button "StoreLink" \
|
||||||
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'Zap Bitcoin'\n\nCheck that logo is like on LCD & author: Zap Technologies LLC\nWhen app is installed and started --> Continue." 12 65
|
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'Zap Bitcoin'\n\nCheck that logo is like on LCD & author: Zap Technologies LLC\nWhen app is installed and started --> Continue." 12 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
whiptail --title " App Store Link " --msgbox "\
|
whiptail --title " App Store Link " --msgbox "\
|
||||||
To install app open the following link:\n
|
To install app open the following link:\n
|
||||||
${appstoreLink}\n
|
${appstoreLink}\n
|
||||||
Or scan the qr code on the LCD with your mobile phone.
|
Or scan the qr code on the LCD with your mobile phone.
|
||||||
" 11 70
|
" 11 70
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/bonus.lndconnect.sh zap-ios tor
|
/home/admin/config.scripts/bonus.lndconnect.sh zap-ios tor
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
ZAP_ANDROID)
|
ZAP_ANDROID)
|
||||||
appstoreLink="https://play.google.com/store/apps/details?id=zapsolutions.zap"
|
appstoreLink="https://play.google.com/store/apps/details?id=zapsolutions.zap"
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zap.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zap.png
|
||||||
whiptail --title "Install Zap on your Android Phone" \
|
whiptail --title "Install Zap on your Android Phone" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "StoreLink" \
|
--no-button "StoreLink" \
|
||||||
--yesno "Open the Android Play Store on your mobile phone.\n\nSearch for --> 'zap bitcoin app'\n\nCheck that logo is like on LCD and author is: Zap\nWhen app is installed and started --> Continue." 12 65
|
--yesno "Open the Android Play Store on your mobile phone.\n\nSearch for --> 'zap bitcoin app'\n\nCheck that logo is like on LCD and author is: Zap\nWhen app is installed and started --> Continue." 12 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
whiptail --title " App Store Link " --msgbox "\
|
whiptail --title " App Store Link " --msgbox "\
|
||||||
To install app open the following link:\n
|
To install app open the following link:\n
|
||||||
${appstoreLink}\n
|
${appstoreLink}\n
|
||||||
Or scan the qr code on the LCD with your mobile phone.
|
Or scan the qr code on the LCD with your mobile phone.
|
||||||
" 11 70
|
" 11 70
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/bonus.lndconnect.sh zap-android tor
|
/home/admin/config.scripts/bonus.lndconnect.sh zap-android tor
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
@ -250,85 +250,85 @@ Please go to MAINMENU > SERVICES and activate KEYSEND first.
|
|||||||
--no-button "Link as QR code" \
|
--no-button "Link as QR code" \
|
||||||
--yesno "Download & install the SendMany APK (armeabi-v7) from GitHub:\n\n${appstoreLink}\n\nEasiest way to scan QR code on LCD and download/install.\n\nWhen installed and started -> continue." 13 65
|
--yesno "Download & install the SendMany APK (armeabi-v7) from GitHub:\n\n${appstoreLink}\n\nEasiest way to scan QR code on LCD and download/install.\n\nWhen installed and started -> continue." 13 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
/home/admin/config.scripts/blitz.display.sh qr-console ${appstoreLink}
|
/home/admin/config.scripts/blitz.display.sh qr-console ${appstoreLink}
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
checkIP2TOR LND-GRPC-API
|
checkIP2TOR LND-GRPC-API
|
||||||
/home/admin/config.scripts/bonus.lndconnect.sh sendmany-android ${connect}
|
/home/admin/config.scripts/bonus.lndconnect.sh sendmany-android ${connect}
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
ZEUS_IOS)
|
ZEUS_IOS)
|
||||||
appstoreLink="https://apps.apple.com/us/app/zeus-ln/id1456038895"
|
appstoreLink="https://apps.apple.com/us/app/zeus-ln/id1456038895"
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
||||||
whiptail --title "Install Zeus on your iOS device" \
|
whiptail --title "Install Zeus on your iOS device" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "Link as QRcode" \
|
--no-button "Link as QRcode" \
|
||||||
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'zeus ln'\n\nCheck that logo is like on LCD and author is: Zeus LN LLC\nWhen the app is installed and started --> Continue." 12 65
|
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'zeus ln'\n\nCheck that logo is like on LCD and author is: Zeus LN LLC\nWhen the app is installed and started --> Continue." 12 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
/home/admin/config.scripts/blitz.display.sh qr-console ${appstoreLink}
|
/home/admin/config.scripts/blitz.display.sh qr-console ${appstoreLink}
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/bonus.lndconnect.sh zeus-ios tor
|
/home/admin/config.scripts/bonus.lndconnect.sh zeus-ios tor
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
ZEUS_ANDROID)
|
ZEUS_ANDROID)
|
||||||
appstoreLink="https://play.google.com/store/apps/details?id=app.zeusln.zeus"
|
appstoreLink="https://play.google.com/store/apps/details?id=app.zeusln.zeus"
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
||||||
whiptail --title "Install Zeus on your Android Phone" \
|
whiptail --title "Install Zeus on your Android Phone" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "StoreLink" \
|
--no-button "StoreLink" \
|
||||||
--yesno "Open the Android Play Store on your mobile phone.\n\nSearch for --> 'zeus ln'\n\nCheck that logo is like on LCD and author is: Evan Kaloudis\nWhen app is installed and started --> Continue." 12 65
|
--yesno "Open the Android Play Store on your mobile phone.\n\nSearch for --> 'zeus ln'\n\nCheck that logo is like on LCD and author is: Evan Kaloudis\nWhen app is installed and started --> Continue." 12 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
whiptail --title " App Store Link " --msgbox "\
|
whiptail --title " App Store Link " --msgbox "\
|
||||||
To install app open the following link:\n
|
To install app open the following link:\n
|
||||||
${appstoreLink}\n
|
${appstoreLink}\n
|
||||||
Or scan the qr code on the LCD with your mobile phone.
|
Or scan the qr code on the LCD with your mobile phone.
|
||||||
" 11 70
|
" 11 70
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/bonus.lndconnect.sh zeus-android tor
|
/home/admin/config.scripts/bonus.lndconnect.sh zeus-android tor
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FULLYNODED_BTC)
|
FULLYNODED_BTC)
|
||||||
appstoreLink="https://apps.apple.com/us/app/fully-noded/id1436425586"
|
appstoreLink="https://apps.apple.com/us/app/fully-noded/id1436425586"
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_fullynoded.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_fullynoded.png
|
||||||
whiptail --title "Install Fully Noded on your iOS device" \
|
whiptail --title "Install Fully Noded on your iOS device" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "StoreLink" \
|
--no-button "StoreLink" \
|
||||||
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'fully noded'\n\nCheck that logo is like on LCD and author is: Denton LLC\nWhen app is installed and started --> Continue." 12 65
|
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'fully noded'\n\nCheck that logo is like on LCD and author is: Denton LLC\nWhen app is installed and started --> Continue." 12 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
whiptail --title " App Store Link " --msgbox "\
|
whiptail --title " App Store Link " --msgbox "\
|
||||||
To install app open the following link:\n
|
To install app open the following link:\n
|
||||||
${appstoreLink}\n
|
${appstoreLink}\n
|
||||||
Or scan the qr code on the LCD with your mobile phone.
|
Or scan the qr code on the LCD with your mobile phone.
|
||||||
" 11 70
|
" 11 70
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/bonus.fullynoded.sh
|
/home/admin/config.scripts/bonus.fullynoded.sh
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FULLYNODED_LND)
|
FULLYNODED_LND)
|
||||||
appstoreLink="https://apps.apple.com/us/app/fully-noded/id1436425586"
|
appstoreLink="https://apps.apple.com/us/app/fully-noded/id1436425586"
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_fullynoded.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_fullynoded.png
|
||||||
whiptail --title "Install Fully Noded on your iOS device" \
|
whiptail --title "Install Fully Noded on your iOS device" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "StoreLink" \
|
--no-button "StoreLink" \
|
||||||
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'fully noded'\n\nCheck that logo is like on LCD and author is: Denton LLC\nWhen app is installed and started --> Continue." 12 65
|
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'fully noded'\n\nCheck that logo is like on LCD and author is: Denton LLC\nWhen app is installed and started --> Continue." 12 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
whiptail --title " App Store Link " --msgbox "\
|
whiptail --title " App Store Link " --msgbox "\
|
||||||
To install app open the following link:\n
|
To install app open the following link:\n
|
||||||
${appstoreLink}\n
|
${appstoreLink}\n
|
||||||
Or scan the qr code on the LCD with your mobile phone.
|
Or scan the qr code on the LCD with your mobile phone.
|
||||||
" 11 70
|
" 11 70
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/bonus.lndconnect.sh fullynoded-lnd tor
|
/home/admin/config.scripts/bonus.lndconnect.sh fullynoded-lnd tor
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
@ -338,26 +338,26 @@ Or scan the qr code on the LCD with your mobile phone.
|
|||||||
/home/admin/config.scripts/cl-plugin.http.sh on
|
/home/admin/config.scripts/cl-plugin.http.sh on
|
||||||
fi
|
fi
|
||||||
appstoreLink="https://apps.apple.com/us/app/fully-noded/id1436425586"
|
appstoreLink="https://apps.apple.com/us/app/fully-noded/id1436425586"
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_fullynoded.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_fullynoded.png
|
||||||
whiptail --title "Install Fully Noded on your iOS device" \
|
whiptail --title "Install Fully Noded on your iOS device" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "StoreLink" \
|
--no-button "StoreLink" \
|
||||||
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'fully noded'\n\nCheck that logo is like on LCD and author is: Denton LLC\nWhen app is installed and started --> Continue." 12 65
|
--yesno "Open the Apple App Store on your mobile phone.\n\nSearch for --> 'fully noded'\n\nCheck that logo is like on LCD and author is: Denton LLC\nWhen app is installed and started --> Continue." 12 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
whiptail --title " App Store Link " --msgbox "\
|
whiptail --title " App Store Link " --msgbox "\
|
||||||
To install app open the following link:\n
|
To install app open the following link:\n
|
||||||
${appstoreLink}\n
|
${appstoreLink}\n
|
||||||
Or scan the qr code on the LCD with your mobile phone.
|
Or scan the qr code on the LCD with your mobile phone.
|
||||||
" 11 70
|
" 11 70
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/cl-plugin.http.sh connect
|
/home/admin/config.scripts/cl-plugin.http.sh connect
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ZEUS_CLREST)
|
ZEUS_CLREST)
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
||||||
whiptail --title "Install Zeus on your Android or iOS Phone" \
|
whiptail --title "Install Zeus on your Android or iOS Phone" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "Cancel" \
|
--no-button "Cancel" \
|
||||||
@ -365,12 +365,12 @@ ZEUS_CLREST)
|
|||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/cl.rest.sh connect
|
/home/admin/config.scripts/cl.rest.sh connect
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
ZEUS_SPARK)
|
ZEUS_SPARK)
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
||||||
whiptail --title "Install Zeus on your Android or iOS Phone" \
|
whiptail --title "Install Zeus on your Android or iOS Phone" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "Cancel" \
|
--no-button "Cancel" \
|
||||||
@ -378,26 +378,26 @@ ZEUS_SPARK)
|
|||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/cl-plugin.sparko.sh connect
|
/home/admin/config.scripts/cl-plugin.sparko.sh connect
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
SPARK)
|
SPARK)
|
||||||
appstoreLink="https://github.com/shesek/spark-wallet#mobile-app"
|
appstoreLink="https://github.com/shesek/spark-wallet#mobile-app"
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/app_zeus.png
|
||||||
whiptail --title "Install Zeus on your Android Phone" \
|
whiptail --title "Install Zeus on your Android Phone" \
|
||||||
--yes-button "Continue" \
|
--yes-button "Continue" \
|
||||||
--no-button "GitHub link" \
|
--no-button "GitHub link" \
|
||||||
--yesno "Open the ${appstoreLink} on Android to find the App Store link or binary for your phone.\n\nWhen the app is installed and started --> Continue." 12 65
|
--yesno "Open the ${appstoreLink} on Android to find the App Store link or binary for your phone.\n\nWhen the app is installed and started --> Continue." 12 65
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
sudo /home/admin/config.scripts/blitz.display.sh qr ${appstoreLink}
|
||||||
whiptail --title " GitHub link " --msgbox "\
|
whiptail --title " GitHub link " --msgbox "\
|
||||||
To install app open the following link:\n
|
To install app open the following link:\n
|
||||||
${appstoreLink}\n
|
${appstoreLink}\n
|
||||||
Or scan the QR code on the LCD with your mobile phone.
|
Or scan the QR code on the LCD with your mobile phone.
|
||||||
" 11 70
|
" 11 70
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/cl-plugin.sparko.sh connect
|
/home/admin/config.scripts/cl-plugin.sparko.sh connect
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
|
@ -120,7 +120,7 @@ else
|
|||||||
rhash=$(echo "$result" | grep r_hash | cut -d '"' -f4)
|
rhash=$(echo "$result" | grep r_hash | cut -d '"' -f4)
|
||||||
payReq=$(echo "$result" | grep payment_request | cut -d '"' -f4)
|
payReq=$(echo "$result" | grep payment_request | cut -d '"' -f4)
|
||||||
fi
|
fi
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${payReq}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${payReq}"
|
||||||
|
|
||||||
if [ $(sudo dpkg-query -l | grep "ii qrencode" | wc -l) = 0 ]; then
|
if [ $(sudo dpkg-query -l | grep "ii qrencode" | wc -l) = 0 ]; then
|
||||||
sudo apt-get install qrencode -y > /dev/null
|
sudo apt-get install qrencode -y > /dev/null
|
||||||
@ -162,8 +162,8 @@ else
|
|||||||
echo $result
|
echo $result
|
||||||
echo
|
echo
|
||||||
echo "OK the Invoice was paid - returning to menu."
|
echo "OK the Invoice was paid - returning to menu."
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/ok.png
|
sudo /home/admin/config.scripts/blitz.display.sh image /home/admin/raspiblitz/pictures/ok.png
|
||||||
sleep 2
|
sleep 2
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -182,7 +182,7 @@ else
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
|
|
||||||
fi
|
fi
|
||||||
echo "Press ENTER to return to main menu."
|
echo "Press ENTER to return to main menu."
|
||||||
|
@ -79,7 +79,7 @@ if [ "$chain" = "test" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "generating QR code ... please wait"
|
echo "generating QR code ... please wait"
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "$network:${address}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "$network:${address}"
|
||||||
|
|
||||||
# raise high focus on onchain wallet balance & pending for the next 15min
|
# raise high focus on onchain wallet balance & pending for the next 15min
|
||||||
/home/admin/_cache.sh focus ln_${LNTYPE}_${chain}net_wallet_onchain_pending 0 900
|
/home/admin/_cache.sh focus ln_${LNTYPE}_${chain}net_wallet_onchain_pending 0 900
|
||||||
@ -98,7 +98,7 @@ if [ $? -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
|
|
||||||
# follow up info
|
# follow up info
|
||||||
if [ $LNTYPE = cl ];then
|
if [ $LNTYPE = cl ];then
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||||
echo "# make changes to the LCD screen"
|
echo "# make changes to the LCD screen"
|
||||||
echo
|
echo
|
||||||
|
echo "# all commands need to run as root or with sudo"
|
||||||
echo "# blitz.display.sh image [path]"
|
echo "# blitz.display.sh image [path]"
|
||||||
echo "# blitz.display.sh qr [datastring]"
|
echo "# blitz.display.sh qr [datastring]"
|
||||||
echo "# blitz.display.sh qr-console [datastring]"
|
echo "# blitz.display.sh qr-console [datastring]"
|
||||||
@ -27,6 +28,37 @@ source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
|||||||
# but basically this just says if the driver for GPIO LCD is installed - not if connected
|
# but basically this just says if the driver for GPIO LCD is installed - not if connected
|
||||||
fb1Exists=$(ls /dev/fb1 2>/dev/null | grep -c "/dev/fb1")
|
fb1Exists=$(ls /dev/fb1 2>/dev/null | grep -c "/dev/fb1")
|
||||||
|
|
||||||
|
###################
|
||||||
|
# QR CODE KONSOLE
|
||||||
|
# fallback if no LCD is available
|
||||||
|
###################
|
||||||
|
|
||||||
|
if [ "${command}" == "qr-console" ]; then
|
||||||
|
|
||||||
|
datastring=$2
|
||||||
|
if [ ${#datastring} -eq 0 ]; then
|
||||||
|
echo "error='missing second parameter - see help'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
whiptail --title "Get ready" --backtitle "QR-Code in Terminal Window" --msgbox "Make this terminal window as large as possible - fullscreen would be best. \n\nThe QR-Code might be too large for your display. In that case, shrink the letters by pressing the keys Ctrl and Minus (or Cmd and Minus if you are on a Mac) \n\nPRESS ENTER when you are ready to see the QR-code." 15 60
|
||||||
|
|
||||||
|
clear
|
||||||
|
qrencode -t ANSI256 ${datastring}
|
||||||
|
echo "(To shrink QR code: macOS press CMD- / LINUX press CTRL-) Press ENTER when finished."
|
||||||
|
read key
|
||||||
|
|
||||||
|
clear
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# All below here - needs to be run as root user or called with sudo
|
||||||
|
if [ "$EUID" -ne 0 ]; then
|
||||||
|
echo "error='run as root'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# IMAGE
|
# IMAGE
|
||||||
###################
|
###################
|
||||||
@ -82,30 +114,6 @@ if [ "${command}" == "qr" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###################
|
|
||||||
# QR CODE KONSOLE
|
|
||||||
# fallback if no LCD is available
|
|
||||||
###################
|
|
||||||
|
|
||||||
if [ "${command}" == "qr-console" ]; then
|
|
||||||
|
|
||||||
datastring=$2
|
|
||||||
if [ ${#datastring} -eq 0 ]; then
|
|
||||||
echo "error='missing second parameter - see help'"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
whiptail --title "Get ready" --backtitle "QR-Code in Terminal Window" --msgbox "Make this terminal window as large as possible - fullscreen would be best. \n\nThe QR-Code might be too large for your display. In that case, shrink the letters by pressing the keys Ctrl and Minus (or Cmd and Minus if you are on a Mac) \n\nPRESS ENTER when you are ready to see the QR-code." 15 60
|
|
||||||
|
|
||||||
clear
|
|
||||||
qrencode -t ANSI256 ${datastring}
|
|
||||||
echo "(To shrink QR code: macOS press CMD- / LINUX press CTRL-) Press ENTER when finished."
|
|
||||||
read key
|
|
||||||
|
|
||||||
clear
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# HIDE
|
# HIDE
|
||||||
###################
|
###################
|
||||||
@ -116,13 +124,6 @@ if [ "${command}" == "hide" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
# All below here - needs to be run as root user or called with sudo
|
|
||||||
if [ "$EUID" -ne 0 ]; then
|
|
||||||
echo "error='run as root'"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# ROTATE
|
# ROTATE
|
||||||
# see issue: https://github.com/rootzoll/raspiblitz/issues/681
|
# see issue: https://github.com/rootzoll/raspiblitz/issues/681
|
||||||
|
@ -54,7 +54,7 @@ This can take multiple hours.
|
|||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
|
|
||||||
# TOR
|
# TOR
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title " BTC-RPC-Explorer " --msgbox "Open in your local web browser:
|
whiptail --title " BTC-RPC-Explorer " --msgbox "Open in your local web browser:
|
||||||
http://${localip}:3020\n
|
http://${localip}:3020\n
|
||||||
https://${localip}:3021 with Fingerprint:
|
https://${localip}:3021 with Fingerprint:
|
||||||
@ -63,7 +63,7 @@ ${passwordInfo}\n
|
|||||||
Hidden Service address for TOR Browser (QR see LCD):
|
Hidden Service address for TOR Browser (QR see LCD):
|
||||||
${toraddress}
|
${toraddress}
|
||||||
" 16 67
|
" 16 67
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
else
|
else
|
||||||
|
|
||||||
# IP + Domain
|
# IP + Domain
|
||||||
|
@ -131,7 +131,7 @@ port forwarding on router needs to be active & may change port"
|
|||||||
SHA1 ${sslFingerprintIP}"
|
SHA1 ${sslFingerprintIP}"
|
||||||
|
|
||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
text="${text}\n
|
text="${text}\n
|
||||||
TOR Browser Hidden Service address (see the QR onLCD):
|
TOR Browser Hidden Service address (see the QR onLCD):
|
||||||
${toraddress}"
|
${toraddress}"
|
||||||
@ -158,7 +158,7 @@ MAINMENU > CONNECT > BTCPay Server"
|
|||||||
|
|
||||||
whiptail --title " BTCPay Server " --msgbox "${text}" 17 69
|
whiptail --title " BTCPay Server " --msgbox "${text}" 17 69
|
||||||
|
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
echo "# please wait ..."
|
echo "# please wait ..."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -211,7 +211,7 @@ Check 'sudo nginx -t' for a detailed error message.
|
|||||||
echo
|
echo
|
||||||
echo "To connect through TOR open the Tor Browser and start with the options:"
|
echo "To connect through TOR open the Tor Browser and start with the options:"
|
||||||
echo "electrum --oneserver --server ${TORaddress}:50002:s --proxy socks5:127.0.0.1:9150"
|
echo "electrum --oneserver --server ${TORaddress}:50002:s --proxy socks5:127.0.0.1:9150"
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${TORaddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${TORaddress}"
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo "For more details check the RaspiBlitz README on ElectRS:"
|
echo "For more details check the RaspiBlitz README on ElectRS:"
|
||||||
@ -219,7 +219,7 @@ Check 'sudo nginx -t' for a detailed error message.
|
|||||||
echo
|
echo
|
||||||
echo "Press ENTER to get back to main menu."
|
echo "Press ENTER to get back to main menu."
|
||||||
read key
|
read key
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
;;
|
;;
|
||||||
STATUS)
|
STATUS)
|
||||||
sudo /home/admin/config.scripts/bonus.electrs.sh status
|
sudo /home/admin/config.scripts/bonus.electrs.sh status
|
||||||
|
@ -37,11 +37,11 @@ echo "${hiddenService}"
|
|||||||
quickConnect="btcstandup://${RPC_USER}:${PASSWORD_B}@${hiddenService}:${BITCOINRPCPORT}/?label=${hostname}"
|
quickConnect="btcstandup://${RPC_USER}:${PASSWORD_B}@${hiddenService}:${BITCOINRPCPORT}/?label=${hostname}"
|
||||||
echo
|
echo
|
||||||
echo "scan the QR Code with Fully Noded to connect to your node:"
|
echo "scan the QR Code with Fully Noded to connect to your node:"
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${quickConnect}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${quickConnect}"
|
||||||
qrencode -t ANSI256 $quickConnect
|
qrencode -t ANSI256 $quickConnect
|
||||||
echo "Press ENTER to return to the menu"
|
echo "Press ENTER to return to the menu"
|
||||||
read key
|
read key
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
clear
|
clear
|
@ -32,14 +32,14 @@ if [ "$1" = "menu" ]; then
|
|||||||
|
|
||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
# Info with TOR
|
# Info with TOR
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title " JoinMarket Web UI " --msgbox "Open in your local web browser:
|
whiptail --title " JoinMarket Web UI " --msgbox "Open in your local web browser:
|
||||||
http://${localip}:7500\n
|
http://${localip}:7500\n
|
||||||
https://${localip}:7501 with Fingerprint:
|
https://${localip}:7501 with Fingerprint:
|
||||||
${fingerprint}\n
|
${fingerprint}\n
|
||||||
Hidden Service address for TOR Browser (see LCD for QR):\n${toraddress}
|
Hidden Service address for TOR Browser (see LCD for QR):\n${toraddress}
|
||||||
" 16 67
|
" 16 67
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
else
|
else
|
||||||
# Info without TOR
|
# Info without TOR
|
||||||
whiptail --title " JoinMarket Web UI " --msgbox "Open in your local web browser & accept self-signed cert:
|
whiptail --title " JoinMarket Web UI " --msgbox "Open in your local web browser & accept self-signed cert:
|
||||||
|
@ -34,7 +34,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
|
|
||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
# Info with TOR
|
# Info with TOR
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title " Lightning Terminal " --msgbox "Open in your local web browser & accept self-signed cert:
|
whiptail --title " Lightning Terminal " --msgbox "Open in your local web browser & accept self-signed cert:
|
||||||
https://${localip}:8443\n
|
https://${localip}:8443\n
|
||||||
SHA1 Thumb/Fingerprint:
|
SHA1 Thumb/Fingerprint:
|
||||||
@ -45,7 +45,7 @@ https://${toraddress}\n
|
|||||||
For the command line switch to 'lit' user with: 'sudo su - lit'
|
For the command line switch to 'lit' user with: 'sudo su - lit'
|
||||||
use the commands: 'lncli', 'lit-loop', 'lit-pool' and 'lit-frcli'.
|
use the commands: 'lncli', 'lit-loop', 'lit-pool' and 'lit-frcli'.
|
||||||
" 19 74
|
" 19 74
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
else
|
else
|
||||||
# Info without TOR
|
# Info without TOR
|
||||||
whiptail --title " Lightning Terminal " --msgbox "Open in your local web browser & accept self-signed cert:
|
whiptail --title " Lightning Terminal " --msgbox "Open in your local web browser & accept self-signed cert:
|
||||||
|
@ -57,7 +57,7 @@ You need to accept self-signed HTTPS cert with SHA1 Fingerprint:
|
|||||||
${sslFingerprintIP}"
|
${sslFingerprintIP}"
|
||||||
|
|
||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
text="${text}\n
|
text="${text}\n
|
||||||
TOR Browser Hidden Service address (QR see LCD):
|
TOR Browser Hidden Service address (QR see LCD):
|
||||||
${toraddress}"
|
${toraddress}"
|
||||||
@ -81,7 +81,7 @@ Consider adding a IP2TOR Bridge under OPTIONS."
|
|||||||
|
|
||||||
whiptail --title " LNbits ${fundinginfo}" --yes-button "OK" --no-button "OPTIONS" --yesno "${text}" 18 69
|
whiptail --title " LNbits ${fundinginfo}" --yes-button "OK" --no-button "OPTIONS" --yesno "${text}" 18 69
|
||||||
result=$?
|
result=$?
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
echo "option (${result}) - please wait ..."
|
echo "option (${result}) - please wait ..."
|
||||||
|
|
||||||
# exit when user presses OK to close menu
|
# exit when user presses OK to close menu
|
||||||
|
@ -202,7 +202,7 @@ fi
|
|||||||
lndconnect="lndconnect://${host}:${port}${macaroonParameter}${certParameter}"
|
lndconnect="lndconnect://${host}:${port}${macaroonParameter}${certParameter}"
|
||||||
|
|
||||||
# display qr code image on LCD
|
# display qr code image on LCD
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${lndconnect}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${lndconnect}"
|
||||||
|
|
||||||
# show pairing info dialog
|
# show pairing info dialog
|
||||||
msg=""
|
msg=""
|
||||||
@ -229,7 +229,7 @@ if [ $? -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
|
|
||||||
echo "------------------------------"
|
echo "------------------------------"
|
||||||
echo "If the connection was not working:"
|
echo "If the connection was not working:"
|
||||||
|
@ -43,7 +43,7 @@ This can take multiple hours.
|
|||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
|
|
||||||
# Tor
|
# Tor
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title " Mempool " --msgbox "Open in your local web browser:
|
whiptail --title " Mempool " --msgbox "Open in your local web browser:
|
||||||
http://${localip}:4080\n
|
http://${localip}:4080\n
|
||||||
https://${localip}:4081 with Fingerprint:
|
https://${localip}:4081 with Fingerprint:
|
||||||
@ -51,7 +51,7 @@ ${fingerprint}\n
|
|||||||
Hidden Service address for Tor Browser (QR see LCD):
|
Hidden Service address for Tor Browser (QR see LCD):
|
||||||
${toraddress}
|
${toraddress}
|
||||||
" 16 67
|
" 16 67
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
else
|
else
|
||||||
|
|
||||||
# IP + Domain
|
# IP + Domain
|
||||||
|
@ -66,7 +66,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
|
|
||||||
# info with Tor
|
# info with Tor
|
||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title "Ride The Lightning (RTL - $LNTYPE - $CHAIN)" --msgbox "Open in your local web browser:
|
whiptail --title "Ride The Lightning (RTL - $LNTYPE - $CHAIN)" --msgbox "Open in your local web browser:
|
||||||
http://${localip}:${RTLHTTP}\n
|
http://${localip}:${RTLHTTP}\n
|
||||||
https://${localip}:$((RTLHTTP+1)) with Fingerprint:
|
https://${localip}:$((RTLHTTP+1)) with Fingerprint:
|
||||||
@ -74,7 +74,7 @@ ${fingerprint}\n
|
|||||||
Use your Password B to login.\n
|
Use your Password B to login.\n
|
||||||
Hidden Service address for Tor Browser (QRcode on LCD):\n${toraddress}
|
Hidden Service address for Tor Browser (QRcode on LCD):\n${toraddress}
|
||||||
" 16 67
|
" 16 67
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
|
|
||||||
# info without Tor
|
# info without Tor
|
||||||
else
|
else
|
||||||
|
@ -59,7 +59,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
|
|
||||||
# Tor
|
# Tor
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title " Specter Desktop " --msgbox "Open in your local web browser & accept self-signed cert:
|
whiptail --title " Specter Desktop " --msgbox "Open in your local web browser & accept self-signed cert:
|
||||||
https://${localip}:25441
|
https://${localip}:25441
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ Hidden Service address for TOR Browser (QR see LCD):
|
|||||||
https://${toraddress}
|
https://${toraddress}
|
||||||
Unfortunately the camera is currently not usable via Tor, though.
|
Unfortunately the camera is currently not usable via Tor, though.
|
||||||
" 18 74
|
" 18 74
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
else
|
else
|
||||||
|
|
||||||
# IP + Domain
|
# IP + Domain
|
||||||
|
@ -163,7 +163,7 @@ ${publicURL}"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# show qr code on LCD & console
|
# show qr code on LCD & console
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${connectionCode}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${connectionCode}"
|
||||||
whiptail --title " Connect App with Sphinx Relay " \
|
whiptail --title " Connect App with Sphinx Relay " \
|
||||||
--yes-button "Done" \
|
--yes-button "Done" \
|
||||||
--no-button "Show QR Code" \
|
--no-button "Show QR Code" \
|
||||||
@ -179,7 +179,7 @@ ${extraPairInfo}" 17 76
|
|||||||
read key
|
read key
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
|
|
||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
# Info with TOR
|
# Info with TOR
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title " Tallycoin Connect " --msgbox "Open in your local web browser:
|
whiptail --title " Tallycoin Connect " --msgbox "Open in your local web browser:
|
||||||
http://${localip}:8123\n
|
http://${localip}:8123\n
|
||||||
https://${localip}:8124 with Fingerprint:
|
https://${localip}:8124 with Fingerprint:
|
||||||
@ -38,7 +38,7 @@ ${fingerprint}\n
|
|||||||
Use your Password B to login.\n
|
Use your Password B to login.\n
|
||||||
Hidden Service address for TOR Browser (see LCD for QR):\n${toraddress}
|
Hidden Service address for TOR Browser (see LCD for QR):\n${toraddress}
|
||||||
" 16 72
|
" 16 72
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
else
|
else
|
||||||
# Info without TOR
|
# Info without TOR
|
||||||
whiptail --title " Tallycoin Connect " --msgbox "Open in your local web browser & accept self-signed cert:
|
whiptail --title " Tallycoin Connect " --msgbox "Open in your local web browser & accept self-signed cert:
|
||||||
|
@ -30,7 +30,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
|
|
||||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||||
# Info with TOR
|
# Info with TOR
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title " ThunderHub " --msgbox "Open in your local web browser:
|
whiptail --title " ThunderHub " --msgbox "Open in your local web browser:
|
||||||
http://${localip}:3010\n
|
http://${localip}:3010\n
|
||||||
https://${localip}:3011 with Fingerprint:
|
https://${localip}:3011 with Fingerprint:
|
||||||
@ -38,7 +38,7 @@ ${fingerprint}\n
|
|||||||
Use your Password B to login.\n
|
Use your Password B to login.\n
|
||||||
Hidden Service address for TOR Browser (see LCD for QR):\n${toraddress}
|
Hidden Service address for TOR Browser (see LCD for QR):\n${toraddress}
|
||||||
" 16 67
|
" 16 67
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
else
|
else
|
||||||
# Info without TOR
|
# Info without TOR
|
||||||
whiptail --title " ThunderHub " --msgbox "Open in your local web browser:
|
whiptail --title " ThunderHub " --msgbox "Open in your local web browser:
|
||||||
|
@ -30,7 +30,7 @@ if [ $1 = connect ];then
|
|||||||
url="http://lightning:${PASSWORD_B}@${toraddress}:9080"
|
url="http://lightning:${PASSWORD_B}@${toraddress}:9080"
|
||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
echo "
|
echo "
|
||||||
Connect Fully Noded
|
Connect Fully Noded
|
||||||
|
|
||||||
@ -58,8 +58,8 @@ https://github.com/Fonta1n3/FullyNoded/blob/master/Docs/Lightning.md#connect-ful
|
|||||||
echo
|
echo
|
||||||
echo "# Press enter to continue to show the full connection URL with all the info above"
|
echo "# Press enter to continue to show the full connection URL with all the info above"
|
||||||
read key
|
read key
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${url}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${url}"
|
||||||
clear
|
clear
|
||||||
echo "
|
echo "
|
||||||
C-lightning connection URL code for Fully Noded:
|
C-lightning connection URL code for Fully Noded:
|
||||||
@ -70,7 +70,7 @@ $url
|
|||||||
echo
|
echo
|
||||||
echo "# Press enter to hide the QRcode from the LCD"
|
echo "# Press enter to hide the QRcode from the LCD"
|
||||||
read key
|
read key
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
if [ ${#toraddress} -eq 0 ];then
|
if [ ${#toraddress} -eq 0 ];then
|
||||||
toraddresstext="Activate Tor to access the web interface from outside of the local network."
|
toraddresstext="Activate Tor to access the web interface from outside of the local network."
|
||||||
else
|
else
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
fi
|
fi
|
||||||
fingerprint=$(openssl x509 -in /home/bitcoin/.lightning/sparko-tls/cert.pem -fingerprint -noout | cut -d"=" -f2)
|
fingerprint=$(openssl x509 -in /home/bitcoin/.lightning/sparko-tls/cert.pem -fingerprint -noout | cut -d"=" -f2)
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ ${fingerprint}\n
|
|||||||
${toraddresstext}
|
${toraddresstext}
|
||||||
" 17 67
|
" 17 67
|
||||||
|
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
|
|
||||||
echo "# please wait ..."
|
echo "# please wait ..."
|
||||||
exit 0
|
exit 0
|
||||||
@ -56,14 +56,14 @@ if [ $1 = connect ];then
|
|||||||
accesskey=$(sudo cat ${CLCONF} | grep "^sparko-keys=" | cut -d= -f2 | cut -d';' -f1)
|
accesskey=$(sudo cat ${CLCONF} | grep "^sparko-keys=" | cut -d= -f2 | cut -d';' -f1)
|
||||||
url="https://${localip}:${portprefix}9000/"
|
url="https://${localip}:${portprefix}9000/"
|
||||||
#string="${url}?access-key=${accesskey}"
|
#string="${url}?access-key=${accesskey}"
|
||||||
#/home/admin/config.scripts/blitz.display.sh qr "$string"
|
#sudo /home/admin/config.scripts/blitz.display.sh qr "$string"
|
||||||
#clear
|
#clear
|
||||||
#echo "connection string (shown as a QRcode on the top and on the LCD):"
|
#echo "connection string (shown as a QRcode on the top and on the LCD):"
|
||||||
#echo "$string"
|
#echo "$string"
|
||||||
#qrencode -t ANSIUTF8 "${string}"
|
#qrencode -t ANSIUTF8 "${string}"
|
||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
echo "The Tor address is shown as a QRcode below and on the LCD"
|
echo "The Tor address is shown as a QRcode below and on the LCD"
|
||||||
echo "Scan it to your phone with a QR scanner app and paste it to: 'Host'"
|
echo "Scan it to your phone with a QR scanner app and paste it to: 'Host'"
|
||||||
echo
|
echo
|
||||||
@ -77,8 +77,8 @@ if [ $1 = connect ];then
|
|||||||
echo
|
echo
|
||||||
echo "# Press enter to continue to show the access key"
|
echo "# Press enter to continue to show the access key"
|
||||||
read key
|
read key
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${accesskey}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${accesskey}"
|
||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
echo "The Access Key is shown as a QRcode below and on the LCD"
|
echo "The Access Key is shown as a QRcode below and on the LCD"
|
||||||
@ -90,7 +90,7 @@ if [ $1 = connect ];then
|
|||||||
echo
|
echo
|
||||||
echo "# Press enter to hide the QRcode from the LCD"
|
echo "# Press enter to hide the QRcode from the LCD"
|
||||||
read key
|
read key
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,14 +32,14 @@ if [ "$1" = connect ];then
|
|||||||
hex_macaroon=$(xxd -plain /home/bitcoin/c-lightning-REST/certs/access.macaroon | tr -d '\n')
|
hex_macaroon=$(xxd -plain /home/bitcoin/c-lightning-REST/certs/access.macaroon | tr -d '\n')
|
||||||
url="https://${localip}:${portprefix}6100/"
|
url="https://${localip}:${portprefix}6100/"
|
||||||
#string="${url}?${hex_macaroon}"
|
#string="${url}?${hex_macaroon}"
|
||||||
#/home/admin/config.scripts/blitz.display.sh qr "$string"
|
#sudo /home/admin/config.scripts/blitz.display.sh qr "$string"
|
||||||
#clear
|
#clear
|
||||||
#echo "connection string (shown as a QRcode on the top and on the LCD):"
|
#echo "connection string (shown as a QRcode on the top and on the LCD):"
|
||||||
#echo "$string"
|
#echo "$string"
|
||||||
#qrencode -t ANSIUTF8 "${string}"
|
#qrencode -t ANSIUTF8 "${string}"
|
||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
echo "The Tor address is shown as a QRcode below and on the LCD"
|
echo "The Tor address is shown as a QRcode below and on the LCD"
|
||||||
echo "Scan it to your phone with a QR scanner app and paste it to: 'Host'"
|
echo "Scan it to your phone with a QR scanner app and paste it to: 'Host'"
|
||||||
echo
|
echo
|
||||||
@ -55,8 +55,8 @@ if [ "$1" = connect ];then
|
|||||||
echo
|
echo
|
||||||
echo "# Press enter to continue to show the Macaroon"
|
echo "# Press enter to continue to show the Macaroon"
|
||||||
read key
|
read key
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${hex_macaroon}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${hex_macaroon}"
|
||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
echo "The Macaroon is shown as a QRcode below and on the LCD"
|
echo "The Macaroon is shown as a QRcode below and on the LCD"
|
||||||
@ -68,7 +68,7 @@ if [ "$1" = connect ];then
|
|||||||
echo
|
echo
|
||||||
echo "# Press enter to hide the QRcode from the LCD"
|
echo "# Press enter to hide the QRcode from the LCD"
|
||||||
read key
|
read key
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
if [ ${#toraddress} -eq 0 ];then
|
if [ ${#toraddress} -eq 0 ];then
|
||||||
toraddresstext="Activate Tor to access the web interface from outside of the local network."
|
toraddresstext="Activate Tor to access the web interface from outside of the local network."
|
||||||
else
|
else
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
fi
|
fi
|
||||||
fingerprint=$(openssl x509 -in /home/bitcoin/.spark-wallet/tls/cert.pem -fingerprint -noout | cut -d"=" -f2)
|
fingerprint=$(openssl x509 -in /home/bitcoin/.spark-wallet/tls/cert.pem -fingerprint -noout | cut -d"=" -f2)
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ ${fingerprint}\n
|
|||||||
${toraddresstext}
|
${toraddresstext}
|
||||||
" 17 67
|
" 17 67
|
||||||
|
|
||||||
/home/admin/config.scripts/blitz.display.sh hide
|
sudo /home/admin/config.scripts/blitz.display.sh hide
|
||||||
|
|
||||||
echo "# please wait ..."
|
echo "# please wait ..."
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user