Try   HackMD

Fleek Network (Ubuntu - c5.xlarge)

This is a living document and subject to change as Ursa changes.

Install

Environment
Ubuntu
4vCPU & 8GiB Memory
Disk Usage after build ~10GB (36.4% of 24.05GB)
Port(s):

  • 4069

Install dependencies

sudo apt update -y sudo apt upgrade -y sudo apt install build-essential -y sudo apt install libssl-dev pkg-config libclang-dev protobuf-compiler -y

Install Rust (^1.65.0)

curl https://sh.rustup.rs -sSf > RUSTUP.sh sh RUSTUP.sh -y rm RUSTUP.sh source "$HOME/.cargo/env"

https://gist.github.com/BlueyNeilo/7f4bb0f13b0f89792371bc08ee3cb087

Install sccache

cargo install sccache

Install cmake

cd /tmp wget https://cmake.org/files/v3.18/cmake-3.20.0.tar.gz tar -xvzf cmake-3.20.0.tar.gz cd cmake-3.20.0 ./bootstrap make sudo make install

Install Ursa

git clone https://github.com/Psychedelic/ursa.git cd ursa make install

Building ursa generates numerous warnings related to unused variables. These can be ignored.

example warnings:


Run

In another terminal window:

ursa

https://github.com/fleek-network/ursa

Simple test

Ursa server must be running for this step

  1. Source test file: curl https://ipfs.io/ipfs/bafybeidqdywrzg7c3b4dmm332m4b7uiakgitplz2pep2zntederxpj3odi -o basic.car
  2. Put file: ursa rpc put basic.car
  3. Result: Put car file done: "bafybeifyjj2bjhtxmp235vlfeeiy7sz6rzyx3lervfk3ap2nyn4rggqgei"
  4. Get file: ursa rpc get bafybeifyjj2bjhtxmp235vlfeeiy7sz6rzyx3lervfk3ap2nyn4rggqgei ./output
  5. Compare ls -la ./output and ls -la ./basic.car

Keeping usra up-to-date

From the usra directory:

git pull origin make install

Resources