From owner-freebsd-questions Wed Sep 11 14: 6:48 2002 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 2AD9A37B405 for ; Wed, 11 Sep 2002 14:06:43 -0700 (PDT) Received: from bps.jodocus.org (c115139.upc-c.chello.nl [212.187.115.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1D6F43E6A for ; Wed, 11 Sep 2002 14:06:41 -0700 (PDT) (envelope-from joost@bps.jodocus.org) Received: (from joost@localhost) by bps.jodocus.org (8.11.6/8.11.6) id g8BL6df00352; Wed, 11 Sep 2002 23:06:39 +0200 (CEST) (envelope-from joost) Date: Wed, 11 Sep 2002 23:06:39 +0200 From: Joost Bekkers To: Edvard Fagerholm Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Starting programs automatically during boot on a virtual terminal Message-ID: <20020911210639.GA298@bps.jodocus.org> Mail-Followup-To: Joost Bekkers , Edvard Fagerholm , freebsd-questions@FreeBSD.ORG References: <3D7F7C6D.6010807@sigtrap.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D7F7C6D.6010807@sigtrap.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Sep 11, 2002 at 08:25:01PM +0300, Edvard Fagerholm wrote: > Hello! > > I need to start a curses based front-end to an application automatically > during boot on a terminal without ever asking for any login or similar. > How can this be done in FreeBSD? On linux you can use inittab and use > the binary "open" to configure the terminal, but I've got no idea how to > do it on FreeBSD. > > So ttyv0 should be running this program and all the other terminals > should have a normal login prompt. I've looked at various files like > /etc/ttys where you can specify the terminal application to run, but you > can't just run any application here as it has to configure the terminal > and getty can't be used as it doesn't run any other binary than "login". > You can create a user who will automatically start that program on login and instruct getty to autologin with that user. in /etc/gettytab copy the 'pc' entry to one with a new name and add 'al=' see gettytab(5) for details in /etc/ttys change the type for ttyv0 from pc to the newly created type send a HUP to init. -- greetz Joost joost@jodocus.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message