From owner-freebsd-questions Tue Jun 10 07:35:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA07784 for questions-outgoing; Tue, 10 Jun 1997 07:35:44 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA07731 for ; Tue, 10 Jun 1997 07:35:33 -0700 (PDT) Received: by mail.EUnet.hu, id QAA17348; Tue, 10 Jun 1997 16:34:53 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id QAA00444; Tue, 10 Jun 1997 16:33:22 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199706101433.QAA00444@CoDe.hu> Subject: Re: Xdm - xlogin To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Tue, 10 Jun 1997 16:33:22 +0200 (MET DST) Cc: sebesty@cs.elte.hu In-Reply-To: from Zoltan Sebestyen at "Jun 10, 97 10:31:24 am" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hi, > > I've just modified /etc/ttys to start X by xdm(didn't want to bother > with login/startx). Now I've got two questions: Does anyone know the > resources of xlogin(I'd like to change the background and some properties > of the xlogin window)? Before that change I've set XAPPLRESDIR to > ~/app-defaults where some of my X resource files reside. How can I tell > xdm the same thing? (It surely won't read my .bash_profile :-) Hello! 1) As of the FAQ (on my 2.1.5): -- 7.19. How do I start XDM from the /etc/ttys file ? Starting xdm via /etc/ttys is a Bad Thing. I don't know why this crept into some README file. Start it from your rc.local, and be explicit about how it has to start. If this is your last action in rc.local, put a ``sleep 1'' behind, to allow xdm to properly daemonize before the rc shell exits. xdm should be started without any arguments (i.e., as a daemon). The Xserver config file (default: /usr/X11R6/lib/X11/xdm/Xservers) should contain the line: ______________________________________________________________________ :0 local /usr/X11R6/bin/X :0 vt08 -wm ______________________________________________________________________ -- 2) I think, the correct answer is man xdm ;-) Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"