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 > 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! -- Noble dragons don't have friends. The nearest they can get to the idea is an enemy who is still alive. (Guards! Guards!)
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
