First of all: I googled all day and tried several suggestions on different forums with no luck
The problem: I am not able to start a vnc server on a remote machine through ssh
Additional information:
- Host: Ubuntu 12.04
- client: Ubuntu 14.04 in VritualBox
- I have no physical access to the remote machine
this works:
ssh -Y user@hostname
When I check the Display i get this:
$ echo $DISPLAY
localhost:10.0
now I start the vnc server: /usr/lib/vino/vino-server
=> this works but when I connect to vnc I see my own screen (from the ssh client) and not the remote screen
It looks like localhost:10.0
takes my local screen. Am I right?
I also tried this as I want the remote screen:
/usr/lib/vino/vino-server --display :0.0
which results in the following:
$ /usr/lib/vino/vino-server --display 0.0
(process:6843): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Cannot open display: 0.0
Run 'vino-server --help' to see a full list of available command line options
Why is it not able to open display 0.0?
Best Answer
In another forum, forum.developer.nvidia.com, "nekokeitai" wrote something which worked for me. These commands can be used via ssh on the remote Ubuntu 18.04 PC:
Install vino:
Find the UUIDs of your connections and use them as a comma separated list inside the square brackets of the last configuration line. I have only tried one UUID inside the single quotes, though:
Configure vino:
Start vino:
Now, on the local PC use remmina with VNC protocol to connect to the remote PC.