|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Sep 2004
Messaggi: 1009
|
Problema con l'opzione -localhost di x11vnc e inetd.conf
CIAO
Ho un Server con GNU/Linux Debian Lenny Testing con il server OpenSSH ed il server x1vnc ed un Client Windows XP SP2 con un client SSH ed il viewer TightVNC. Ho il file /etc/inetd.conf Codice:
PLUTO:~# cat /etc/inetd.conf # /etc/inetd.conf: see inetd(8) for further informations. # # Internet superserver configuration database # # # Lines starting with "#:LABEL:" or "#<off>#" should not # be changed unless you know what you are doing! # # If you want to disable an entry so it isn't touched during # package updates just comment it out with a single '#' character. # # Packages should modify this file by using update-inetd(8) # # <service_name> <sock_type> <proto> <flags> <user> <server_path> <args> # #:INTERNAL: Internal services #discard stream tcp nowait root internal #discard dgram udp wait root internal #daytime stream tcp nowait root internal #time stream tcp nowait root internal #:STANDARD: These are standard services. 5900 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc.sh #5901 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc-root.sh #5902 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc-balubeto.sh #5903 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc-aldoalex.sh #:BSD: Shell, login, exec and talk are BSD protocols. #:MAIL: Mail, news and uucp services. #:INFO: Info services #<off># ident stream tcp wait identd /usr/sbin/identd identd #:BOOT: TFTP service is provided primarily for booting. Most sites # run this only on machines acting as "boot servers." #:RPC: RPC based services #:HAM-RADIO: amateur-radio services #:OTHER: Other services #<off># sane-port stream tcp nowait saned:saned /usr/sbin/saned saned Codice:
PLUTO:~# cat /usr/local/bin/x11vnc.sh #!/bin/sh /usr/bin/x11vnc -inetd -rfbport 5900 -rfbauth /root/.vnc/passwd -localhost -display :0 -auth /var/lib/gdm/:0.Xauth -capslock -forever -logfile /var/log/x11vnc.log Ho notato che, se dalla shell remota SSH, lancio il server x11vnc con il comando /usr/bin/x11vnc -rfbport 5900 -rfbauth /root/.vnc/passwd -localhost -display :0 -auth /var/lib/gdm/:0.Xauth -capslock -forever -logfile /var/log/x11vnc.log, il viewer VNC si connette senza problemi. Quindi, che cosa non va nel Super-Server inetd? GRAZIE CIAO |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 05:14.