This content has been marked as final. Show 9 replies
How about the following xstartup:
# Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & gnome-session &
VNC provides you 3 options:
1. Create a new remote desktop session:
This is the default when you type "vncserver" in a terminal Window. Connecting with VNC to the shown display/port will use the TWM Window manager. TWM is an efficient, robust and light-wight X Window manager and default on Unix.
2. Share an existing desktop session (Screen sharing)
Open/Login to your Gnome desktop on your Linux server. Select System/Preferences/Remote Desktop and Enable Desktop Sharing. Connecting to the shown display/port will let you use VNC to share the display on your Linux server.
3. Create a new remote desktop session using the same window and session manager as your Linux X Window system. For this to work you need to start vncserver (terminal) with the 2 lines disabled as mentioned.
What kind of session are you trying to establish?
Clipboard sharing is complete different story and depends also on your client VNC/Desktop integration. Which you have not specified.
I'm fine with either way as long as:
-- I can see the gnome GUI through VNC ; and
-- clipboard working.
currently, I'm using the option #1 as mentioned in your post.
the client side, I'm using Windows 7 + Tight VNC Viewer version 2.5.2
Please let me know if you need further detail information or recommend the integration as long as above 2 works.
The $HOME/.vnc/xtartup I previously shown should to the trick. You may have to restart the machine or kill your account vncserver process for the change to apply.
You should see the Gnome desktop (provided it is installed on your system) with [VNC config] in the taskbar at the bottom of the screen. When you click on VNC config it shows the following options selected:
- Accept clipboard from viewers
- Send clipboard to viewers
- Send primary selection to viewers.
Primary is the buffer you select with the mouse. The clipboard is used when you select Copy from the Edit menu.