Compare commits

...

4 Commits

Author SHA1 Message Date
openoms
8c20e1ad87 fix tapcli macaroon path 2025-09-08 14:58:51 +02:00
openoms
784046f0e0 add tapd and tapcli 2025-09-08 14:41:59 +02:00
openoms
2cb0ceee89 add litcli alias 2025-09-08 14:24:50 +02:00
openoms
86ae33424c lit update v0.15.2-alpha 2025-09-07 21:17:38 +02:00
2 changed files with 25 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ amd64-lean-desktop-uefi-img:
--preseed_file preseed.cfg \
--boot uefi \
--desktop gnome \
--image_type raw
--image_type raw
# Compute the checksum of the qemu image
cd ci/amd64/builds/raspiblitz-amd64-debian-lean-qemu && \

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# https://github.com/lightninglabs/lightning-terminal/releases
LITVERSION="0.14.1-alpha"
LITVERSION="0.15.2-alpha"
# command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
@@ -12,7 +12,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
fi
# check who signed the release in https://github.com/lightninglabs/lightning-terminal/releases
PGPsigner="guggero"
PGPsigner="ViktorTigerstrom"
if [ $PGPsigner = ellemouton ]; then
pgpPubKey="D7D916376026F177"
@@ -45,7 +45,7 @@ Use your Password B to login.\n
Hidden Service address for the Tor Browser (see LCD for QR):
https://${toraddress}\n
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', 'litcli', 'lit-loop', 'lit-pool', 'lit-frcli' and 'tapcli'.
" 19 74
sudo /home/admin/config.scripts/blitz.display.sh hide
else
@@ -57,7 +57,7 @@ ${fingerprint}\n
Use your Password B to login.\n
Activate TOR to access the web interface from outside your local network.\n
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', 'litcli', 'loop', 'pool', 'frcli' and 'tapcli'.
" 19 63
fi
echo "please wait ..."
@@ -150,6 +150,16 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo ln -s /mnt/hdd/app-data/.pool/ /home/lit/.pool
sudo chown lit:lit -R /mnt/hdd/app-data/.pool
echo "# Taproot Assets"
# move old data if present
sudo mv /home/loop/.tapd /mnt/hdd/app-data/ 2>/dev/null
echo "# make sure the data directory exists"
sudo mkdir -p /mnt/hdd/app-data/.tapd
echo "# symlink"
sudo rm -rf /home/lit/.tapd # not a symlink.. delete it silently
sudo ln -s /mnt/hdd/app-data/.tapd/ /home/lit/.tapd
sudo chown lit:lit -R /mnt/hdd/app-data/.tapd
echo "Detect CPU architecture ..."
isARM=$(uname -m | grep -c 'arm')
isAARCH64=$(uname -m | grep -c 'aarch64')
@@ -220,6 +230,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo install -m 0755 -o root -g root -t /usr/local/bin litd
sudo install -m 0755 -o root -g root -t /usr/local/bin loop
sudo install -m 0755 -o root -g root -t /usr/local/bin pool
sudo install -m 0755 -o root -g root -t /usr/local/bin tapcli
###########
# config #
@@ -316,15 +327,21 @@ WantedBy=multi-user.target
# aliases
echo "
alias lit-loop=\"loop --rpcserver=localhost:8443 \
alias litcli=\"litcli --rpcserver=localhost:8443 \
--tlscertpath=/home/lit/.lit/tls.cert \
--macaroonpath=/home/lit/.lit/${chain}net/lit.macaroon\"
alias loop=\"loop --rpcserver=localhost:8443 \
--tlscertpath=/home/lit/.lit/tls.cert \
--macaroonpath=/home/lit/.loop/${chain}net/loop.macaroon\"
alias lit-pool=\"pool --rpcserver=localhost:8443 \
alias pool=\"pool --rpcserver=localhost:8443 \
--tlscertpath=/home/lit/.lit/tls.cert \
--macaroonpath=/home/lit/.pool/${chain}net/pool.macaroon\"
alias lit-frcli=\"frcli --rpcserver=localhost:8443 \
alias frcli=\"frcli --rpcserver=localhost:8443 \
--tlscertpath=/home/lit/.lit/tls.cert \
--macaroonpath=/home/lit/.faraday/${chain}net/faraday.macaroon\"
alias tapcli=\"tapcli --rpcserver=localhost:8443 \
--tlscertpath=/home/lit/.lit/tls.cert \
--macaroonpath=/home/lit/.tapd/data/${chain}net/admin.macaroon\"
" | sudo tee -a /home/lit/.bashrc
# open ports on firewall