Hello, the default tor-control-panel PATH is /usr/bin/tor-control-panel in whonix-gateway-17 template, and sys-whonix service VM derives the PATH from it. Here is how my PATH variable looks like inside whonix-gateway-17 template when I hit echo $PATH:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
I needed to make /usr/libexec/tor-control-panel/tor-control-panel path to take precedence over /usr/bin/tor-control-panel. So, understanding /usr/local/bin comes before /user/bin in the PATH, I created a soft link named “tor-control-panel” inside /usr/local/bin.
ln -sf /usr/libexec/tor-control-panel/tor-control-panel /usr/local/bin/tor-control-panel
And then, I rechecked inside whonix-gateway-17 template using “which tor-control-panel” command, and the result came as “/usr/local/bin/tor-control-panel” instead of “/usr/bin/control-panel”, which is exactly what I wanted.
However, when I shut-down the template VM and restarted sys-whonix Service VM, it still showed the PATH for tor-control-panel as “/usr/bin/tor-control-panel”. It didn’t reflect the change I make in whonix-gateway-17 template VM.
Upon inquiring “whereis tor-control-panel”, it did not list “/usr/local/bin/tor-control-panel” in the PATH. So, I’d like to understand what is missing, and why the change in PATH I make in whonix-gateway-17 template VM doesn’t reflect inside sys-whonix Service VM.