If you don't clean your onions, you might only see half of a worm after a bite.
Wrapper aroung tor option --verify config to parse configuration files and verify if they are valid.
Also shows the order the files were parsed and their options if being verbose.
Vitor is a Vi for tor configuration files to be edited in a save manner. It creates a copy of the file you wish to edit, lock the file from being edited in another instance.
Then it selects the editor by looking the environment variables SUDO_EDITOR, DOAS_EDITOR, VISUAL, EDITOR. If all are empty, will try commonly used terminal editors that can be found as a command on your system.
After the file is edited and the user exits the editor, tor verify its configuration file but only from the modified file, if invalid, give option to edit again, exit without saving or save with danger flag.
All scripts requires the tor program, but vitor also requires an program to run as another user, specifically sudo or doas.
Install the script and the manual:
sudo ./configure.sh installInstall developer scripts:
sudo apt install -y devscripts equivsInstall build dependencies.
sudo mk-build-deps --remove --installIf that did not work, have a look in debian/control file and manually install all packages listed under Build-Depends and Depends.
Build the package without signing it (not required for personal use) and install it.
dpkg-buildpackage -b --no-signThe package can be found in the parent folder. Install the package:
sudo dpkg -i ../onionwash_*.debDelete temporary debhelper files in package source folder as well as debhelper artifacts:
sudo rm -rf *-build-deps_*.buildinfo *-build-deps_*.changes \
debian/*.debhelper.log debian/*.substvars \
debian/.debhelper debian/files \
debian/debhelper-build-stamp debian/onionwashDelete debhelper artifacts from the parent folder (including the .deb file):
sudo rm -f ../onionwash_*.deb ../onionwash_*.buildinfo ../onionwash_*.changesvitor must not be run as root, in the case of a GUI editor, it would be catastrophic. Instead, the script will only do the necessary tasks as root using sudo or doas, edit the file as the normal user.
If no file is provided on the command line, it autodetects your tor configuration file if using OnionJuggler or Whonix.
Edit the user tor configuration file /etc/tor/torrc (On Whonix: /usr/local/etc/tor/torrc.d/50_user.conf)
vitorEdit any tor configuration file:
vitor -f /usr/share/tor/tor-services-defaults/torrcSet your editor with the variable VISUAL:
export VISUAL="mousepad"
vitor#When using doas, set environment variables persist root or debian-tor login by using option keepenv for your user on doas.conf.
onion-parser must be run as root and the tor configuration files included must have the User option set.
Run onion-parser:
sudo onion-parserSee how the files are parsed:
sudo onion-parser -vInclude comments when parsing files:
sudo onion-parser -vv