Skip to content

Instantly share code, notes, and snippets.

@bensig
Last active June 20, 2021 23:27
Show Gist options
  • Save bensig/1556da5e6782437c056f2c724e1716b3 to your computer and use it in GitHub Desktop.
Save bensig/1556da5e6782437c056f2c724e1716b3 to your computer and use it in GitHub Desktop.
Installing LND like a boss
# install go
sudo snap install --classic go
# Create a 'go' directory in your home directory:
mkdir ~/go
# set GO PATH and PATH
echo "export GOPATH=$HOME/go" >> .bashrc
echo "export PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> .bashrc
source .bashrc
# lnd is now using dep to manage dependancies, and dep has some additional requirements for development tools, so make sure you have the build-essential package installed:
sudo apt-get install build-essential
sudo apt-get install git-core
# install go deps
go get -u github.com/golang/dep/cmd/dep
# clone and install lnd
cd ~/go
git clone https://github.com/lightningnetwork/lnd
cd lnd
make install
# finish up
echo "LND is now installed and you should be able to run 'lnd' - next you will need to configure and set the backend - lots of good info is here: https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md#installing-lnd-from-source"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment