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.
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"
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.
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:
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.
Install:
Run
vi /home/b37399/.vnc/xstartup
and add this line:like this:
Restart
vncserver
I use the following line in my login-script:
Hope it works for you!?
It depends on the VNC client that you are using. If you are using RealVNC then open the VNC Viewer Properties dialog and, on the Inputs tab, turn on Share clipboard with VNC Server.
UPDATE:
Try this. Connect using vncviewer and run vncconfig within the remote window, check the options regarding the clipboard and then try.
I use Remote login with vnc-ltsp-config with GNOME Desktop Environment on CentOS 5.9. From experimenting today, I managed to get cut and paste working for the session and the login prompt (because I'm lazy and would rather cut and paste difficult passwords).
Created a file vncconfig.desktop in the /etc/xdg/autostart directory which enabled cut and paste during the session after login. The vncconfig process is run as the logged in user.
Added
vncconfig -nowin &
to the bottom of the file /etc/gdm/Init/Desktop which enabled cut and paste in the session during login but terminates after login. The vncconfig process is run as root.Adding
vncconfig -nowin &
to the bottom of the file /etc/gdm/PostLogin/Desktop also enabled cut and paste during the session after login. The vncconfig process is run as root however.I tried all the above suggestions with no luck.
I eventually solved it by replacing the vnc server from
tightvncserver
tovnc4server
On any manner, make sure that under
~/.vnc/xstartup
you have the lineTry using www.letscopypaste.com or pastebin.com .
They offer simple to use clipboard capability.
Using tightvnc (with the command: vncviewer) on Puppy Linux, I have to press F8 in the remote window to bring up the VNC menu. The VNC menu has entries for "Clipboard: local -> remote" and "Clipboard: local <- remote". I have to copy some text, use either of those entries, and then paste on the other system. I don't know if this is related to your particular problem, but it does behave like the symptoms you described if I don't use the menu.
In a new terminal window, I used the command
vncconfig
, the command keeps running and you can use the copy and paste functions in other windows or terminals.The VNC viewer you are using has to support this feature otherwise you're just copying it localy on the remote system.