Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 1999 10:41:12 -0400 (EDT)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        current@freebsd.org
Subject:   start xdm on a particular vty
Message-ID:  <199909031441.KAA01499@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
There have been discussions about the xdm entry /etc/ttys does not guarantee
the X server being started on the particular vty. So I wrote a shell script
to explicitly tell xdm to start X server on a specific vty. It's been working
great. I'd like to share it with you, maybe we could include it in the base
system. Here's the script (I call it xdmstart), it's very simple,

#!/bin/sh
case $1 in
ttyv*)
	vt=vt`expr $1 : 'ttyv\(.*\)' + 1`;;
*)	vt=;;
esac
exec /usr/X11R6/bin/xdm -nodaemon -server ":0 local /usr/X11R6/bin/X :0 $vt"

and in /etc/ttys replace the xdm line with
ttyv3   "/usr/local/bin/xdmstart"      xterm   on  secure

There's one thing should be noted, the vtxx option isn't a standard X server
option, but both XFree86 and Xig support it, so majority of the people should
be covered.

-lq


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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