diff --git a/documentation/operators/src/binaries/building-nym.html b/documentation/operators/src/binaries/building-nym.html deleted file mode 100644 index 2f73af4b4f..0000000000 --- a/documentation/operators/src/binaries/building-nym.html +++ /dev/null @@ -1,350 +0,0 @@ - - - - - - Building from Source - Nym Operators Guides - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
-
- {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- -

Building from Source

-
-

Nym runs on Mac OS X, Linux, and Windows. All nodes except the Desktop Wallet and NymConnect on Windows should be considered experimental - it works fine if you’re an app developer but isn’t recommended for running nodes.

-
-

Building Nym

-

Nym has two main codebases:

-
    -
  • the Nym platform, written in Rust. This contains all of our code except for the validators.
  • -
  • the Nym validators, written in Go.
  • -
-
-

This page details how to build the main Nym platform code. If you want to build and run a validator, go here instead.

-
-

Prerequisites

-
    -
  • Debian/Ubuntu: pkg-config, build-essential, libssl-dev, curl, jq, git
  • -
-
apt install pkg-config build-essential libssl-dev curl jq git
-
-
    -
  • Arch/Manjaro: base-devel
  • -
-
pacman -S base-devel
-
-
    -
  • Mac OS X: pkg-config , brew, openss1, protobuf, curl, git -Running the following the script installs Homebrew and the above dependencies:
  • -
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
-
    -
  • Rust & cargo >= 1.66
  • -
-

We recommend using the Rust shell script installer. Installing cargo from your package manager (e.g. apt) is not recommended as the packaged versions are usually too old.

-

If you really don’t want to use the shell script installer, the Rust installation docs contain instructions for many platforms.

-

Download and build Nym binaries

-

The following commands will compile binaries into the nym/target/release directory:

-
rustup update
-git clone https://github.com/nymtech/nym.git
-cd nym
-
-git reset --hard # in case you made any changes on your branch
-git pull # in case you've checked it out before
-
-git checkout release/v1.1.22 # checkout to the latest release branch: `develop` will most likely be incompatible with deployed public networks
-
-cargo build --release # build your binaries with **mainnet** configuration
-NETWORK=sandbox cargo build --release # build your binaries with **sandbox** configuration
-
-

Quite a bit of stuff gets built. The key working parts are:

- -

The repository also contains Typescript applications which aren’t built in this process. These can be built by following the instructions on their respective docs pages.

- -
-

You cannot build from GitHub’s .zip or .tar.gz archive files on the releases page - the Nym build scripts automatically include the current git commit hash in the built binary during compilation, so the build will fail if you use the archive code (which isn’t a Git repository). Check the code out from github using git clone instead.

-
- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/documentation/operators/src/binaries/init-and-config.html b/documentation/operators/src/binaries/init-and-config.html deleted file mode 100644 index 147c89cc2d..0000000000 --- a/documentation/operators/src/binaries/init-and-config.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - Binary Initialisation and Configuration - Nym Operators Guides - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
-
- {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- -

Binary Initialisation and Configuration

-

All Nym binaries must first be initialised with init before being run.

-

The init command is usually where you pass flags specifying configuration arguments such as the gateway you wish to communicate with, the ports you wish your binary to listen on, etc.

-

The init command will also create the necessary keypairs and configuration files at ~/.nym/<BINARY_TYPE>/<BINARY_ID>/ if these files do not already exist. It will not overwrite existing keypairs if they are present.

-

You can reconfigure your binaries at any time by editing the config file located at ~/.nym/<BINARY_TYPE>/<BINARY_ID>/config/config.toml and restarting the binary process.

-

Once you have run init, you can start your binary with the run command, usually only accompanied by the id of the binary that you specified.

-

This id is never transmitted over the network, and is used to select which local config and key files to use for startup.

- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/documentation/operators/src/binaries/pre-built-binaries.html b/documentation/operators/src/binaries/pre-built-binaries.html deleted file mode 100644 index 3497c15d85..0000000000 --- a/documentation/operators/src/binaries/pre-built-binaries.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - Pre-built Binaries - Nym Operators Guides - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
-
- {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- - {comment} -
- -

Pre-built Binaries

-

The Github releases page has pre-built binaries which should work on Ubuntu 20.04 and other Debian-based systems, but at this stage cannot be guaranteed to work everywhere.

-

If the pre-built binaries don’t work or are unavailable for your system, you will need to build the platform yourself.

- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - -
- -