mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-10 12:53:01 +02:00
Merge branch 'master' of https://github.com/rootzoll/raspiblitz
This commit is contained in:
@@ -393,7 +393,6 @@ What you do is in priciple:
|
|||||||
|
|
||||||
This is highly experimental. And again: If you restore the LND with an backup that is not representing the latest channel state, this will trigger the lightning "penalty" mechanism - allowing your channel counter part to grab all the funds from a channel. Its a measure of last resort. But if its working for you, let us know.
|
This is highly experimental. And again: If you restore the LND with an backup that is not representing the latest channel state, this will trigger the lightning "penalty" mechanism - allowing your channel counter part to grab all the funds from a channel. Its a measure of last resort. But if its working for you, let us know.
|
||||||
|
|
||||||
|
|
||||||
## Mobile Development: Connect RaspiBlitz without a Router/Switch
|
## Mobile Development: Connect RaspiBlitz without a Router/Switch
|
||||||
|
|
||||||
To connect a RaspiBlitz directly (without a router/switch) to your laptop and share the WIFI internet connection, you can follow this [guide for OSX](https://medium.com/@tzhenghao/how-to-ssh-into-your-raspberry-pi-with-a-mac-and-ethernet-cable-636a197d055). In short:
|
To connect a RaspiBlitz directly (without a router/switch) to your laptop and share the WIFI internet connection, you can follow this [guide for OSX](https://medium.com/@tzhenghao/how-to-ssh-into-your-raspberry-pi-with-a-mac-and-ethernet-cable-636a197d055). In short:
|
||||||
|
@@ -73,8 +73,14 @@ while :
|
|||||||
# before setup even started
|
# before setup even started
|
||||||
if [ ${setupStep} -eq 0 ]; then
|
if [ ${setupStep} -eq 0 ]; then
|
||||||
|
|
||||||
|
# check for internet connection
|
||||||
|
# https://en.wikipedia.org/wiki/1.1.1.1
|
||||||
|
online=$(ping 1.1.1.1 -c 1 -W 2 | grep -c '1 received')
|
||||||
|
if [ ${online} -eq 0 ]; then
|
||||||
|
message="no internet connection"
|
||||||
|
|
||||||
# when in presync - get more info on progress
|
# when in presync - get more info on progress
|
||||||
if [ "${state}" = "presync" ]; then
|
elif [ "${state}" = "presync" ]; then
|
||||||
# get blockchain sync progress
|
# get blockchain sync progress
|
||||||
blockchaininfo="$(sudo -u root bitcoin-cli -conf=/home/admin/assets/bitcoin.conf getblockchaininfo 2>/dev/null)"
|
blockchaininfo="$(sudo -u root bitcoin-cli -conf=/home/admin/assets/bitcoin.conf getblockchaininfo 2>/dev/null)"
|
||||||
message="starting"
|
message="starting"
|
||||||
@@ -83,15 +89,13 @@ while :
|
|||||||
message=$(echo "${message}*100" | bc)
|
message=$(echo "${message}*100" | bc)
|
||||||
message="${message}%"
|
message="${message}%"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# when old data - improve message
|
# when old data - improve message
|
||||||
if [ "${state}" = "olddata" ]; then
|
elif [ "${state}" = "olddata" ]; then
|
||||||
message="login for manual migration"
|
message="login for manual migration"
|
||||||
fi
|
|
||||||
|
|
||||||
# when no HDD - improve message
|
# when no HDD - improve message
|
||||||
if [ "${state}" = "nohdd" ]; then
|
elif [ "${state}" = "nohdd" ]; then
|
||||||
message="Connect HHD"
|
message="Connect HHD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -27,8 +27,13 @@ if [ ${#item} -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if no progress info
|
# if no progress info
|
||||||
|
online=1
|
||||||
if [ ${#item} -eq 0 ]; then
|
if [ ${#item} -eq 0 ]; then
|
||||||
item="?"
|
item="?"
|
||||||
|
|
||||||
|
# check if offline
|
||||||
|
# https://en.wikipedia.org/wiki/1.1.1.1
|
||||||
|
online=$(ping 1.1.1.1 -c 1 -W 2 | grep -c '1 received')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# get total number of blocks
|
# get total number of blocks
|
||||||
@@ -48,7 +53,11 @@ isWaitingBlockchain=$( sudo -u bitcoin tail -n 2 /mnt/hdd/lnd/logs/${network}/${
|
|||||||
if [ ${isWaitingBlockchain} -gt 0 ]; then
|
if [ ${isWaitingBlockchain} -gt 0 ]; then
|
||||||
isInitialChainSync=1
|
isInitialChainSync=1
|
||||||
fi
|
fi
|
||||||
if [ ${isInitialChainSync} -gt 0 ]; then
|
if [ ${online} -eq 0 ]; then
|
||||||
|
heigh=7
|
||||||
|
width=44
|
||||||
|
infoStr=$(echo " Waiting INTERNET CONNECTION\n RaspiBlitz cannot ping 1.1.1.1\n Local IP is ${localip}\n Please check cables and router.")
|
||||||
|
elif [ ${isInitialChainSync} -gt 0 ]; then
|
||||||
heigh=7
|
heigh=7
|
||||||
infoStr=" Waiting for final Blockchain Sync\n Progress: ${progress} %\n Please wait - this can take some time.\n ssh admin@${localip}\n Password A"
|
infoStr=" Waiting for final Blockchain Sync\n Progress: ${progress} %\n Please wait - this can take some time.\n ssh admin@${localip}\n Password A"
|
||||||
if [ "$USER" = "admin" ]; then
|
if [ "$USER" = "admin" ]; then
|
||||||
|
@@ -41,9 +41,10 @@ read key
|
|||||||
|
|
||||||
clear
|
clear
|
||||||
echo "*** STEP 2 : SCAN MACAROON (make whole QR code fill camera) ***"
|
echo "*** STEP 2 : SCAN MACAROON (make whole QR code fill camera) ***"
|
||||||
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 -e "${myip}:10009,\n$(xxd -p -c2000 ./.lnd/data/chain/${network}/${chain}net/admin.macaroon)," > qr.txt && cat ./.lnd/tls.cert >>qr.txt && qrencode -t ANSI256 < qr.txt
|
||||||
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished."
|
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished."
|
||||||
read key
|
read key
|
||||||
|
shred qr.txt
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "Now press 'Connect' within the Shango Wallet."
|
echo "Now press 'Connect' within the Shango Wallet."
|
||||||
|
@@ -126,7 +126,7 @@ do
|
|||||||
|
|
||||||
# building REST command
|
# building REST command
|
||||||
passwordC=$(cat /root/lnd.autounlock.pwd)
|
passwordC=$(cat /root/lnd.autounlock.pwd)
|
||||||
sudo python /home/admin/config.scripts/lnd.unlock.py $passwordC
|
sudo python /home/admin/config.scripts/lnd.unlock.py '$passwordC'
|
||||||
|
|
||||||
#walletPasswordBase64=$(cat /root/lnd.autounlock.pwd | tr -d '\n' | base64 -w0)
|
#walletPasswordBase64=$(cat /root/lnd.autounlock.pwd | tr -d '\n' | base64 -w0)
|
||||||
#MACAROON_HEADER="Grpc-Metadata-macaroon: $(xxd -ps -u -c 1000 /mnt/hdd/lnd/data/chain/${network}/${chain}net/admin.macaroon)"
|
#MACAROON_HEADER="Grpc-Metadata-macaroon: $(xxd -ps -u -c 1000 /mnt/hdd/lnd/data/chain/${network}/${chain}net/admin.macaroon)"
|
||||||
|
@@ -2,20 +2,18 @@
|
|||||||
|
|
||||||
*The RaspiBlitz software is build and tested for the following Hardware set that you can buy cheap on taobao.com:*
|
*The RaspiBlitz software is build and tested for the following Hardware set that you can buy cheap on taobao.com:*
|
||||||
|
|
||||||
Set (¥378.00 CNY)
|
Set RaspBerry Pi + accessories (¥378.00 CNY) :
|
||||||
* RaspBerry Pi 3 B+
|
* RaspBerry Pi 3 B+
|
||||||
* Micro SD-Card 16GB
|
* Micro SD-Card 16GB
|
||||||
* Power Unit 2.5A
|
* Power Unit 2.5A
|
||||||
* several items (e.g. cooling fins)
|
* several items (e.g. cooling fins)
|
||||||
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.46982e8dibAzMc&id=550270480898&_u=b110k44d3302
|
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.46982e8dibAzMc&id=550270480898&_u=b110k44d3302
|
||||||
|
|
||||||
Single HDD (Bulk)
|
Single HDD (Bulk) :
|
||||||
* 1TB Hard Drive (¥379.00 CNY)
|
* 1TB Hard Drive (¥379.00 CNY)
|
||||||
https://detail.tmall.com/item.htm?id=38476523976&spm=a1z09.2.0.0.46982e8dibAzMc&_u=b110k44d53f4&sku_properties=5919063:6536025
|
https://detail.tmall.com/item.htm?id=38476523976&spm=a1z09.2.0.0.46982e8dibAzMc&_u=b110k44d53f4&sku_properties=5919063:6536025
|
||||||
|
|
||||||
Set (¥119.00 CNY)
|
Set LCD Display + Clear case (acrylic) (¥110.00 CNY) :
|
||||||
* LCD-Display
|
https://item.taobao.com/item.htm?spm=a230r.1.14.1.66245df05JM71C&id=579623655270&ns=1&abbucket=3#detail
|
||||||
* Case (acrylic)
|
|
||||||
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.46982e8dibAzMc&id=576167736126&_u=b110k44df816
|
|
||||||
|
|
||||||
**Total Price: ¥876.00 CNY** approx. 111 EUR or 128 USD
|
**Total Price: ¥867.00 CNY** approx. 111 EUR or 128 USD
|
||||||
|
Reference in New Issue
Block a user