Last active
January 16, 2019 21:07
-
-
Save peterzen/3d939c2e59878e65f32f8a2e3a941a99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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