How to run Lightning Network Node on Ubuntu

in #bitcoin7 years ago (edited)

How to run LND on Ubuntu

<p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmbBpUMzDujr6WCYo7Ye5uJuCNM85nWeUgB4G1e6AjmVAa/Zrzut%20ekranu%202018-03-22%20o%2011.22.26.png" alt="Zrzut ekranu 2018-03-22 o 11.22.26.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmbBpUMzDujr6WCYo7Ye5uJuCNM85nWeUgB4G1e6AjmVAa/Zrzut%20ekranu%202018-03-22%20o%2011.22.26.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmbBpUMzDujr6WCYo7Ye5uJuCNM85nWeUgB4G1e6AjmVAa/Zrzut%20ekranu%202018-03-22%20o%2011.22.26.png 2x" /> <h2>1. You need Bitcoin Full Node: <p dir="auto"><code>$ sudo apt-get install software-properties-common<br /> $ sudo add-apt-repository ppa:bitcoin/bitcoin<br /> $ sudo apt-get update<br /> $ sudo apt-get install -y bitcoind <h3>You need to edit bitcoin.conf [ I use nano] It's important to have set txindex. <p dir="auto"><code>$ nano ~/.bitcoin/bitcoin.conf<br /> txindex=1 <h3>Start Bitcoin. <p dir="auto"><code>$ bitcoind <p dir="auto">Wait for the full synchronization. <h1>2. Install lightning. Then run Bitcoin and Lightning. <p dir="auto"><code>$ sudo apt-get install -y autoconf automake build-essential git libtool libgmp-dev libsqlite3-dev python python3 net-tools libsodium-dev<br /> <code>$ git clone https://github.com/ElementsProject/lightning.git<br /> $ cd lightning<br /> $ make<br /> Before starting node you can edit config file.<br /> <code>$ nano ~/.lightning/config<br /> <code>alias=Enter Your Node Alias<br /> rgb=000000<br /> port=9735<br /> network=bitcoin<br /> log-level=debug<br /> fee-base=100<br /> fee-per-satoshi=1<br /> <p dir="auto">Start Your node.<br /> <code>$ bitcoind & ./lightningd/lightningd <h1>3. You need to add some funds to your node <p dir="auto"><code>$ ./cli/lightning-cli newaddr <h1>4. Open channel to Poland :) <p dir="auto"><code>$ ./cli/lightning-cli connect 02de874acb4af41a685c112b68a30b67a2d5cdb57cd601c96b18ced1bc2699229d 176.115.25.48 9735<br /> $ ./cli/lightning-cli fundchannel 02de874acb4af41a685c112b68a30b67a2d5cdb57cd601c96b18ced1bc2699229d 50000
Sort:  

Po komendzie update dostaję błąd:

<pre><code>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.

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.

Interesting.

Great job

very useful post, thanks!

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

<p dir="auto"><a href="http://steemitboard.com/@k0dlaty" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/posts.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/posts.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/posts.png 2x" /> Award for the number of posts published<br /> <a href="http://steemitboard.com/@k0dlaty" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png 2x" /> Award for the number of upvotes received <p dir="auto">Click on any badge to view your own Board of Honor on SteemitBoard. <p dir="auto">To support your work, I also upvoted your post!<br /> For more information about SteemitBoard, click <a href="https://steemit.com/@steemitboard" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here <p dir="auto">If you no longer want to receive notifications, reply to this comment with the word <code>STOP <blockquote> <p dir="auto">Upvote this notification to help all Steemit users. Learn why <a href="https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here!



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

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!

Congratulations @k0dlaty! You received a personal award!

Happy 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 board
Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!