Skip to content

Instantly share code, notes, and snippets.

@drewr
Last active November 5, 2017 22:01
Show Gist options
  • Save drewr/2784efa58e2afcbd2532fde046505622 to your computer and use it in GitHub Desktop.
Save drewr/2784efa58e2afcbd2532fde046505622 to your computer and use it in GitHub Desktop.
Heartbeat on RaspberryPi
export ELASTIC_GO_LIB=$HOME/go/src/github.com/elastic
export GOPATH=$HOME/go
sudo apt-get update --fix-missing
sudo apt-get install -y git build-essential lsb-release
wget --no-clobber https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-armv6l.tar.gz
tar zxpf go1.9.2.linux-armv6l.tar.gz
mkdir -p $ELASTIC_GO_LIB
test -d $ELASTIC_GO_LIB/beats || git clone --depth 1 https://github.com/elastic/beats $ELASTIC_GO_LIB/beats
( cd $ELASTIC_GO_LIB/beats/heartbeat && PATH=$HOME/go/bin:$PATH make )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment