On Sun, 23 Jun 2002 01:21, bascule wrote: > On Saturday 22 June 2002 2:14 pm, you wrote: > > 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? > > i want to be able to login to an x session on a server from my workstation > or run an x sesion on the server locally > the workstation runs mandrake8.2 and the server runs prosuite 8.2 download > edition > I see what you're trying to do...it works perfectly for me though... I normally login to my server and someone remotely X's in from a slow workstation (in fact, it's happening right now!).
I don't know what is happening but AFAIK: 1. you can keep the /etc/X11/xdm/Xservers as it is (automagically runs a display) and you can also let prefdm/kdm startup on your server machine (when I mean server, I mean the powerful network server machine, not the X-way of thinking which is reversed). However, if you want to use startx on your server, you must disable the line in /etc/X11/xdm/Xservers but still allow prefdm/kdm to run. 2. to start the x session from the workstation, type X -query <server>....actually just in case, type X :1 -query server. 3. your problems may be related to having displays already started and startx fails because it tries to open up display :0 (symptom is usually "Cannot open display")...this is why you need to comment out /etc/X11/xdm/Xservers if you want to use startx. Also, simply telinit 3; telinit 5 is usually not enough (it doesn't kill enough processes). You need to clean up the "mess" by telinit 3; killall kdm; killall X; telinit 5. This is probably causing you most of the trouble. 4. Ok, here is the way to debug: On your server: a) Change all those lines I told you to touch (including commenting out the line in /etc/X11/xdm/Xservers) on your server machine. b) telinit 3 c) killall X d) killall kdm e) kdm At this point, kdm would read your new settings and hopefully it will not pop up a new display (i.e. it will _not_ bring up a login screen). f) type startx... Does it work (it should)? Then, on your thinclient/workstation: a) telinit 3 b) killall X c) killall kdm d) X :1 -query <server> Does it bring up the login screen of your server (it should)? If all this works, kill all your X displays and kdms on both computers. Then telinit 5 on both (again, kdm should _not_ bring up a login screen on the server). Try startx on your server (does it work?). Then try the X :1 -query <server> (does that work?). If all this works, all you need to do is comment out the line in /etc/X11/xdm/Xservers for your workstation also so that you don't have to type "X :1" instead of X. btw, what is Xnest? Thanks, pesarif > > 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 > > i have done all the following that you recommend and also put: > xdmcp :192.168.0. > > in /etc/hosts.allow > > both machines are behind a firewall on the same segment, > i can login from > the workstation but if i try to startx on the server i crash straight out, > startkde also gives me 'can't find display' messages, > whether i comment out or not the line in xdm-config i can no longer get a > remote login using Xnest -query <server> after i telinit3 and ten telinit5, > also the monitor connected to the server is completely blank, on all > consoles, via ssh to the server: > #ps wax > shows > 13155 ? S 0:00 /usr/bin/kdm -nodaemon > 13162 ? S 0:00 /usr/bin/kdm_config -nodaemon > 13164 ? Z< 0:00 [X <defunct>] > 13176 ? S 0:00 sh -c /usr/bin/chvt 1; echo >/dev/tty1 ; echo > "Press > <return> to continue." >/dev/tty1 ; /sbin/init 3 > 13177 ? S 0:01 /usr/bin/chvt 1 > 13188 pts/0 R 0:00 ps wax > > if i edit /etc/X11/xdm/Xservers and comment out the line: > :0 local /bin/nice -n -10 /usr/X11R6/bin/X -deferglyphs 16 -nolisten tcp > > then i can get a remote login with Xnest after i telinit 5 on the server > but i still can't get a local session on the server > but this only if i don't comment out the line in xdm-config in which case > #ps wax > gives: > 12647 tty1 S 0:00 -bash > 13973 ? R 0:48 /bin/sh /etc/X11/prefdm -nodaemon > 13977 pts/0 R 0:00 ps wax > > if i comment out the line in xdm-config and telinit 3 then 5 kdm doesn't > even start at all on the server > > it doesn't help that the line in Xservers that i have to comment out keeps > uncommenting itself - i kid you not, it took me an hour to find that the > reason i couldn't repeat the above prior to writing this post was because > that happens, > > putting all files back to how they were disables remote login of course but > i still have to reinstall the server to get a local x session, three times > i've done this, running > #ps wax > after restoring files and telinit 3/5 gives: > 14745 ? S 0:00 /usr/bin/kdm -nodaemon > 14752 ? S 0:00 /usr/bin/kdm_config -nodaemon > 14754 ? Z< 0:00 [X <defunct>] > 14766 ? S 0:00 sh -c /usr/bin/chvt 1; echo >/dev/tty1 ; echo > "Press > <return> to continue." >/dev/tty1 ; /sbin/init 3 > 14767 ? S 0:00 /usr/bin/chvt 1 > 14797 pts/0 R 0:00 ps wax > > i now have no understanding whatsoever of what these files do or how x is > supposed to work, i thought i used to have a glimmer but clearly not :-) > > bascule > > > 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