Copy/Paste (Clipboard like) functionality from a VNC desktop

clipboardremote desktopvnc

I use TightVNC, RealVNC to access the Remote Linux(CentOS,Ubuntu) desktops by running a vncserver on the remote machine. When I connect to those servers from my Windows host:

  1. Can I use the Copy/Paste functionality on the VNC client desktop window. i.e. Copy some text on some terminal open inside the VNC client desktop window and paste it into some text file on my local windows machhines and vice-a-versa?

  2. I checked TightVNC options but did not see anything. Can it be done by a)Running vncserver on the remote machine with some options or b)By running some configuration on remote machine to enable this. How could I get it done?

  3. Also is this kind of Copy/Paste functionality possible in Microsoft Windows Remote Desktop connection/Terminal session protocol?

Best Answer

This should work if you've got vncconfig running as a VNC client application. The man page clearly states that it is required for X clipboard support, so make sure that ~/.vnc/xstartup on the server side contains the following line somewhere:

vncconfig -iconic &

to ensure it's started automatically. If you already have a running VNC session without an active instance of vncconfig, just open a terminal on your VNC desktop and start it manually.

Related Question