Subject: RE: Starting X from /etc/rc.local
To: Greg A. Woods <woods@most.weird.com>
From: John A. Maier <johnam@kemper.org>
List: netbsd-users
Date: 01/14/2000 16:03:00
Yes, that does work and I actually tried it early on in my test.

I just tried it again and discovered that you still need to specify the   
vt in the X command.

So the line in ttys becomes:
ttyE2	"/usr/X11R6/bin/XF86_S3 -query johnam -nolock vt03" unknown off

and the line in rc.local can be removed.

It only gets better :-)

Thanks Greg.

John A. Maier
Kemper Military School and College
Director of MIS
Voice: 660-882-5623
Fax: 660-882-3778
Email: johnam@kemper.org
Web: www.kemper.org


> -----Original Message-----
> From: Greg A. Woods [mailto:woods@most.weird.com]
> Sent: Friday, January 14, 2000 3:47 PM
> To: NetBSD Questions List; NetBSD User's Discussion List;
> John A. Maier
> Subject: RE: Starting X from /etc/rc.local
>
>
>
> [ On Friday, January 14, 2000 at 09:56:00 (-0600), John A.
> Maier wrote: ]
> > Subject: RE: Starting X from /etc/rc.local
> >
> > >:0 local /usr/X11R6/bin/X :0 vt05
> > > This tells X to use the fifth (not an actual vty
> name/number) virtual
> > > terminal (/dev/ttyE4 with default /etc/wscons.conf) instead of the
> > > one where kdm/xdm was launched from.
> >
> > #/etc/ttys
> > ttyE0	"/usr/libexec/getty Pc"		vt220	on
> secure  # Kernel consol
> > ttyE1	"/usr/libexec/getty Pc"		vt220	on
> secure  # wscons.conf defined
> > ttyE2	"/usr/libexec/getty Pc"		vt220	off
> secure # reserve for X
> >
> > #/etc/rc.local
> > /usr/X11R6/bin/XF86_S3 -query johnam -nolock vt03 &
>
> Seems to me it would make more sense to go back to the
> old-fashoined way
> of starting a graphics system and tie all of this stuff together a
> little more neatly:
>
> From ttys(5):
>
>    [[ ... ]]
>      or specify a window system process that init(8) will
> maintain for the
>      terminal line.
>
>    [[ ... ]]
>
>      The string ``window='' may be followed by a quoted
> command string which
>      init will execute before starting the command specified
> by the second
>      field.
>
> Mind you I haven't yet tried this in real life with X11 and xdm yet
> because I don't have a "headed" machine with wscons.  It may not be as
> easy as it looks!  :-)
>
> --
> 							Greg A. Woods
>
> +1 416 218-0098      VE3TCP      <gwoods@acm.org>
> <robohack!woods>
> Planix, Inc. <woods@planix.com>; Secrets of the Weird
> <woods@weird.com>
>