Skip to content

Instantly share code, notes, and snippets.

@scriptzteam
Forked from donaldsteele/bootstrap.sh
Created January 20, 2018 09:00
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 scriptzteam/3a04d7087f8257abfca5684b8819623e to your computer and use it in GitHub Desktop.
Save scriptzteam/3a04d7087f8257abfca5684b8819623e to your computer and use it in GitHub Desktop.
Install magneticod go-rewrite on a brand new scaleway ubuntu 16.04 instance
####
# Install magneticod go-rewrite on a brand new scaleway ubuntu 16.04 instance
####
apt-get update && apt-get -y upgrade
apt-get install -y software-properties-common python-software-properties git trickle
add-apt-repository ppa:gophers/archive
apt update
apt-get -y install golang-1.9-go
mkdir -p $HOME/go/src
cd $HOME/go/src
git clone -b go-rewrite https://github.com/boramalper/magnetico
cd magnetico
export GOPATH=$HOME/go
ln -s /usr/lib/go-1.9/bin/go /usr/bin/go
cd $HOME/go/src/magnetico
go get ./...
cd magneticod
go build
trickle -u 1024 -d 1024 ./magneticod -v --trawler-ml-addr 0.0.0.0:8420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment