Patryk Bigaj avatar

How to run Lightning Network Node on Ubuntu

k0dlaty

Published: 22 Mar 2018 › Updated: 22 Mar 2018How to run Lightning Network Node on Ubuntu

How to run Lightning Network Node on Ubuntu

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
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

Leave How to run Lightning Network Node on Ubuntu to:

Written by

Read more #bitcoin posts


Best Posts From Patryk Bigaj

We have not curated any of k0dlaty's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Patryk Bigaj