raspiblitz/home.admin/97addMobileWalletShango.sh

48 lines
1.8 KiB
Bash
Raw Normal View History

2018-08-23 03:08:09 +02:00
#!/bin/bash
2018-12-06 14:36:02 +01:00
# load raspiblitz config data (with backup from old config)
source /mnt/hdd/raspiblitz.conf 2>/dev/null
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
if [ ${#chain} -eq 0 ]; then
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
2018-08-24 20:35:55 +02:00
fi
2018-08-23 03:08:09 +02:00
# make sure qrcode-encoder in installed
clear
echo "*** Setup ***"
sudo apt-get install qrencode -y
# get local IP
2018-08-23 03:09:58 +02:00
myip=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
2018-08-23 03:08:09 +02:00
clear
echo "******************************"
echo "Connect Shango Mobile Wallet"
echo "******************************"
echo ""
echo "GETTING THE APP"
2018-10-17 00:41:24 +02:00
echo "At the moment this app is in public beta testing:"
echo "iOS: Read https://testflight.apple.com/join/WwCjFnS8 (open on device)"
echo "Android: https://play.google.com/apps/testing/com.shango (open on device)"
2018-08-23 03:08:09 +02:00
echo ""
2018-08-23 03:11:27 +02:00
echo "*** STEP 1 ***"
2018-08-29 18:21:12 +02:00
echo "Once you have the app is running make sure you are on the same local network (WLAN same as LAN)."
echo "Then go to --> 'Connect to your LND Server'"
echo "There you see three 3 form fields to fill out. Skip those and go right to the buttons below."
2018-08-23 03:51:54 +02:00
echo ""
2018-08-29 18:21:12 +02:00
echo "Click on the 'Scan OR' button"
echo "Make the this terminal as big as possible - fullscreen would be best."
echo "Then PRESS ENTER here in the terminal to generare the QR code and scan it with the app."
2018-08-23 03:08:09 +02:00
read key
clear
2018-08-23 03:11:27 +02:00
echo "*** STEP 2 : SCAN MACAROON (make whole QR code fill camera) ***"
2018-08-29 18:21:12 +02:00
echo -e "${myip}:10009,\n$(xxd -p -c2000 ./.lnd/data/chain/bitcoin/mainnet/admin.macaroon)," > qr.txt && cat ./.lnd/tls.cert >>qr.txt && qrencode -t ANSIUTF8 < qr.txt
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished."
2018-08-23 03:08:09 +02:00
read key
clear
echo "Now press 'Connect' within the Shango Wallet."
echo "If its not working - check issues on GitHub:"
echo "https://github.com/neogeno/shango-lightning-wallet/issues"
echo ""