Skip to content

Commit

Permalink
(add): z2 ubuntu dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromedda committed Jul 2, 2024
1 parent 31c8d65 commit 2271385
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions zq2/docs/nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,22 @@ The `z2 join` command creates the validator node startup script and configuratio
###$ Step by step guide

1. Cargo and Rust: You need to have Cargo and Rust installed on your system. You can install them using [rustup](https://rustup.sh).
2. Pick a directory. You'll need quite a lot of space. Let's call it `/my/dir`.
3. Clone `[email protected]:zilliqa/zq2` into that directory to get `/my/dir/zq2`.
4. Source the setenv file `source /my/dir/zq2/scripts/setenv`. This will give you access to the `z2` tool (in `zq2/z2`).
5. Generate the startup script and the configuration file for your node by running
2. Install the following requirements:
```bash
sudo apt install -y build-essential pkg-config libssl-dev
```
3. Pick a directory. You'll need quite a lot of space. Let's call it `/my/dir`.
4. Clone `[email protected]:zilliqa/zq2` into that directory to get `/my/dir/zq2`.
5. Source the setenv file `source /my/dir/zq2/scripts/setenv`. This will give you access to the `z2` tool (in `zq2/z2`).
6. Generate the startup script and the configuration file for your node by running
```bash
z2 join --chain prototestnet
```
6. Generate the node private key (save it because you need to use it in case you need to restart your node)
7. Generate the node private key (save it because you need to use it in case you need to restart your node)
```bash
export PRIVATE_KEY=$(openssl rand -hex 32)
```
7. Start the validator
8. Start the validator
```bash
chmod +x start_validator.sh && \
./start_validator.sh $PRIVATE_KEY
Expand Down

0 comments on commit 2271385

Please sign in to comment.