Skip to content

Instantly share code, notes, and snippets.

@priom
Last active July 15, 2021 21:36
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 priom/e4fe05f30b5c6db0483c418f732b4666 to your computer and use it in GitHub Desktop.
Save priom/e4fe05f30b5c6db0483c418f732b4666 to your computer and use it in GitHub Desktop.
Filecoin Lotus Setup Ubuntu 20.04
#!/bin/bash
sudo apt update -y \
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget curl make htop -y \
sudo apt upgrade -y \
sh -c "$(curl -fsSL https://raw.github.com/ohmybash/oh-my-bash/master/tools/install.sh)" \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source "$HOME/.cargo/env" \
wget -c https://golang.org/dl/go1.16.5.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local \
export PATH="$PATH:/usr/local/go/bin" >> "$HOME/.profile" && source "$HOME/.profile" \
git clone https://github.com/filecoin-project/lotus.git \
cd lotus/ \
make clean all \
sudo install -C ./lotus /usr/local/bin/lotus \
lotus daemon --import-snapshot https://fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/minimal_finality_stateroots_latest.car
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment