By robs on Apr 15, 2008
First off, I opted for the "VNC Enterprise Edition for UNIX" from RealVNC, which cost $US 50. I like the extra features that this edition (4.3.2) provides... see the web site for more information.
Here's my xstartup file:
#!/bin/sh xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & /usr/local/bin/vncconfig& gnome-session &
I'm running gnome, so that's why the gnome-session is in there. The vncconfig, however, is the really cool thing. With it, I'm able to copy-n-paste into and out of my vnc window onto my desktop... even if my domU is isolated from my dom0 whilst using IPsec.
When I start vncserver on my domU, I use:
vncserver -geometry 1500x900 -IdleTimeout 0
This stops those blasted disconnections due to idle time. The chosen geometry fits quite comfortably on one of the two 22-inch heads I run at home.
Oh, and I use the vnpasswd on both my dom0 and domU machines and set the passwords to be the same.
Finally, when I start the vnc viewer on my dom0, I use:
vncviewer snvdom1:2 -passwd ~/.vnc/passwd&
With the addition of the -passwd option, I'm able to start the viewer in the background.