layout | title | parent | grand_parent | nav_exclude | has_toc |
---|---|---|---|---|---|
default |
lnbalance script |
+ Lightning |
Bonus Section |
true |
false |
{: .no_toc }
The following script was created by RobClark56{:target="_blank"} and helps to get a better system overview.
Difficulty: Easy {: .label .label-green }
Status: Tested v3 {: .label .label-green }
Table of contents {: .text-delta }
- TOC {:toc}
-
As user “admin”, download the script
$ cd /tmp $ wget https://raw.githubusercontent.com/raspibolt/raspibolt/master/resources/lnbalance
-
You can investigate the content of the script to ensure that there is no malicious code in it. Once done press q to quit.
$ less lnbalance > #!/bin/bash > # RaspiBolt channel balance display, by robclark56 > [...]
-
Make the script executable (check by displaying the file name, it should have become green)
$ chmod +x lnbalance $ ls -la
-
Move the file to the global bin(aries) folder
$ sudo mv lnbalance /usr/local/bin $ cd
-
With the "admin" user, run
lnbalance
$ lnbalance > mainnet (sat) | Local| Remote|Commitment Fees| > Wallet | 122236| | | > Active Channels 12| 919850| 822047| 5655| > Inactive Channels 0| 0| 0| 0| > Total 12| 1042086| 822047| 5655|
-
To uninstall
lnbalance
$ sudo rm /usr/local/bin/lnbalance $ cd
<< Back: + Lightning