How to copy/paste text from remote system?

I used to access a remote system via VNC viewer, but when I copy some text from the remote system and paste it in my text editor(local system), nothing happens. Do I need to install any additional packages to achieve this task?

Updates:
There is no such option found in the Real VNC properties.

Screenshot

I just get the following output:

karthick@karthick:~$ vncconfig         
No VNC extension on display :0.0

Updated:

karthick@karthick:~$ vncserver

Warning: karthick:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server karthick:1

Warning: karthick:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server karthick:2

New 'X' desktop is karthick:4

Starting applications specified in /home/karthick/.vnc/xstartup
Log file is /home/karthick/.vnc/karthick:4.log

karthick@karthick:~$ vncconfig -display :1 
vncconfig: unable to open display ":1"

enter image description here


There will be a .vnc directory in your home folder. In this directory there will be few files named like <computer name>:<number>.extension
For example my laptop contains following two files in .vnc directory.

adnan-laptop:1.log
adnan-laptop:1.pid

The :1 in the above file names shows that the vnc server is running on display :1.

Now connect to your VNC server and from the connected session run vncconfig as follows:

vncconfig -display :1  

This will show a small window with clipboard related options. Check all the options and dont close the window. Now you should be able to copy paste from/to remote system.


  1. Install:

    sudo apt-get install autocutsel
    
  2. Run vi /home/b37399/.vnc/xstartup and add this line:

    autocutsel -fork
    

    like this:

    #!/bin/bash
    xrdb $HOME/.Xresources  
    autocutsel -fork  
    startxfce4 &  
    
  3. Restart vncserver