Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2014 14:40:00 +0100
From:      Polytropon <freebsd@edvax.de>
To:        mexas@bris.ac.uk
Cc:        freebsd-questions@freebsd.org
Subject:   Re: starting xdm at boot on headless box via rc.d script?
Message-ID:  <20140321144000.f7c08d2a.freebsd@edvax.de>
In-Reply-To: <201403210944.s2L9i06K001182@mech-cluster241.men.bris.ac.uk>
References:  <201403210944.s2L9i06K001182@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 21 Mar 2014 02:44:02 -0700 (PDT), Anton Shterenlikht wrote:
> I've a headless server that accepts
> connections via XDMCP. I'd like to
> start xdm in daemon mode without
> attaching it to any virt. terminal.
> From the command like I can simply
> type xdm, but can I do this via
> /etc/rc.conf, something like xdm_enable=YES?

Currently, there is no rc.d mechanism for starting xdm.
You could write your own, but you can also use the
method by which xdm has been started for decades:

Edit /etc/ttys as follows:

	ttyv8  "/usr/local/bin/xdm -nodaemon"  xterm  on  secure

This line will make xdm start from ttyv8, where
Alt+PF9 will be the VT your X session is running
(in case you're switching virtual terminals).
After the system has finished booting, xdm will
be started and the switching to the correct virtual
console, now displaying the X login, will automatically
happen.




> I see some examples of using custom
> scripts in /usr/X11R6/etc/rc.d, e.g.:
> http://terrencemiao.com/Webmail/msg00720.html
> 
> Is this a good idea?

It's not a _bad_ idea if it works for you. :-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140321144000.f7c08d2a.freebsd>