From owner-freebsd-questions@FreeBSD.ORG Fri Nov 26 17:00:19 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 8177B16A4CE for ; Fri, 26 Nov 2004 17:00:19 +0000 (GMT) Received: from ms-smtp-04.texas.rr.com (ms-smtp-04.texas.rr.com [24.93.47.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBC4643D2F for ; Fri, 26 Nov 2004 17:00:18 +0000 (GMT) (envelope-from afabian@austin.rr.com) Received: from turingmachine.mentalsiege.net (cs70112247-52.austin.rr.com [70.112.247.52])iAQH08J5009899 for ; Fri, 26 Nov 2004 11:00:12 -0600 (CST) Received: from turingmachine.mentalsiege.net (turingmachine.mentalsiege.net [127.0.0.1])iAQGxCaG094623 for ; Fri, 26 Nov 2004 10:59:17 -0600 (CST) (envelope-from afabian@turingmachine.mentalsiege.net) Received: (from afabian@localhost)iAQGxAxU094618 for freebsd-questions@freebsd.org; Fri, 26 Nov 2004 10:59:10 -0600 (CST) (envelope-from afabian) Date: Fri, 26 Nov 2004 10:58:52 -0600 From: Adam Fabian To: FreeBSD Mailing List Message-ID: <20041126165852.GA93504@turingmachine.mentalsiege.net> Mail-Followup-To: FreeBSD Mailing List References: <20041126120415.F260043D5D@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041126120415.F260043D5D@mx1.FreeBSD.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: Symantec AntiVirus Scan Engine 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 17:00:19 -0000 On Fri, Nov 26, 2004 at 12:04:14PM +0000, Danny Browne wrote: > > 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... This is typically a function of your shell, unless you want to do it on a system-wide basis. (A little while ago, I was trying to figure out how to change the environment that processes inheirit from init on FreeBSD but didn't have much luck.) csh and derivatives tend to use .login and .cshrc, sh and derivatives tend to use .profile and .shrc. > 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? Put the command in your .xinitrc if you're using a display manager, and your .Xsession (I think) if you're not. (It will be X that executes the command, not fluxbox.) -- Adam Fabian (afabian@austin.rr.com)