Run the script and wait for the installation to complete
. <(wget -qO- https://raw.githubusercontent.com/SecorD0/Aleo/main/multi_tool.sh)
To run the pruner on an existing wallet, place a file called aleo_account.txt
, necessarily containing the line
Private Key APrivateKey1___
By path (the command displays the path)
echo $HOME/aleo_account.txt
And run the script after that
Update
Semi-automatic
Run the script and wait for the update to complete
Automatic
Create a folder for node files
mkdir -p $HOME/.aleo
Create a service file
sudo tee <<EOF >/dev/null /etc/systemd/system/aleou.service
[Unit]
Description=Aleo auto-updater
After=network.target
[Service]
type=forking
User=$USER
Environment="HOME=$HOME"
WorkingDirectory=$HOME
ExecStartPre=`which wget` -qO $HOME/.aleo/multi_tool.sh https://raw.githubusercontent.com/SecorD0/Aleo/main/multi_tool.sh
ExecStartPre=`which chmod` +x $HOME/.aleo/multi_tool.sh
ExecStart=$HOME/.aleo/multi_tool.sh -up
Restart=always
RestartSec=5m
[Install]
WantedBy=multi-user.target
EOF
Run the service file
sudo systemctl daemon-reload
sudo systemctl enable aleou
sudo systemctl restart aleou
The script restarts every 5 minutes
To view the log of the auto update script use the command
sudo journalctl -fn 100 -u aleou
Removal
Don't stop
sudo systemctl stop aleod
Delete service file
sudo systemctl disable aleod
rm -rf /etc/systemd/system/aleod.service
sudo systemctl daemon-reload
Delete the project folder and the binary file
rm -rf $HOME/snarkOS /usr/bin/snarkos
Useful Commands
Available variables (remove echo when using)
echo $aleo_wallet_address
echo $aleo_private_key
View log
Prover
aleo_log sudo journalctl -fn 100 -u aleod
Automatic update script
sudo journalctl -fn 100 -u aleou
Restart the node
sudo systemctl restart aleod
Stop auto update script
sudo systemctl stop aleou
Top comments (0)