Both nexush and nexus-cli clients are built for multiple OSes (Linux, Windows, Mac) and architectures (amd64, i386 and arm64).
The line below builds nexush for all supported OSes and architectures, where the public certificate (`ca-cert.pem`) is located in /tmp and the server to use is at ip 10.0.2.15 and listens to port 1077:
The line below builds nexush for all supported OSes and architectures, where the public certificate (`ca-cert.pem`) is located in `$HOME/nexus-server/certs` and the server to use is at ip 10.0.2.15 and listens to port 1077:
```sh
make xbuild_client BIN=nexush CERT=$HOME SERVER=10.0.2.15:1077
make xbuild_client BIN=nexush CERT=$HOME/nexus-server/certs SERVER=10.0.2.15:1077
```
Below, we build nexus-cli for all supported OSes and architectures, without an embedded certificate, and the server to use is at ip 127.0.0.1 and listens to port 1077:
...
...
@@ -234,7 +234,7 @@ For this specific case, only `SERVER` and `CERT` environment variables are used,
To only build nexush for Linux/amd64:
```sh
make build_nexush CERT=$HOME SERVER=10.0.2.15:1077
make build_nexush CERT=$HOME/nexus-server/certs SERVER=10.0.2.15:1077
```
To only build nexus-cli for Linux/amd64 uses the `build_nexus-cli` target instead.
...
...
@@ -255,21 +255,26 @@ To run nexush for Mac/arm64 with user admin@nexus.org:
To run nexus-cli for Linux/i386 with user janedoe@nexus.org and with an external public certificate (i.e. not embedded):
For now, the only supported combination of OS and architecture for nexus-exam is Linux/amd64. Furthermore, it cannot be built statically as some static libraries are missing.
Two variables are required to build nexus-exam, `EXAM_USER` and `EXAM_PWD`. These variables define the credentials for the user used by nexus-exam to connect to nexus server. On the server side, make sure this user has the `VM_ATTACH_ANY` capability.
Here is an example of how to build nexus-exam:
```sh
make build_nexus-exam
make build_nexus-exam EXAM_USER=exam@nexus.org EXAM_PWD='3k0%tjslk$g42'
```
Running nexus-exam requires `SERVER_IP` and `CERT` environment variables. The former defines the nexus-server ip address; it must match the address defined in `config/certs/nexus-server.info` (typically 127.0.0.1 for a development server). The latter specifies the directory where the public certificate `ca-cert.pem` resides (typically in `nexus-server/certs/`):
## Running nexus-exam
Running nexus-exam requires `SERVER` and `CERT` environment variables which have the same meaning as what was explained previously with nexush and nexus-cli:
```sh
make run_nexus-exam SERVER_IP=10.0.2.15 CERT=$HOME
make run_nexus-exam SERVER=10.0.2.15:1077 CERT=$HOME/nexus-server/certs