On Sat, 22 Jun 2002 08:34, bascule wrote:
> is it possible to run kdm on two machines and have a local X console on one
> AND login remotely from the other machine and run X?
Yes, this took me a day to figure out!
I have an even trickier setup where it brings up a chooser menu (on either 
machine) and you can login to either local _or_ the remote but if I 
understand you correctly, you only want a basic thin-client setup via X:

> i can get one or the other but cannot for the life of me get both to work
>
1. Ok, for your server (I mean the network server) machine:

For $KDEDIR/share/config/kdm/kdmrc (where KDEDIR=/usr or /opt/kde3):

[Xdmcp]
Enable=true

2. Make sure your firewall isn't blocking anything (turn it off for testing 
purposes).

3. In /etc/X11/xdm/Xaccess:

localhost
mythinclient.domain                       #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.
#

localhost               CHOOSER BROADCAST
mythinclient.domain      CHOOSER BROADCAST       #any indirect host can get a 
chooser

Where mythinclient.domain is your thin-client.

4. Just in case, comment out DisplayManager.requestPort from 
/etc/X11/xdm/xdm-config like this:
! DisplayManager.requestPort:   0

5. For your thinclient, type X -query <myserver.domain> and you should get a 
login window from your remote server...  If you like chooser menus, type X 
-indirect <myserver.domain>....if this works nicely, put it in the 
thinclient's /etc/inittab (remember to snipe the prefdm/kdm line in 
/etc/inittab or else the thinclient will try to spawn and manage its own 
local x sessions)

Note that this does not use the remote fontserver....to do that you need to 
change FontPath in /etc/X11/XF86Config[-4] but this really doesn't matter in 
most cases.

Also, you may need to send kdm -HUP or something (even reboot?) for it to 
realise the new settings.

Have fun debugging the config!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to