How to run Lightning Network Node on Ubuntu

in bitcoin •  last year  (edited)

How to run LND on Ubuntu

Zrzut ekranu 2018-03-22 o 11.22.26.png

1. You need Bitcoin Full Node:

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:bitcoin/bitcoin
$ sudo apt-get update
$ sudo apt-get install -y bitcoind

You need to edit bitcoin.conf [ I use nano] It's important to have set txindex.

$ nano ~/.bitcoin/bitcoin.conf

Start Bitcoin.

$ bitcoind

Wait for the full synchronization.

2. Install lightning. Then run Bitcoin and Lightning.

$ sudo apt-get install -y autoconf automake build-essential git libtool libgmp-dev libsqlite3-dev python python3 net-tools libsodium-dev
$ git clone
$ cd lightning
$ make

Before starting node you can edit config file.
$ nano ~/.lightning/config
alias=Enter Your Node Alias

Start Your node.
$ bitcoind & ./lightningd/lightningd

3. You need to add some funds to your node

$ ./cli/lightning-cli newaddr

4. Open channel to Poland :)

$ ./cli/lightning-cli connect 02de874acb4af41a685c112b68a30b67a2d5cdb57cd601c96b18ced1bc2699229d 9735
$ ./cli/lightning-cli fundchannel 02de874acb4af41a685c112b68a30b67a2d5cdb57cd601c96b18ced1bc2699229d 50000

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Po komendzie update dostaję błąd:

W: Failed to fetch  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Open channel to Poland? LOL Open channel to Bigaj :P

To nie artykuł tylko zrzut komend ;D
./cli/lightning-cli newaddr - on generuje nowy adres na ktory trzeba wyslac BTC?

Dokładnie dostajesz adres portfela BTC z którego tworzysz później kanały.

P.S. komendy bo chciałem by każdy w prosty sposób dał radę postawić LND.


Great job

very useful post, thanks!

Congratulations @k0dlaty! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of posts published
Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.

To support your work, I also upvoted your post!
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!

@k0dlaty, sorry to see you have less Steem Power.
Your level lowered and you are now a Red Fish!

Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Belgium vs England

Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @k0dlaty! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

Click here to view your Board

Vote for @Steemitboard as a witness and get one more award and increased upvotes!