From owner-freebsd-questions Mon Nov 22 20:34:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.monsterbymistake.com (monsterbymistake.com [205.207.163.17]) by hub.freebsd.org (Postfix) with ESMTP id 7A70015349 for ; Mon, 22 Nov 1999 20:34:15 -0800 (PST) (envelope-from drek@MonsterByMistake.Com) Received: from jazz.monsterbymistake.com (jazz.monsterbymistake.com[205.207.163.189]) by mail.monsterbymistake.com (Smail-3.2.0.101 1997-Dec-17 #3; 1998-Sep-25) (4147 bytes) via sendmail with /P:esmtp/R:bind_hosts/T:inet_zone_bind_smtp id (sender ident using rfc1413) for ; Mon, 22 Nov 1999 23:24:52 -0500 (EST) Date: Tue, 23 Nov 1999 00:43:49 -0500 (EST) From: Agent Drek To: FreeBSD Questions Cc: Christian Taylor Subject: Re: Serial console from other machines In-Reply-To: <199911230340.TAA06687@red.juniper.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 22 Nov 1999, Brian Matheson wrote: |Date: Mon, 22 Nov 1999 19:40:30 -0800 |From: Brian Matheson |To: Christian Taylor |Cc: freebsd-questions |Subject: Re: Serial console from other machines | | |You should be able to replace the /usr/libexec/getty in /etc/ttys with |your favorite terminal program (like maybe "cu -s 9600 -l |/dev/cuaa1"). There may be terminal emulation issues to worry about |though. | | |> Hi everyone, |> |> There may be an answer to my question somewhere, but I haven't been able to |> find it in the archives or the handbook or FAQ anywhere... anyway... I have |> a server running FreeBSD, and two other headless machines (one is an old Mac |> running NetBSD/mac68k and the other is a Quake server running FreeBSD). |> Since I don't have monitors for these machines, I'd like to set up serial |> consoles on them and run them to the FreeBSD server. But... I don't really |> want to have to login to use them. |> |> What I'd like, is to add two more virtual consoles to my kernel, and have |> the serial consoles of the other two machines show up there (ie. so I could |> use say Alt-F5 and Alt-F6 to access their consoles). It would act similar |> to a keyboard/monitor multiplexer. Is there a way I can set up my /etc/ttys |> file to do this? Basically, just redirect all input/output on a given |> virtual console to/from a given serial port. |> |> Has anyone done this, or have any ideas how I could go about setting it up? |> I hope it's clear what I'm trying to do... |> |> Thanks in advance! |> |> -Christian |> |> -- |> Christian Taylor |> phazer@ns.sympatico.ca |> http://www.phazer.org/ |> |> |> |> |> |> To Unsubscribe: send mail to majordomo@FreeBSD.org |> with "unsubscribe freebsd-questions" in the body of the message | | |To Unsubscribe: send mail to majordomo@FreeBSD.org |with "unsubscribe freebsd-questions" in the body of the message | Should one set this in the kernel config as well: MYKERN: # Serial (COM) ports device sio0 at isa? port "IO_COM1" flags 0x20 tty irq 4 I thought that the 0x20 forced the com port into a console: LINT: # # `flags' for serial drivers that support consoles (only for sio now): # 0x10 enable console support for this unit. The other console flags # are ignored unless this is set. Enabling console support does # not make the unit the preferred console - boot with -h or set # the 0x20 flag for that. Currently, at most one unit can have # console support; the first one (in config file order) with # this flag set is preferred. Setting this flag for sio0 gives # the old behaviour. # 0x20 force this unit to be the console (unless there is another # higher priority console). This replaces the COMCONSOLE option. # 0x40 reserve this unit for low level console operations. Do not # access the device in any normal way. my /etc/ttys was already set up with this line: ttyd0 "/usr/libexec/getty std.9600" dialup on secure So I didn't change it and I'm using minicom on a linux w.s. I did this today for the first time (thus my interest in this thread) and I'd like to know that I got things correct and understood them. I'm not getting all of the bootup info in the console which is bothersome however... Just curious... thanks, =derek Monster By Mistake Inc > 'digital plumber' http://www.interlog.com/~drek To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message