Date: Mon, 5 Sep 2005 02:07:20 +0200 From: Emanuel Strobl <Emanuel.strobl@gmx.net> To: freebsd-questions@freebsd.org, Grant Peel <gpeel@thenetnow.com> Subject: Re: Terminals Message-ID: <200509050207.32548@harrymail> In-Reply-To: <005401c5b191$79c9a6c0$6601a8c0@GRANT> References: <005401c5b191$79c9a6c0$6601a8c0@GRANT>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 uses sio1 (com2) as console: --- /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="0x3F8" -hint.sio.0.flags="0x10" hint.sio.0.irq="4" hint.sio.1.at="isa" hint.sio.1.port="0x2F8" +hint.sio.1.flags="0x10" hint.sio.1.irq="3" The tell the btx (on both machines) to use the serial device (with flag 0x10) for console: echo "-h" >> /boot.config loader will recognice the serial console and use that, if not also set in loader.conf: console="comconsole" Now you can go into single user mode on one machine and cu/tip from the other one. (regarding speed see BOOT_COMCONSOLE_SPEED= in make.conf, in -current btx can be runtime configured) Also edit /etc/ttys to open a login on the system console in multiuser mode, for example: --- /builder/usr/src/etc/etc.i386/ttys Fri Oct 24 17:44:08 2003 +++ /builder/usr/src/tools/FlashBSD/examples/net4501conf/etc/ttys Thu Apr 21 03:35:09 2005 @@ -30,21 +30,21 @@ # # If console is marked "insecure", then init will ask for the root password # when going to single-user mode. -console none unknown off secure +console none unknown off insecure # -ttyv0 "/usr/libexec/getty Pc" cons25 on secure +ttyv0 "/usr/libexec/getty Pc" cons25 off secure # Virtual terminals -ttyv1 "/usr/libexec/getty Pc" cons25 on secure -ttyv2 "/usr/libexec/getty Pc" cons25 on secure -ttyv3 "/usr/libexec/getty Pc" cons25 on secure -ttyv4 "/usr/libexec/getty Pc" cons25 on secure -ttyv5 "/usr/libexec/getty Pc" cons25 on secure -ttyv6 "/usr/libexec/getty Pc" cons25 on secure -ttyv7 "/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. -ttyd0 "/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, -Harry [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDG4xEBylq0S4AzzwRAgdcAJ0fhIAHngiKOlR+bFDAQyTomYHINACfco+v H0ajmK5oU6kCnY2TfAms8J4= =DWSn -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509050207.32548>
