Last active
July 15, 2021 21:36
-
-
Save priom/e4fe05f30b5c6db0483c418f732b4666 to your computer and use it in GitHub Desktop.
Filecoin Lotus Setup Ubuntu 20.04
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 | |
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