From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 08:48:16 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 C5BD016A4CF for ; Tue, 24 Feb 2004 08:48:16 -0800 (PST) Received: from chaucer.statcan.ca (CPE0050fc727b74-CM014270107825.cpe.net.cable.rogers.com [24.43.93.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82B4C43D1F for ; Tue, 24 Feb 2004 08:48:05 -0800 (PST) (envelope-from mike@chaucer.statcan.ca) Received: from chaucer.statcan.ca (localhost [127.0.0.1]) by chaucer.statcan.ca (8.12.9/8.12.9) with ESMTP id i1OGl70S014344 for ; Tue, 24 Feb 2004 11:47:33 -0500 (EST) (envelope-from mike@chaucer.statcan.ca) Received: (from mike@localhost) by chaucer.statcan.ca (8.12.9/8.12.9/Submit) id i1OGl7vi014343; Tue, 24 Feb 2004 11:47:07 -0500 (EST) Date: Tue, 24 Feb 2004 11:47:05 -0500 From: Mike Jeays To: freebsd-questions@freebsd.org Message-Id: <20040224114705.193677b3.mj001@rogers.com> In-Reply-To: <403B56D2.8090205@icare.com.hk> 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> X-Mailer: Sylpheed version 0.9.0 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Tue, 24 Feb 2004 16:48:17 -0000 On Tue, 24 Feb 2004 21:51:14 +0800 Stephen Liu wrote: > > >>- snip - > >> > >> > >>2) > >>After starting 3 'Xterm windows' I can start KDE 3.1 from any one of the > >>'Xterm window' with; > >> > >># startkde > >> > >>It worked with KDE started. > >> > >> > >>3) On INIT 3/text mode I can login either as 'root' or as 'user' with > >>correct password without problem > >> > >> > > > >I haven't used xdm in ttys for a long time, and suspect this is an > >obsolete method. If you enter "kdm &" at a root prompt, kdm should > >start. > > > Hi Mike, > > Tks for your advice which works. > > What is '&' for > > >I don't see why you shouldn't put it into /usr/local/etc/rc.d > >to make it work on startup, and I am pretty sure I used to run it > >that way. > > > > > /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? > > TIA > > B.R. > Stephen > > > _______________________________________________ > 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" 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. -- Personal : Mike.Jeays -at- rogers.com Phone : 613-724-4510 Work : Mike.Jeays -at- statcan.ca Phone : 613-951-9929 FAX 613-951-0395 Web page : http://members.rogers.com/mike.jeays