I am using Anydesk to remotely access my workstation. I would like to be able to launch it via CLI in Ubuntu (if stuck for example or if it consumes too much memory). I have access to CLI, but if I try the obvious:
$anydesk &
I get the following messages:
Gtk-WARNING **: cannot open display
Since the same command seems to work from a GUI CLI emulator it probably has to do with the fact that I am trying to launch a GUI application from a CLI. Is there a way to achieve this somehow, or is it a deadend? I mean I need a GUI environment to launch a GUI application at the first case, so it seems like a vicious circle.
I know a workaround would be to reboot my system and anydesk will be automatically restarted (and hopefully it will be more functional than before the restart) but I was hoping for a more direct solution.