Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Page Tree
expandCollapseAlltrue
rootSecure and Super Nodes


Panel
borderColorgrey
bgColorwhite
titleColorblack
borderWidth1
titleBGColorwhite
borderStylesolid
titleLanguages


This page will be updated with the most commonly used scripts to help simplify node maintenance

  • Upgrade Script
  • Tor Script




DescriptionCommand

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

Code Block
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


Code Block
chmod u+x ~/upgrade.sh


Code Block
sudo ~/upgrade.sh



Tor Script - ONLY USE IF USING TOR
2

Update the torrc file to make tor work with the zend daemon

  • Some tor repo updates make changes to the torrc file, this script is intended to repair the tor service for zend
  • You will need to restart the zend client after running the script for changes to take affect, see System Maintenance for commands

The following block of text is meant to be copied and pasted in its entirety

Code Block
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


Code Block
chmod u+x ~/tor.sh


Code Block
sudo ~/tor.sh



Insert excerpt
Social Links
Social Links
nopaneltrue