|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Sep 2004
Messaggi: 1010
|
Problemi con x11vnc e GDM
CIAO
Volendo controllare da remoto una macchina Linux con GDM attivo e volendo logandomi da remoto mediante tale interfaccia grafica, ho modificato i file /etc/gdm/gdm.conf e /etc/inetd.conf in questo modo: Codice:
PLUTO:~# cat /etc/gdm/gdm.conf # GDM Configuration Customization file. # # This file is the appropriate place for specifying your customizations to the # GDM configuration. If you run gdmsetup, it will automatically edit this # file for you and will cause the daemon and any running GDM GUI programs to # automatically update with the new configuration. Not all configuration # options are supported by gdmsetup, so to modify some values it may be # necessary to modify this file directly by hand. # # Older versions of GDM used the "gdm.conf" file for configuration. If your # system has an old gdm.conf file on the system, it will be used instead of # this file - so changes made to this file will not take effect. Consider # migrating your configuration to this file and removing the gdm.conf file. # # To hand-edit this file, simply add or modify the key=value combination in # the appropriate section in the template below. Refer to the comments in the # /usr/share/gdm/defaults.conf file for information about each option. Also # refer to the reference documentation. # # If you hand edit a GDM configuration file, you should run the following # command to get the GDM daemon to notice the change. Any running GDM GUI # programs will also be notified to update with the new configuration. # # gdmflexiserver --command="UPDATE_CONFIG <configuration key>" # # e.g, the "Enable" key in the "[debug]" section would be "debug/Enable". # # You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and # re-read the new configuration settings. You can also restart GDM by sending # a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes # any user session started by GDM to exit immediately while USR1 behaves like # gdm-safe-restart and will wait until all users log out before restarting GDM. # # For full reference documentation see the gnome help browser under # GNOME|System category. You can also find the docs in HTML form on # http://www.gnome.org/projects/gdm/ # # NOTE: Lines that begin with "#" are considered comments. # # Have fun! [daemon] GtkModulesList=gail:atk-bridge:/usr/lib/gtk-2.0/modules/libkeymouselistener:/usr/lib/gtk-2.0/modules/libdwellmouselistener AddGtkModules=true RemoteGreeter=/usr/lib/gdm/gdmgreeter [security] AllowRoot=true DisallowTCP=false AllowRemoteRoot=true [xdmcp] Enable=true HonorIndirect=false [gui] [greeter] Browser=true Include=root,balubeto Exclude= [chooser] [debug] Enable=true # Note that to disable servers defined in the defaults.conf file (such as # 0=Standard, you must put a line in this file that says 0=inactive, as # described in the Configuration section of the GDM documentation. # [servers] # Also note, that if you redefine a [server-foo] section, then GDM will # use the definition in this file, not the defaults.conf file. It is # currently not possible to disable a [server-foo] section defined # in the defaults.conf file. # PLUTO:~# 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 nobody /usr/bin/x11vnc x11vnc -inetd -desktop=Server -query localhost -forever #:BSD: Shell, login, exec and talk are BSD protocols. #:MAIL: Mail, news and uucp services. #:INFO: Info services 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 Codice:
PLUTO:~# ps axu | grep x11vnc | grep -v grep PLUTO:~# netstat -a | grep x11vnc | grep -v grep PLUTO:~# netstat -a | grep 5900 | grep -v grep tcp 0 0 *:5900 *:* LISTEN PLUTO:~# GRAZIE CIAO P.S; Uso la Debian Etch Testing. |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Jun 2000
Città: S.Giuliano (MI)
Messaggi: 1047
|
perchè giustamente il servizio che parte è inetd
inetd ti apre la porta 5900, come puoi vedere con netstat quando qualcuno prova a contattare la porta 5900 inetd fa partire x11vnc se tutti i parametri di x11vnc sono giusti e le conf sono giuste dovresti riuscire a collegarti, ma non conosco abbastanza x11vnc da dirti di più è così che funziona inetd: ti permette di risparmiare spazio in memoria perchè non avvii un servizio sinchè non ti serve.
__________________
“No te tomes tan en serio la vida, al fin y al cabo no saldrás vivo de ella” |
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Sep 2004
Città: Vicenza
Messaggi: 474
|
Tieni segui questa guida.
__________________
Il mio blog |
|
|
|
|
|
#4 |
|
Senior Member
Iscritto dal: Sep 2004
Messaggi: 1010
|
La mia macchina Server ha il server X.Org ed GDM sempre attivati e caricati fin dall'avvio del Server.
Ho notato una cosa: Se metto la direttiva KillInitClients=false a /etc/gdm/gdm.conf e, poi, se aggiungo al file /etc/gdm/Init/Default il comando /usr/bin/x11vnc -logfile /var/log/x11vnc.log -rfbauth /root/.vnc/passwd -forever -bg e, poi, riavvio il server, riesco a collegami in remoto e, finalmente, riesco a vedere il mio caro GDM su una finestra di Windows XP e sulla macchina Server mi crea il file di log. Mentre, se metto tale comando nel file /etc/inetd.conf nel modo seguente: 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 nobody /usr/bin/x11vnc x11vnc -inetd -logfile /var/log/x11vnc.log -rfbauth /root/.vnc/passwd -forever -bg #:BSD: Shell, login, exec and talk are BSD protocols. #:MAIL: Mail, news and uucp services. #:INFO: Info services 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 GRAZIE CIAO |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 19:16.


















