Browse Source

assets

#146
rootzoll 7 years ago
parent
commit
66c8f7326b
  1. 4
      home.admin/20initDialog.sh
  2. 4
      home.admin/50downloadHDD.sh
  3. 2
      home.admin/60finishHDD.sh
  4. 2
      home.admin/70initLND.sh
  5. 23
      home.admin/assets/bitcoin.conf
  6. 22
      home.admin/assets/lnd.conf
  7. 8683
      home.admin/assets/raspiblitz-hdd-2018-07-16.torrent

4
home.admin/20initDialog.sh

@ -13,7 +13,7 @@ while [ ${#result} -eq 0 ]
done
# set lightning alias
sed -i "7s/.*/alias=$result/" ./templates/lnd.conf
sed -i "7s/.*/alias=$result/" ./assests/lnd.conf
# store hostname for later - to be set right before the next reboot
# work around - because without a reboot the hostname seems not updates in the whole system
@ -69,7 +69,7 @@ while [ ${#result} -lt 8 ]
done
# set Bitcoin RPC Password (for admin bitcoin-cli & template for user bitcoin bitcoind)
sed -i "14s/.*/rpcpassword=$result/" ./templates/bitcoin.conf
sed -i "14s/.*/rpcpassword=$result/" ./assets/bitcoin.conf
sed -i "6s/.*/rpcpassword=$result/" ./.bitcoin/bitcoin.conf
# success info dialog

4
home.admin/50downloadHDD.sh

@ -1,7 +1,7 @@
#!/bin/sh
# name of torrentfile = name of directory in torrent
torrent="raspiblitz-hdd-2018-6-27"
torrent="raspiblitz-hdd-2018-07-16"
echo ""
echo "*** Checking HDD ***"
@ -19,7 +19,7 @@ if [ ${mountOK} -eq 1 ]; then
tmpfile=$(mktemp)
chmod a+x $tmpfile
echo "killall transmission-cli" > $tmpfile
sudo transmission-cli ./download/$torrent.torrent -D -w /mnt/hdd -f $tmpfile
sudo transmission-cli ./assets/$torrent.torrent -D -w /mnt/hdd -f $tmpfile
echo ""
echo "*** Moving Files ***"
echo "moving files ..."

2
home.admin/60finishHDD.sh

@ -11,7 +11,7 @@ if [ ${mountOK} -eq 1 ]; then
###### LINK HDD
echo ""
echo "*** Prepare Bitcoin ***"
sudo cp /home/admin/templates/bitcoin.conf /mnt/hdd/bitcoin/bitcoin.conf
sudo cp /home/admin/assets/bitcoin.conf /mnt/hdd/bitcoin/bitcoin.conf
sudo ln -s /mnt/hdd/bitcoin /home/bitcoin/.bitcoin
sudo mkdir /mnt/hdd/lnd
sudo chown -R bitcoin:bitcoin /mnt/hdd/lnd

2
home.admin/70initLND.sh

@ -41,7 +41,7 @@ echo ""
echo "*** LND Config ***"
configExists=$( sudo ls /mnt/hdd/lnd/ | grep -c lnd.conf )
if [ ${configExists} -eq 0 ]; then
sudo cp /home/admin/templates/lnd.conf /mnt/hdd/lnd/lnd.conf
sudo cp /home/admin/assets/lnd.conf /mnt/hdd/lnd/lnd.conf
sudo chown bitcoin:bitcoin /mnt/hdd/lnd/lnd.conf
if [ -d /home/bitcoin/.lnd ]; then
echo "OK - LND config written"

23
home.admin/assets/bitcoin.conf

@ -0,0 +1,23 @@
# bitcoind configuration
# remove the following line to enable Bitcoin mainnet
testnet=1
# Bitcoind options
server=1
daemon=1
txindex=1
disablewallet=1
# Connection settings
rpcuser=raspibolt
# LINE15 -insert-> rpcpassword=[PASSWORDB]
zmqpubrawblock=tcp://127.0.0.1:29000
zmqpubrawtx=tcp://127.0.0.1:29000
# Raspberry Pi optimizations
dbcache=100
maxorphantx=10
maxmempool=50
maxconnections=40
maxuploadtarget=5000

22
home.admin/assets/lnd.conf

@ -0,0 +1,22 @@
# lnd configuration
[Application Options]
debuglevel=info
debughtlc=true
maxpendingchannels=5
# LINE7 -insert-> alias=[ALIAS]
color=#68F442
[Bitcoin]
bitcoin.active=1
# enable either testnet or mainnet
bitcoin.testnet=1
#bitcoin.mainnet=1
bitcoin.node=bitcoind
[autopilot]
autopilot.active=1
autopilot.maxchannels=5
autopilot.allocation=0.6

8683
home.admin/assets/raspiblitz-hdd-2018-07-16.torrent

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save