From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 21:49:53 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DE8A16A4CE for ; Tue, 24 Feb 2004 21:49:53 -0800 (PST) Received: from popimap02.icare.priv (unknown [203.78.64.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E31943D1F for ; Tue, 24 Feb 2004 21:49:52 -0800 (PST) (envelope-from satimis@icare.com.hk) Received: from smtpi02.icare.priv ([10.11.12.45]) by popimap02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Wed, 25 Feb 2004 13:49:48 +0800 Received: from icare.com.hk ([203.88.164.46]) by smtpi02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Wed, 25 Feb 2004 13:49:48 +0800 Message-ID: <403C3776.60802@icare.com.hk> Date: Wed, 25 Feb 2004 13:49:42 +0800 From: Stephen Liu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1 X-Accept-Language: en MIME-Version: 1.0 Cc: freebsd-questions@freebsd.org References: <4038CEEE.3090000@icare.com.hk> <20040222113315.5d757673.mj001@rogers.com> <40397828.60801@icare.com.hk> <20040223073159.55850582.mj001@rogers.com> <403B56D2.8090205@icare.com.hk> <20040224114705.193677b3.mj001@rogers.com> In-Reply-To: <20040224114705.193677b3.mj001@rogers.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Feb 2004 05:49:48.0524 (UTC) FILETIME=[2DCCDAC0:01C3FB63] Subject: Re: Fail to start KDE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 05:49:53 -0000 >>>- snip - >>> >>> >>/usr/local/etc/rc.d is a directory. Whether you recommend to create a >>file with only a single line :- 'Kdm &' (without quote) on it and save >>it to /usr/local/etc/rc.d/ >> >>Shall I 'chmod 775' the file created? Files in /usr/local/etc/rc.d/ >>directory have an extension '.h'. Shall I name the file as xxx.h? >> >The "&" makes it run the command as a background job, so that the >prompt re-appears immedidately, and you can go on working in that >shell. In this case, it just means that if you go back to >that virtual terminal (with CTRL-Alt-F1 or whatever) you can run >more commands outside KDE. > >I think the rule for scripts in /usr/local/etc/rc.d is that they >will all be run on startup, provided they are executable. The >convention is to name them "xxx.sh", but I don't know if that is >actually required. So a chmod 500 should be the minimum required >permissions (-r-x------), and 755 will work OK. > > Hi Mike, Tks for your advice. Have tried following version without success /usr/local/etc/rc.d/kguilogin.sh #! /bin/sh 1) kdm & 2) exec "kdm &" 3) kdm 4) xinit kdm 5) xinit /usr/local/bin/kdm -- 6) xinit /usr/local/bin/kdm B.R. Stephen