From owner-freebsd-questions Tue Feb 26 13:45: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from exgw2.lumeta.com (exgw2.lumeta.com [65.198.68.66]) by hub.freebsd.org (Postfix) with ESMTP id C99DA37B400 for ; Tue, 26 Feb 2002 13:45:05 -0800 (PST) Received: from lucy.corp.lumeta.com (h65-198-68-133.lumeta.com [65.198.68.133]) by exgw2.lumeta.com (Postfix) with ESMTP id 471A3758D; Tue, 26 Feb 2002 16:45:05 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by lucy.corp.lumeta.com (Postfix) with ESMTP id B3D6C10811; Tue, 26 Feb 2002 16:45:04 -0500 (EST) Received: from lumeta.com (tal.corp.lumeta.com [65.198.68.200]) by lucy.corp.lumeta.com (Postfix) with ESMTP id C72901080C; Tue, 26 Feb 2002 16:45:03 -0500 (EST) Message-ID: <3C7C01DD.472C74A6@lumeta.com> Date: Tue, 26 Feb 2002 16:45:01 -0500 From: Tom Limoncelli Organization: Lumeta Corp X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: stan Cc: Free BSD Questions list Subject: Re: /etc/ttys ? Question References: <20020226113534.GA31428@teddy.fas.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-11 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 stan wrote: > > I'm trying to do something on FreeBSD, that I have done easily on Linux, > and I'm runing inot a bit of dificulty. > > What I want to do si have a FreeBSD machine start up a task on boot, that > needs to _display only_ to a dedicated virtual terminal. That virtual > terminal should not be runing a getty, and should ignore keyboard input. I've done nearly the same thing with a FreeBSD 4.3 machine. 1. Wrap the script with something like: #!/bin/bash ( /usr/bin/su - user 'put your command here' ) 2>&1 >/dev/ttyv7 2. The output should go to the ALT-F8 screen. (this next step is the part that I didn't do) 3. Disable the getty on that screen. Edit /etc/ttys and comment out the line with ttyv7. Use this command to make init re-read /etc/ttys: kill -1 1 That should do it! --Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message