diff --git a/documentation/en/install-lotus-arch.md b/documentation/en/install-lotus-arch.md index e5131424b..121bc349f 100644 --- a/documentation/en/install-lotus-arch.md +++ b/documentation/en/install-lotus-arch.md @@ -15,30 +15,37 @@ These steps will install the following dependencies: - llvm (proofs build) - clang (proofs build) -Run +### Install dependencies ```sh -sudo pacman -Syu opencl-icd-loader +sudo pacman -Syu opencl-icd-loader gcc git bzr jq pkg-config opencl-icd-loader opencl-headers ``` -Build +### Install Go 1.14 -```sh -sudo pacman -Syu go gcc git bzr jq pkg-config opencl-icd-loader opencl-headers -``` +Install the latest version of Go by following [the docs on their website](https://golang.org/doc/install). -Clone +### Clone the Lotus repository ```sh git clone https://github.com/filecoin-project/lotus.git cd lotus/ ``` -Install +### Build the Lotus binaries from source and install + +! **If you are running an AMD platform or if your CPU supports SHA extensions you will want to build the Filecoin proofs natively** ```sh make clean && make all sudo make install ``` +#### Native Filecoin FFI building + +```sh +env env RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 make clean deps all +sudo make install +``` + After installing Lotus, you can run the `lotus` command directly from your CLI to see usage documentation. Next, you can join the [Lotus Testnet](https://docs.lotu.sh/en+join-testnet). diff --git a/documentation/en/install-lotus-fedora.md b/documentation/en/install-lotus-fedora.md index 8473ef88b..d65494107 100644 --- a/documentation/en/install-lotus-fedora.md +++ b/documentation/en/install-lotus-fedora.md @@ -16,26 +16,39 @@ These steps will install the following dependencies: - llvm (proofs build) - clang (proofs build) -Run +### Install dependencies ```sh $ sudo dnf -y update -$ sudo dnf -y install go gcc git bzr jq pkgconfig mesa-libOpenCL mesa-libOpenCL-devel opencl-headers ocl-icd ocl-icd-devel clang llvm +$ sudo dnf -y install gcc git bzr jq pkgconfig mesa-libOpenCL mesa-libOpenCL-devel opencl-headers ocl-icd ocl-icd-devel clang llvm $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` -Clone +### Install Go 1.14 + +Install the latest version of Go by following [the docs on their website](https://golang.org/doc/install). + +### Clone the Lotus repository ```sh git clone https://github.com/filecoin-project/lotus.git cd lotus/ ``` -Install +### Build the Lotus binaries from source and install + +! **If you are running an AMD platform or if your CPU supports SHA extensions you will want to build the Filecoin proofs natively** ```sh $ make clean && make all $ sudo make install ``` +#### Native Filecoin FFI building + +```sh +env env RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 make clean deps all +sudo make install +``` + After installing Lotus, you can run the `lotus` command directly from your CLI to see usage documentation. Next, you can join the [Lotus TestNet](https://docs.lotu.sh/en+join-testnet). diff --git a/documentation/en/install-lotus-ubuntu.md b/documentation/en/install-lotus-ubuntu.md index a72f56a06..2a2ceb109 100644 --- a/documentation/en/install-lotus-ubuntu.md +++ b/documentation/en/install-lotus-ubuntu.md @@ -36,18 +36,19 @@ cd lotus/ ### Build the Lotus binaries from source and install +! **If you are running an AMD platform or if your CPU supports SHA extensions you will want to build the Filecoin proofs natively** + ```sh make clean && make all sudo make install ``` +#### Native Filecoin FFI building + +```sh +env env RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 make clean deps all +sudo make install +``` + + After installing Lotus, you can run the `lotus` command directly from your CLI to see usage documentation. Next, you can join the [Lotus Testnet](https://docs.lotu.sh/en+join-testnet). - -### Interopnet - -If you seek a smaller network to test, you can join the `interopnet`. Please note that this network is meant for developers - it resets much more often, and is much smaller. To join this network, checkout the branch `interopnet` instead of `master` before building and installing; -``` -git checkout interopnet -``` - -Please also note that this documentation (if viewed on the website) might not be up to date with the interopnet. For the latest documentation on the interopnet branch, see the [Lotus Documentation Interopnet Branch on GitHub](https://github.com/filecoin-project/lotus/tree/interopnet/documentation/en) diff --git a/scripts/lotus-daemon.service b/scripts/lotus-daemon.service index 997eab8cf..af35a027c 100644 --- a/scripts/lotus-daemon.service +++ b/scripts/lotus-daemon.service @@ -16,4 +16,4 @@ MemoryMax=10G LimitNOFILE=8192:10240 [Install] -WantedBy=multiuser.target +WantedBy=multi-user.target diff --git a/scripts/lotus-miner.service b/scripts/lotus-miner.service index 5490ec077..c079f44a9 100644 --- a/scripts/lotus-miner.service +++ b/scripts/lotus-miner.service @@ -10,4 +10,4 @@ Environment=GOLOG_FILE="/var/log/lotus/miner.log" Environment=GOLOG_LOG_FMT="json" [Install] -WantedBy=multiuser.target +WantedBy=multi-user.target