Skip to content

Instantly share code, notes, and snippets.

@peterzen
Last active January 16, 2019 21:07
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 peterzen/3d939c2e59878e65f32f8a2e3a941a99 to your computer and use it in GitHub Desktop.
Save peterzen/3d939c2e59878e65f32f8a2e3a941a99 to your computer and use it in GitHub Desktop.
#!/bin/bash
# script adapted from https://medium.com/coinmonks/bitcoin-lightning-network-run-your-node-at-home-for-fun-and-no-profit-da5b61be2ba9
LND_VERSION=v0.5.1-beta
ARCH=linux-armv7
LND_ARCHIVE=lnd-${ARCH}-${LND_VERSION}.tar.gz
cd /tmp \
&& wget https://github.com/lightningnetwork/lnd/releases/download/${LND_VERSION}/${LND_ARCHIVE} \
&& wget https://github.com/lightningnetwork/lnd/releases/download/${LND_VERSION}/manifest-${LND_VERSION}.txt \
&& wget https://github.com/lightningnetwork/lnd/releases/download/${LND_VERSION}/manifest-${LND_VERSION}.txt.sig \
&& wget https://keybase.io/roasbeef/pgp_keys.asc \
&& SHA256=`grep "${LND_ARCHIVE}" manifest-${LND_VERSION}.txt | awk '{print $1}'` \
&& echo $SHA256 \
&& sha256sum ${LND_ARCHIVE} \
&& echo "$SHA256 ${LND_ARCHIVE}" | sha256sum -c - \
&& gpg --import ./pgp_keys.asc \
&& gpg --verify manifest-${LND_VERSION}.txt.sig \
&& tar -xzf ${LND_ARCHIVE} \
&& sudo install -m 0755 -o root -g root -t /usr/local/bin lnd-$ARCH-${LND_VERSION}/* \
&& rm -rf $LND_ARCHIVE manifest-$LND_VERSION.txt* pgp_keys.asc* \
&& lnd --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment