Useful Scripts
This page will be updated with the most commonly used scripts to help simplify node maintenance
- Upgrade Script
- Tor Script
Description | Command | |
---|---|---|
Upgrade Script | ||
1 | Download and install latest system and security updates Update the packages Remove old files | The following block of text is meant to be copied and pasted in its entirety cat <<EOF > ~/upgrade.sh #!/bin/bash sudo apt-get update sudo apt-get -y dist-upgrade sudo apt-get -y autoremove sudo apt-get clean sudo apt-get autoclean EOF chmod u+x ~/upgrade.sh sudo ~/upgrade.sh |
Tor Script - ONLY USE IF USING TOR | ||
2 | Update the torrc file to make tor work with the zend daemon
| The following block of text is meant to be copied and pasted in its entirety cat <<EOF > ~/tor.sh #!/bin/bash sudo sed -i 's/#ControlPort 9051/ControlPort 9051/g' /etc/tor/torrc sudo sed -i 's/#CookieAuthentication 1/CookieAuthentication 1/g' /etc/tor/torrc sudo su -c "echo 'CookieAuthFileGroupReadable 1' >> /etc/tor/torrc" sudo su -c "echo 'LongLivedPorts 9033' >> /etc/tor/torrc" sudo systemctl restart tor.service EOF chmod u+x ~/tor.sh sudo ~/tor.sh |