Hi,
After following the istructions at https://protonvpn.com/support/linux-vpn-tool/ I installed the protonvpn cli3 tool (there is not v4 yet). There , a video is showing that when I run
protonvpn-cli login username
I get asked for a poswrod and can start using the tool. But that is not true, when I run the command inside a remote computer without gui, I get the following error related to not being able to launch the x11 server. Is there a way to use the CLI tool without an x11 server?
Proton VPN CLI v3.13.0 (protonvpn-nm-lib v3.16.0; proton-client v0.7.1)
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/secretstorage/init.py”, line 47, in dbus_init
return dbus.SessionBus()
File “/usr/lib/python3/dist-packages/dbus/_dbus.py”, line 212, in new
return Bus.new(cls, Bus.TYPE_SESSION, private=private,
File “/usr/lib/python3/dist-packages/dbus/_dbus.py”, line 102, in new
bus = BusConnection.new(subclass, bus_type, mainloop=mainloop)
File “/usr/lib/python3/dist-packages/dbus/bus.py”, line 124, in new
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/keyring/linuxkeyring.py”, line 21, in getitem
stored_data = self.__keyring_backend.get_password(
File “/usr/lib/python3/dist-packages/keyring/backends/SecretService.py”, line 64, in get_password
collection = self.get_preferred_collection()
File “/usr/lib/python3/dist-packages/keyring/backends/SecretService.py”, line 46, in get_preferred_collection
bus = secretstorage.dbus_init()
File “/usr/lib/python3/dist-packages/secretstorage/init.py”, line 51, in dbus_init
raise SecretServiceNotAvailableException(
secretstorage.exceptions.SecretServiceNotAvailableException: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/bin/protonvpn-cli”, line 11, in
load_entry_point(‘protonvpn-cli==3.13.0’, ‘console_scripts’, ‘protonvpn-cli’)()
File “/usr/lib/python3/dist-packages/protonvpn_cli/main.py”, line 21, in main
ProtonVPNCLI()
File “/usr/lib/python3/dist-packages/protonvpn_cli/cli.py”, line 65, in init
res = getattr(self, args.command)()
File “/usr/lib/python3/dist-packages/protonvpn_cli/cli.py”, line 162, in login
return self.cli_wrapper.login(args.username)
File “/usr/lib/python3/dist-packages/protonvpn_cli/cli_wrapper.py”, line 63, in login
if self.protonvpn.check_session_exists():
File “/usr/lib/python3/dist-packages/protonvpn_nm_lib/api.py”, line 356, in check_session_exists
return self._env.api_session.is_valid
File “/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/environment.py”, line 56, in api_session
self.__api_session = APISession()
File “/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/session/session.py”, line 264, in init
self.__keyring_load_session()
File “/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/session/session.py”, line 293, in __keyring_load_session
keyring_data_user = ExecutionEnvironment().keyring[
File “/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/keyring/linuxkeyring.py”, line 32, in getitem
raise exceptions.KeyringError(e)
protonvpn_nm_lib.exceptions.KeyringError: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.