On 7/6/06, Israel A. Martmnez Ibarra <[EMAIL PROTECTED]> wrote:
Hi.

What are the differences betwen vncserver and Xvnc?

And how i configure vncserver or Xvnc in the new xinetd service for example to
port 5905?, my linux doesn't have inetd service, i only see xinetd service.
I'm new in linux world, sorry

Again, thank you for your help.
Here is my xinetd file for two different vnc sessions.
------ start-file /etc/xinetd.d/vnc --------
# after editing or adding this file to /etc/xinetd.d  -- xinetd must
be restarted
# via a reboot (harsh) or restart of service 'service xinetd restart'

# if you close the VNC session, this will terminate your X session on this
# connection and close all the open programs thus loosing all open work.
# same applies if the connection dies.
#Note: this only seems to work IF you don't use the
#       default port of 5901 -- vncviewers make an assumption if on the
#       default port about how things work instead or querying the server

#for either of these to work correctly (ie gdm login) you must
# modify /etc/X11/gdm/gdm-config
# section [Xdmcp]
# Enable=true

# this also means that the default run-level needs to be 5

# multiple connections to this port can be made allowing more than one person
# to use the machine remotely.

service vnc-public
{
       disable = no
       type = unlisted
       socket_type = stream
       protocol = tcp
# host:3
       port = 5903
       wait = no
       user = gdm
#Note: -fp option needs the last line of /etc/X11/fs/config modified
#       to read: #no-listen = tcp
#       run "chkconfig xfs on"
#       if trying without rebooting "service xfs restart"
       server = /usr/bin/Xvnc
# note no vnc passwd just gdm login which can be captured via a sniffer
       server_args = -inetd -query localhost -geometry 1024x768
-depth 16  -once securitytypes=none -fp tcp/localhost:7100
       log_on_failure += USERID
}


service vnc-private
{
# this is a persistent vnc/X11 session. Killed only by killing Xvnc or logout
# only vnc password protects this session.
       disable = no
#type unlisted allow this to work without having an entry in /etc/services
       type = unlisted
       socket_type = stream
       protocol = tcp
# port 5902 == host:2
       port = 5902
# this makes the session persistent
       wait = yes
       user = username
       server = /usr/bin/Xvnc
# The -rfbauth option requires vncpasswd to be run from that account either by
# the user or by su - username
       server_args = -inetd :2 -desktop somehostname:2 -query
localhost -once -auth /home/username/.Xauthority -geometry 1280x1024
-depth 16 -rfbwait 30000 -rfbauth=/home/username/.vnc/passwd
       log_on_failure += USERID
}
------ end-file /etc/xinetd.d/vnc --------
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to