copy and paste between windows and linux

Felix Steffenhagen felix.steffenhagen "at"
Mon Nov 28 10:33:18 2005

Hello all,

a few days ago, i opened a new case with a cut&paste problem between
vncviewer and the machine it is running.
The server and viewer are the new enterprise editions from RealVNC (4.1.8).
Running on different systems (WinXP, Solaris, Redhat).

I got cut&paste working by starting vncconfig manually after vncserver startup,
but it would be great if this could be done automatically via xstartup.

In my xstartup there is a line that should start vncconfig, but after
server startup
cut&paste didn't work.
Someone got the idea to have a look to the server log file, but there
seems nothing
special in it, that could explain this behaviour.
At the end of this mail I pasted the files xstartup, a server log file
and my vnc server config.
Perhaps anyone can see the problem there.


# xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -nowin &
# xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

# WindowManager section
# Commands for running VNC under SunOS
if [ `uname -s` = "SunOS" ]
        /usr/dt/bin/dtsession && exit 0
# If running under Linux, GDM login should work because of enabled XDMCP
elif [ `uname -s` = "Linux" ]
	GDM_RUNNING=`ps -A | grep gdm-binary`
        # if GDM running run twm for the case, something goes wrong
        if [ "$GDM_RUNNING" != "" ]
                twm &
        # run normal gnome session if GDM is not running
                gnome-session && exit 0

# server log
Xvnc Enterprise Edition 4.1.8 - built Sep 29 2005 16:22:25
Copyright (C) 2002-2005 RealVNC Ltd.
See for information on VNC.
Underlying X server release 40201000, The XFree86 Project, Inc

Mon Nov 28 10:55:43 2005
 vncext:      VNC extension running!
 vncext:      created VNC server for screen 0
 TcpListener: listening on IPv4, port 5901
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/,
removing from list!
execvp: Permission denied (13)
Mon Nov 28 10:55:47 2005
 Connections: accepted:
 SConnection: Client needs protocol version 4.0
 SConnection: Client requests security type RA2(5)
 RSA:         reading 2048-bit private key (default is 2048)
 RSA:         reading 2048-bit private key (default is 2048)
 RSA:         RSA keys match

Mon Nov 28 10:55:48 2005
 RSA:         reading 2048-bit public key (default is 2048)
 SecurityRA2: using AES-128

Mon Nov 28 10:55:52 2005
 SConnection: Authentication successful
 SConnection: Server default pixel format depth 16 (16bpp) little-endian rgb565
 SConnection: Client pixel format depth 6 (8bpp) rgb222

Mon Nov 28 10:56:02 2005
 SConnection: Client pixel format depth 24 (32bpp) little-endian rgb888

# vnc server config file
# Default vncserver configuration. See the vncserver man page for details.
-UserPasswdVerifier UnixAuth	 # Use the Unix User Authentification
-geometry 1024x768		     # Remote screen resolution
-depth 16				   # pixel depth of remote desktop	
-AllowedUsers $USER:f		  # allow only the user, who started the
-NeverShared=0			      # Share the connection with others.
					       #  Works only, if other users are allowed
					       #  to use the session.
-DisconnectClients=0		     # Don't disconnect existing client,
-pn                                         # Continue even if
standard ports fail
-once 					   # Shutdown VNC Server when client
-desktop "$HOSTNAME:$DISPLAYNUM ($USER)"  # Desktop name
-query localhost			# query for user login