Whonix Gateway CLI-15.0.1.5.4 - "Could not connect to any X display"

Hi @Patrick
I want to thank you for quick answers.

You are right to not give bad messages like “doesn’t work with Whonix-Gateway CLI…”.

I did some tests in a clean Whonix Gateway CLI machine. It can be worth if atleast a workaround is provided for CLI.

In our case, it is needed only to execute:
sudo apt-get install xinit
startx

In X environment it is possible to run lxsudo anon-connection-wizard correctly.


Then, when finished, the user can come back to the previous terminal env by typing “exit” on X terminal.

The chosen configurations are applied correctly to the main CLI environment.

I’m just worried because an user that reads the wiki, thinks that out-of-the-box he can run the wizard. For this reason I would prefer to insert in the doc the detail to install xinit and run startx for executing the wizard, to not confuse the users.

I know that is a tactical workaround, maybe in my honest opinion could be useful in the future to write the anon-connection-wizard (/usr/lib/python3/dist-packages/anon_connection_wizard/anon_connection_wizard.py) by using “dialog” for the CLI version as already done for the “whonixsetup - Connection Wizard” (/usr/bin/whonixsetup) despite the former is written in python, the latter in bash.

1 Like