How did I connect to Ubuntu 18.04 GNOME desktop from Windows 7 via TigerVNC?

(Dmitry Fedyuk) #1

Step 1

I have installed the TigerVNC client to Windows:

I was unable to successfully run the MSI installer directly because of the «The system cannot open device or file specified» error:

I have solved the problem using my solution for amother MSI program: How to fix «The system cannot open the device or file specified» on running the Node.js MSI installer in Windows?

Step 2

I have installed the TigerVNC server to Ubuntu:

apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer

Step 3

I have set up a password for the TigerVNC server:


Step 4

I have created the ~/.vnc/xstartup file with the following contents:

# Start Gnome 3 Desktop
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &

Step 5

I have started the TigerVNC server:

vncserver -depth 32 -geometry 1880x950

Step 6

I have opened an SSH tunnel from Windows to Ubuntu by running the following command in Windows (using Cygwin):

ssh root@ -L 5901:

Step 7

I have opened the TigerVNC client in Windows, typed as the connection endpoint, entered the TigerVNC server password (specified on the Step 3), and successfully conneted to Ubuntu desktop.

Step 8

After the usage, I have stopped the TigerVNC server:

vncserver -kill :1