I need to connect to the current desktop in the company remotely to deal with some urgent things. And I can now ssh to my computer.
I thought of vnc, but it would create a new desktop instead of the current one. Finally I found vino-server. It’s used to view/control the current desktop.
But it was not easy for me to enable and configure it to meet the needs.
The configure file is $HOME/.gconf/desktop/gnome/remote_access. Use
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true
to enable it. Then you’ll see your 5900 port is open now. If not, manually run
to check if any error occurs.
Now you can connect to the machine using
But what you see is the black screen. On the host computer, a dialogue will show to refuse/allow the connection.
gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled false
to cancel the confirmation.
More can be configure via System(Desktop on Debian)/Preferences/Remote Desktop after you connect to the desktop.
P.S. the password is saved in /desktop/gnome/remote_access/vnc_password base64-encoded.