On Thu, Sep 27, 2007 at 02:11:53PM +0100, Edd Barrett wrote:
> Hi there,
>
> Is it possible to have a list of X servers to connect to in XDM on
> OpenBSD, kind of like dtlogin on solaris?
>
> Thanks
>
It's been a while and I haven't tried in a while but it used to go
like this:
1. Enable XDMCP listening by xdm by commenting (adding "!" at the
front of the line) in /etc/X11/xdm/xdm-config the line:
!DisplayManager.requestPort: 0
2. Remove the local X server from xdm control by commenting the :0
line in /etc/X11/xdm/Xservers:
#:0 local /usr/X11R6/bin/X vt05
3. Add your local network IP for indirect (chooser) or direct access
in /etc/X11/xdm/Xaccess:
192.168.45.21 CHOOSER BROADCAST
192.168.45.21
or
* CHOOSER BROADCAST
*
4. Start xdm at startup in /etc/rc.conf.local:
xdm_flags=""
5. Manualy start the X server in indirect (chooser) mode at startup
in /etc/rc.local:
if [ -x /usr/X11R6/bin/X ]; then
/usr/X11R6/bin/X -indirect 127.0.0.1 -from 192.168.45.21 vt05 :0 &
fi
This is from memory, I don't have access to the system I setup like
this. You might have to fiddle a bit. Read man pages (Xserver, xdm,
etc.). I can't remember if & was necessary or if I did stdout/stderr
redirections.
There might be a way to setup cookies properly. You only really
need one xdm server willing to broadcast for you per network.
The -from option is added because OpenBSD X's server used to be
really bad at selecting a proper local address for indirect/query
mode. (It puts 127.0.0.1 by default or something.) I don't know if
it now work as expected with the new Xorg. This can make it hard
in a DHCP network or for a laptop changing location often.
Hope this help. Hope I understood the question.
--
Hugo Villeneuve <[EMAIL PROTECTED]>
http://EINTR.net/