On the client:
sudo aptitude install xtightvncviewer
.ssh -L 12345:localhost:5900 user_name@123.123.123.123 -p 7001
. Edit username and IP.vncviewer localhost:12345 > /var/log/vnc-client.log 2>&1 &
.On the server:
sudo aptitude install vino
.#!/bin/bash
export DISPLAY=:0
gsettings set org.gnome.Vino view-only false
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
/usr/lib/vino/vino-server > /var/log/vino-server.log 2>&1 &
echo "Done!"
exit 0
The above can be done via SSH. No need to have physical access to the server.
This howto is part of a larger collection of howtos maintained by the author (mostly for his own reference). The source code for the current howto in plain Markdown is available on GitHub. If you have a GitHub account, you can jump straight in, and suggest edits or improvements via the link at the bottom of the page (Improve this page).
made with ❤ by Valera Rozuvan