Long Wiki Edits Thread

What do you think about adding this step by step guide to wiki/Tor? Then have a step in the Whonix 14 testers blog that has users copy and paste Tor State File from sys-whonix-13 to sys-whonix-14. ( and also has a link to these instructions?)

Copying Tor State to secondary sys-whonix

torjunkie: the language in this guide is not complete. Just wanted to get your opinion before I went any further. Aslo these instructions assume sys-whonix is based on Whonix-14 and sys-whonix-13 (obvious)

  1. In sys-whonix stop Tor.

    sudo systemctl stop tor@default

  2. In sys-whonix remove Tor State File. Note: Its likely that this command will complain that the process is busy. This can be ignored.

    sudo rm -r /var/lib/tor

  3. In sys-whonix, ensure /var/lib/tor is empty. This command should produce no output.

    sudo ls /var/lib/tor

  4. In sys-whonix-13, stop tor.

    sudo systemctl stop tor@default

  5. In sys-whonix-13, copy the Tor State File to sys-whonix. Users must upgrade to a root prompt (root@host:# ) for the command to exit successfully.

    Note: If users encounter this error it can be ignored. qfile-agent: Fatal error: stat “VM” (error type: No such file or directory) . Hit “OK” when prompted

    sudo su

    qvm-copy /var/lib/tor sys-whonix

  6. In sys-whonix, list the QubesIncoming directory to ensure Tor State File was copied over successfully.

    ls ~/QubesIncoming/sys-whonix-13/tor

    The output should include these files:

    cached-certs cached-microdescs lock
    cached-microdesc-consensus cached-microdescs.new state

  7. In sys-whonix, move Tor State File to /var/lib/tor .

    sudo mv ~/QubesIncoming/sys-whonix-13/tor/* /var/lib/tor

  8. In sys-whonix, ensure all files listed in step 6 are now in /var/lib/tor and have the proper ownership. For Tor to function, files in this directory should be owned by debian-tor . If files do not have proper ownership, proceed to step 9. Otherwise skip to step 10.

    sudo ls -l /var/lib/tor

    Note: The first 2 lines of the output should look similar to this. Notice the proper file ownership ‘debian-tor debian-tor’.

    -rw------- 1 debian-tor debian-tor 20442 Feb 22 21:22 cached-certs
    -rw------- 1 debian-tor debian-tor 1985454 Apr 4 00:04 cached-microdesc-consensus

  9. In sys-whonix, change ownership of the Tor State File to debian-tor.

    sudo chown debian-tor: -R /var/lib/tor

  10. In sys-whonix, verify Tor State file is owned by debian-tor.

    sudo ls -l /var/lib/tor

  11. In sys-whonix, start Tor.

    sudo systemctl start tor@default

  12. In sys-whonix, verify Tor is functioning properly.

    whonixcheck -v

1 Like