___|  _ \   |  |    |   |_ _|\ \     / ____|
 |     |   |  |  |    |   |  |  \ \   /  __|
 |   | |   | ___ __|  ___ |  |   \ \ /   |
\____|\___/     _|   _|  _|___|   \_/   _____| 

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

How to run Lightning Network Node on Ubuntu

BY: @k0dlaty | CREATED: March 22, 2018, 11:28 a.m. | VOTES: 66 | PAYOUT: $0.99 | [ VOTE ]

How to run LND on Ubuntu

[IMAGE: https://steemitimages.com/DQmbBpUMzDujr6WCYo7Ye5uJuCNM85nWeUgB4G1e6AjmVAa/Zrzut%20ekranu%202018-03-22%20o%2011.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
txindex=1

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 https://github.com/ElementsProject/lightning.git
$ cd lightning
$ make
Before starting node you can edit config file.
$ nano ~/.lightning/config
alias=Enter Your Node Alias
rgb=000000
port=9735
network=bitcoin
log-level=debug
fee-base=100
fee-per-satoshi=1

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 176.115.25.48 9735
$ ./cli/lightning-cli fundchannel 02de874acb4af41a685c112b68a30b67a2d5cdb57cd601c96b18ced1bc2699229d 50000

TAGS: [ #bitcoin ] [ #lnd ] [ #lightning ] [ #node ] [ #lightningnetwork ]

Replies

@w4cky | March 22, 2018, 12:25 p.m. | Votes: 0 | [ VOTE ]

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?

@k0dlaty | March 22, 2018, 12:29 p.m. | Votes: 2 | [ VOTE ]

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.

@donkon | March 22, 2018, 12:29 p.m. | Votes: 0 | [ VOTE ]

Interesting.

@steem.ali | March 22, 2018, 12:57 p.m. | Votes: 0 | [ VOTE ]

Great job

@mightbemike | March 22, 2018, 3:16 p.m. | Votes: 0 | [ VOTE ]

very useful post, thanks!

@steemitboard | March 22, 2018, 4:05 p.m. | Votes: 1 | [ VOTE ]

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

[IMAGE: https://steemitimages.com/70x80/http://steemitboard.com/notifications/posts.png] Award for the number of posts published
[IMAGE: https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png] 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!

@steemitboard | July 13, 2018, 2:02 p.m. | Votes: 0 | [ VOTE ]

[IMAGE: https://steemitimages.com/175x175/http://steemitboard.com/@k0dlaty/level.png?201807131202]
@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!

@steemitboard | March 7, 2019, 7:08 a.m. | Votes: 0 | [ VOTE ]

Congratulations @k0dlaty! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@k0dlaty/birthday2.pngHappy 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!
@gkucmierz | June 25, 2019, 7:04 a.m. | Votes: 1 | [ VOTE ]

Po komendzie update dostaję błąd:

W: Failed to fetch http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
@steemitboard | March 7, 2020, 6:36 a.m. | Votes: 0 | [ VOTE ]

Congratulations @k0dlaty! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@k0dlaty/birthday3.pngHappy Birthday! - You are on the Steem blockchain for 3 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Downvote challenge - Add up to 3 funny badges to your boardUse your witness votes and get the Community Badge

Vote for @Steemitboard as a witness to get one more award and increased upvotes!
[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>