Ubuntu Installation
OZKi is supported on the Ubuntu 20.04. Other similar Linux distros may also work.
Install the basic tools and Rust compiler
$ sudo apt install -y curl git tree build-essential
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
$ source ~/.cargo/env
During the rust installation, you will be prompted with installation options (1, 2, or 3). Simply hit the enter key (which defaults to 1) to proceed.
After it is completed, type "rustc --version" to confirm the rust compiler is installed correctly.
Install Nodejs/npm and the Typescript compiler
$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ sudo npm install -g -y typescript
Type "npm --version", "node --version", "tsc --version" to confirm the installation has completed.
Install Circom and Snarkjs
$ git clone https://github.com/iden3/circom.git
$ cd circom
$ cargo build --release
$ cargo install --path circom
$ cd ..
$ sudo npm install -g -y snarkjs
Type "circom --version" and "snarkjs" to confirm the circom and snarkjs have been successfully installed.
Install MongoDB
$ sudo apt-get install gnupg
$ wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
$ sudo apt-get update
$ sudo apt-get install -y mongodb-org
$ sudo systemctl enable mongod
$ sudo systemctl start mongod
To test a connection to the database, run "mongosh", and you should see the "test> " prompt.
Last updated
Was this helpful?