From owner-freebsd-questions@FreeBSD.ORG Fri Nov 26 20:31:28 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 B5D3216A4CE for ; Fri, 26 Nov 2004 20:31:28 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A97143D41 for ; Fri, 26 Nov 2004 20:31:28 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id iAQKVO311022; Fri, 26 Nov 2004 15:31:24 -0500 (EST) From: Jerry McAllister Message-Id: <200411262031.iAQKVO311022@clunix.cl.msu.edu> To: danny_browne@eircom.net Date: Fri, 26 Nov 2004 15:31:23 -0500 (EST) In-Reply-To: <20041126120415.F260043D5D@mx1.FreeBSD.org> from "Danny Browne" at Nov 26, 2004 12:04:14 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: FreeBSD Mailing List Subject: Re: Running commands at startup 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: Fri, 26 Nov 2004 20:31:28 -0000 > > > This will probobly seem like such a basic question, but where can do i put > commands i want to run at startup. > > freeBSD 4.10 > > i want to run (for example) > > alias 'ls=ls -G' > alias 'vi=vim' > alias 'shutdown=shutdown -h now' > etc... You should put alias commands in your shell startup script. That would be .cshrc for csh and tcsh and .profile for sh and bash. There are also system wide startup scripts for each of these so you can make everyone have those aliases. Some things like path commands work better in the .login startup script because you may want to add to a path rather than set from scratch each time and if you add in a shell startup, the path can get unnecessarily long. Things that you really want to execute at system startup need to go in either /etc/rc.local or better, in /usr/local/etc/rc.d/ See man pages for rc.d ////jerry > > Also, i am running fluxbox, but my mouse is very slow when it starts up. at the moment i have to enter xset m 5/1 in the terminal to speed it up. How can i get fluxbox do do this at startup? Never used fluxbox. > > ____________________________________________________________ > Danny Browne > > > > _________________________________________________________________ > Sign up for eircom broadband now and get a free two month trial.* > Phone 1850 73 00 73 or visit http://home.eircom.net/broadbandoffer > > > _______________________________________________ > 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" >