Skip to content

Instantly share code, notes, and snippets.

@alexbosworth
Last active October 22, 2019 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbosworth/be9014dce89111ff33d2706439ee5286 to your computer and use it in GitHub Desktop.
Save alexbosworth/be9014dce89111ff33d2706439ee5286 to your computer and use it in GitHub Desktop.

Install Go

In order to build lnd, Go is required

Fetch Binaries

Note: when upgrading first remove the existing Go: sudo rm -rf /usr/local/go

sudo apt-get update && sudo apt-get -y upgrade
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
sudo tar -xvf go1.13.3.linux-amd64.tar.gz
sudo mv go /usr/local && rm go1.13.3.linux-amd64.tar.gz

Setup Go Directory Structure

mkdir ~/go

Edit ~/.profile

emacs ~/.profile

// Place at the end of the file:

GOPATH=$HOME/go
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$GOPATH/bin:$HOME/.local/bin:/usr/local/go/bin:$PATH"

. ~/.profile

Add Testnet Alias (Testnet)

If on testnet, lncli needs to be adjusted to specify testnet

alias lncli="lncli --network=testnet"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment