Loading Blog Search...

Monday, April 09, 2007

startup vnc server automatically with xdm

You may expect a xdm will display when you open a vnc viewer to a server, there are at least two benefits:

  1. no need vnc to maintain its own password
  2. automatically start vnc service
There are some links you can follow to set as you desired:
  • http://ubuntuforums.org/showthread.php?t=259448
  • http://www.oreilly.com/catalog/morelnxsvrhks/chapter/hack13.pdf
  • http://gentoo-wiki.com/HOWTO_RealVNC,_TightVNC,_XF4VNC
I am using kubuntu 7.04, and found some gtk applications always complain vnc4server, for reasons such as xinputextension is missed, or 109 erros (I do not know what's these). But tightvncserver works well. So, I choose tightvnc, and my /etc/xinet.d/vnc is:

socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -ac -query localhost -once -geometry 1300x900 -depth 16
The reason to use 16 depth instead of 8 is eclipse cannot run on 256 colors.