Terminals
Emanuel Strobl
Emanuel.strobl at gmx.net
Sun Sep 4 17:07:53 PDT 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050905/81a6cf4d/attachment.bin
More information about the freebsd-questions
mailing list