Install
Latest Version Tag |
---|
Install dependencies
Update system and install build tools
sudo apt -q updatesudo apt -qy install curl git jq lz4 build-essentialsudo apt -qy upgrade
Install file2ban
# set and copy the config that will have higher prioritysudo apt install fail2ban -y && \sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local && \sudo nano /etc/fail2ban/jail.local
# uncomment and add your IP: ignoreip = 127.0.0.1.1/8 ::1 [ip]sudo systemctl restart fail2ban
# check statussudo systemctl status fail2ban
# check which jails are active (by default only sshd)sudo fail2ban-client status
# check sshd statisticssudo fail2ban-client status sshd
# look at the logssudo tail /var/log/fail2ban.log
# stop work and remove from autoloading#sudo systemctl stop fail2ban && sudo systemctl disable fail2ban
Install Rust
Before beginning, please ensure your machine has Rust v1.66+ installed. Instructions to install Rust can be found here.
Download and build binaries
Generate an Aleo account address
snarkos account new
This will output a new Aleo account in the terminal.
The following is an example output:
Attention - Remember to store this account private key and view key.
Private Key APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <-- Save Me And Use In The Next Step View Key AViewKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <-- Save Me Address aleo1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <-- Save Me
Initialize the node
# Set node configuration
./target/release/snarkos start --network 1 --prover --private-key [YOUR_PRIVAT_KEY] --verbosity=2 --nodisplay
When prompted, enter your Aleo private key:
Enter the Aleo Prover account private key:APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Itβs all.