Date: Fri, 21 Mar 2014 10:42:54 -0700 (PDT) From: Anton Shterenlikht <mexas@bris.ac.uk> To: bsam@passap.ru Cc: freebsd-questions@freebsd.org Subject: Re: starting xdm at boot on headless box via rc.d script? Message-ID: <201403211742.s2LHgr3a006458@mech-cluster241.men.bris.ac.uk> In-Reply-To: <532C77DD.2030504@passap.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
>To: undisclosed-recipients:; >Date: Fri, 21 Mar 2014 21:33:17 +0400 >From: Boris Samorodov <bsam@passap.ru> >CC: freebsd-questions@freebsd.org >Subject: Re: starting xdm at boot on headless box via rc.d script? > >The message has been rejected by a spam filter, retrying. I got it the first time round. Thanks Anton > >21.03.2014 18:00, Boris Samorodov пишет: >> 21.03.2014 17:40, Polytropon пишет: >>> 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. >> >> Seems that it's what Anton wants to avoid: assosiating xdm >> with a terminal. >> >> The desired behavious seems to be the default for xdm >> which is changed by the "-nodaemon" option[*]. I'd say that >> if that option is removed from /etc/ttys then xdm should >> start without (or release) the controlling terminal. >> Disclaimer: I din't try it, just think so after reading >> XDM(1). >> > >-- >WBR, Boris Samorodov (bsam) >FreeBSD Committer, http://www.FreeBSD.org The Power To Serve >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403211742.s2LHgr3a006458>