From owner-freebsd-questions@FreeBSD.ORG Mon Sep 5 00:07:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 1515316A41F for ; Mon, 5 Sep 2005 00:07:53 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 4568843D46 for ; Mon, 5 Sep 2005 00:07:51 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 05 Sep 2005 00:07:50 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp031) with SMTP; 05 Sep 2005 02:07:50 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org, Grant Peel Date: Mon, 5 Sep 2005 02:07:20 +0200 User-Agent: KMail/1.8.1 References: <005401c5b191$79c9a6c0$6601a8c0@GRANT> In-Reply-To: <005401c5b191$79c9a6c0$6601a8c0@GRANT> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3432149.qqPrqqYTi5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200509050207.32548@harrymail> X-Y-GMX-Trusted: 0 Cc: Subject: Re: Terminals X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2005 00:07:53 -0000 --nextPart3432149.qqPrqqYTi5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Sonntag, 4. September 2005 22:44 CEST schrieb Grant Peel: > Hi all, > I have serveral servers in a cage in Toronto, but I live 120 miles away. > Every once in a while, I will crash a box, or lock myself out of one of > them (mostly just the dev box now!). Anyways, is it possible to > daisychain the machines together using COM1 and COM2 so that no matter > what, one can always get to a console? Or am I just wishing here... Of course you can. Just edit /boot/device.hints on one machine so that it=20 uses sio1 (com2) as console: =2D-- /boot/device.hints Thu Aug 18 05:55:08 2005 +++ /tmp/device.hints Mon Sep 5 01:55:36 2005 @@ -36,10 +36,10 @@ hint.sio.0.port=3D"0x3F8" =2Dhint.sio.0.flags=3D"0x10" hint.sio.0.irq=3D"4" hint.sio.1.at=3D"isa" hint.sio.1.port=3D"0x2F8" +hint.sio.1.flags=3D"0x10" hint.sio.1.irq=3D"3" The tell the btx (on both machines) to use the serial device (with flag=20 0x10) for console: echo "-h" >> /boot.config loader will recognice the serial console and use that, if not also set in=20 loader.conf: console=3D"comconsole" Now you can go into single user mode on one machine and cu/tip from the=20 other one. (regarding speed see BOOT_COMCONSOLE_SPEED=3D in make.conf, in=20 =2Dcurrent btx can be runtime configured) Also edit /etc/ttys to open a login on the system console in multiuser=20 mode, for example: =2D-- /builder/usr/src/etc/etc.i386/ttys Fri Oct 24 17:44:08 2003 +++ /builder/usr/src/tools/FlashBSD/examples/net4501conf/etc/ttys Thu= =20 Apr 21 03:35:09 2005 @@ -30,21 +30,21 @@ # # If console is marked "insecure", then init will ask for the root=20 password # when going to single-user mode. =2Dconsole none unknown off secure +console none unknown off insecure # =2Dttyv0 "/usr/libexec/getty Pc" cons25 on secure +ttyv0 "/usr/libexec/getty Pc" cons25 off secure # Virtual terminals =2Dttyv1 "/usr/libexec/getty Pc" cons25 on secure =2Dttyv2 "/usr/libexec/getty Pc" cons25 on secure =2Dttyv3 "/usr/libexec/getty Pc" cons25 on secure =2Dttyv4 "/usr/libexec/getty Pc" cons25 on secure =2Dttyv5 "/usr/libexec/getty Pc" cons25 on secure =2Dttyv6 "/usr/libexec/getty Pc" cons25 on secure =2Dttyv7 "/usr/libexec/getty Pc" cons25 on secure +ttyv1 "/usr/libexec/getty Pc" cons25 off secure +ttyv2 "/usr/libexec/getty Pc" cons25 off secure +ttyv3 "/usr/libexec/getty Pc" cons25 off secure +ttyv4 "/usr/libexec/getty Pc" cons25 off secure +ttyv5 "/usr/libexec/getty Pc" cons25 off secure +ttyv6 "/usr/libexec/getty Pc" cons25 off secure +ttyv7 "/usr/libexec/getty Pc" cons25 off secure ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. =2Dttyd0 "/usr/libexec/getty std.9600" dialup off secure +ttyd0 "/usr/libexec/getty std.115200" unknown on secure ttyd1 "/usr/libexec/getty std.9600" dialup off secure ttyd2 "/usr/libexec/getty std.9600" dialup off secure ttyd3 "/usr/libexec/getty std.9600" dialup off secure Have fun, =2DHarry --nextPart3432149.qqPrqqYTi5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDG4xEBylq0S4AzzwRAgdcAJ0fhIAHngiKOlR+bFDAQyTomYHINACfco+v H0ajmK5oU6kCnY2TfAms8J4= =DWSn -----END PGP SIGNATURE----- --nextPart3432149.qqPrqqYTi5--