Vinagre displays terminal of remote computer, how do I display the desktop instead?

Solution 1:

I solved this by uninstalling tigervnc on the host and installing tightvnc instead. I then edited xstartup to read:

#!/bin/bash
xrdb $HOME/.Xresources
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

Then, ssh as before from the client:

ssh -L 5901:127.0.0.1:5901  remoteusername@ip

Start the vnc server on the host (with screen res specified):

vncserver -geometry 1280x1024

Finally start vinagre on the client:

vinagre localhost:1

Enter the password then done! Worked for me anyway, please comment if you have any solutions to get tigervnc going, I couldn't get it working properly.