-
Notifications
You must be signed in to change notification settings - Fork 10
LND Setup on Ubuntu
Dan Janosik edited this page Apr 3, 2021
·
3 revisions
This assumes that you're running LND
on the same server as Bitcoin Core
after running the instructions: Bitcoin Core Setup on Ubuntu Server
Reference: LND Install docs
wget https://dl.google.com/go/go1.15.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.15.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
# add the below 2 lines to ~/.bashrc
export GOPATH=~/gocode
export PATH=$PATH:$GOPATH/bin
cd /home/bitcoin
git clone https://github.com/lightningnetwork/lnd
cd lnd
make install
Config setup
mkdir ~/.lnd
vim ~/.lnd/lnd.conf
Config contents
alias=myalias
color=#000000
rpclisten=0.0.0.0:10009
externalip=PUBLIC_IP
bitcoin.active=true
bitcoin.mainnet=true
bitcoin.node=bitcoind
bitcoind.rpcuser=rpc-user
bitcoind.rpcpass=rpc-password
bitcoind.zmqpubrawblock=tcp://0.0.0.0:28332
bitcoind.zmqpubrawtx=tcp://0.0.0.0:28333
tor.active
tor.v3=true
Startup. This will generate certs and wait for wallet setup...
nohup lnd > ~/.lnd/out.log &
Create or unlock wallet
lncli create
# or
lncli unlock
To update:
cd /home/bitcoin/lnd
make clean && make && make install