[linux] Linux a X terminaly
Miroslav Oravec
mior na psg.sk
Čtvrtek Únor 21 19:32:00 CET 2002
Prajem prijemny den,
tak som zacal skusat X-terminaly podla literatury na adrese
http://www.linuxworld.com/site-stories/2001/0823.xterminal.html
(pouzivam RedHat 7.1 s XFree 4.x)
Nastavil som Linux - server, vyskusal ping, bezi. Server ma adresu
192.168.10.129, klient 192.168.10.137.
Na strane servera som upravil subory:
- /etc/X11/xdm/Xaccess
- /etc/X11/xdm/xdm-config
rebootol som server a spustil xdm, aby bezalo.
Na strane klienta som najprv spustil startx a spravne sa zobrazila sa
seda obrazovka (a xterm). Ukoncil som X-y.
Zadal som prikaz:
/usr/X11R6/bin/X -query 192.168.10.129 co je adresa toho
servera
a nabehla len seda obrazovka, ale bez loginovacieho okna.
Na konzole vypisuje toto hlasenie:
Audit: Thu Feb 21 17:58:25 2002: 732 X: clent 1 rejected from IP
192.168.10.129 port 32770
Auth name: MIT-MAGIC-COOKIE -1 ID: -1
{takto vyskusa niekolko portov, napr 32771,32772,32773 a 32774 a skonci
s tuto hlaskou}
Fatal server error:
XDMCP fatal error: session failed Session 170640001 failed for display
192.168.10.137:0: Cannot open display
(^^^^^^^^^^^^ je IP klienta)
Pre istotu prikladam aj spominane subory:
Ak mozete, pomozte!
Vdaka a ostavam s pozdravom
mior
------------- další část ---------------
# $XConsortium: Xaccess,v 1.5 91/08/26 11:52:51 rws Exp $
#
# Access control file for XDMCP connections
#
# To control Direct and Broadcast access:
#
# pattern
#
# To control Indirect queries:
#
# pattern list of hostnames and/or macros ...
#
# To use the chooser:
#
# pattern CHOOSER BROADCAST
#
# or
#
# pattern CHOOSER list of hostnames and/or macros ...
#
# To define macros:
#
# %name list of hosts ...
#
# The first form tells xdm which displays to respond to itself.
# The second form tells xdm to forward indirect queries from hosts matching
# the specified pattern to the indicated list of hosts.
# The third form tells xdm to handle indirect queries using the chooser;
# the chooser is directed to send its own queries out via the broadcast
# address and display the results on the terminal.
# The fourth form is similar to the third, except instead of using the
# broadcast address, it sends DirectQuerys to each of the hosts in the list
#
# In all cases, xdm uses the first entry which matches the terminal;
# for IndirectQuery messages only entries with right hand sides can
# match, for Direct and Broadcast Query messages, only entries without
# right hand sides can match.
#
* #any host can get a login window
#
# To hardwire a specific terminal to a specific host, you can
# leave the terminal sending indirect queries to this host, and
# use an entry of the form:
#
#terminal-a host-a
#
# The nicest way to run the chooser is to just ask it to broadcast
# requests to the network - that way new hosts show up automatically.
# Sometimes, however, the chooser can't figure out how to broadcast,
# so this may not work in all environments.
#
* CHOOSER BROADCAST #any indirect host can get a chooser
#
# If you'd prefer to configure the set of hosts each terminal sees,
# then just uncomment these lines (and comment the CHOOSER line above)
# and edit the %hostlist line as appropriate
#
#%hostlist host-a host-b
#* CHOOSER %hostlist #
------------- další část ---------------
! $XConsortium: xdm-conf.cpp /main/3 1996/01/15 15:17:26 gildea $
! $XFree86: xc/programs/xdm/config/xdm-conf.cpp,v 1.6 2000/01/31 19:33:43 dawes Exp $
DisplayManager.errorLogFile: /var/log/xdm-errors
DisplayManager.pidFile: /var/run/xdm-pid
DisplayManager.keyFile: /etc/X11/xdm/xdm-keys
DisplayManager.servers: /etc/X11/xdm/Xservers
DisplayManager.accessFile: /etc/X11/xdm/Xaccess
DisplayManager.willing: su nobody -c /etc/X11/xdm/Xwilling
! All displays should use authorization, but we cannot be sure
! X terminals will be configured that way, so by default
! use authorization only for local displays :0, :1, etc.
DisplayManager._0.authorize: true
DisplayManager._1.authorize: true
! The following three resources set up display :0 as the console.
DisplayManager._0.setup: /etc/X11/xdm/Xsetup_0
DisplayManager._0.startup: /etc/X11/xdm/GiveConsole
DisplayManager._0.reset: /etc/X11/xdm/TakeConsole
!
DisplayManager*resources: /etc/X11/xdm/Xresources
DisplayManager*session: /etc/X11/xdm/Xsession
DisplayManager*authComplain: false
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
! DisplayManager.requestPort: 0
Další informace o konferenci linux