From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 13:41:04 2004 Return-Path: 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 A7F2E16A4CE for ; Mon, 8 Mar 2004 13:41:04 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46A8443D46 for ; Mon, 8 Mar 2004 13:41:03 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i28Lesi1009608 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Mar 2004 21:40:54 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i28LesGb009607; Mon, 8 Mar 2004 21:40:54 GMT (envelope-from matthew) Date: Mon, 8 Mar 2004 21:40:54 +0000 From: Matthew Seaman To: "Gary W. Swearingen" Message-ID: <20040308214054.GD8114@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "Gary W. Swearingen" , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ffoCPvUAPMgSXi6H" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j cc: freebsd-questions@freebsd.org Subject: Re: network type console and /etc/ttys X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 21:41:05 -0000 --ffoCPvUAPMgSXi6H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 08, 2004 at 01:07:09PM -0800, Gary W. Swearingen wrote: > /etc/ttys has a field called "type" and says that "network" is an > option, but I can't find that expanded upon in its manpage or in the > Handbook or FAQ. I've tried googling, but my searches either return a > small list with no relevant info or a huge list that seems to be all > off topic. >=20 > The file has "network" for "Pseudo terminals" (ttyp#), but that isn't > enough of a clue for me, either. The pseudo-terminal entries are used in a) xterm windows and b) when you telnet or ssh into the system remotely. It's basically a software construct that behaves like a real physical terminal. However, it's not sufficiently like an actual terminal that you can use it instead of one. =20 > The basic question is whether and how one can set up a remote (LAN) > terminal, probably using that "network" type in /etc/ttys (without > using X11). How does one specify which network port, for example? > It seems like it should be handled very much like setting up a > RS-232-type serial terminal. Just ssh into the box over the network -- the 'tty' command will tell you your terminal is '/dev/ttyp1' - that 'p' in the name (or 'q' or 'r' or 's' or 'P' or 'Q' or 'R' or 'S') indicates a pseudo-terminal. (real terminals are called something like /dev/console, /dev/tty, /dev/ttyv1 (for the console virtual terminals) or /dev/ttyd1 (for RS-232-type serial terminals)) =20 > The original problem was whether and how one can do that for the > console terminal, to support even single-user mode. >=20 > Seems like basic stuff, but I've never seen mention of it before. Actually this comes up on this list quite regularly. Search for 'remote console access' in the list archives. The trick, basically, is to tell the system to use Serial A as it's console -- how to do that is described in the Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-advan= ced.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole= -setup.html Now, setting up a remotely accessible console can be as simple as stringing a null-modem cable between the serial port on that machine and another one that happens to be near by, and using tip(1) as a terminal emulator on the other machine. Or it can be solved by throwing money and hardware at the problem -- for instance Lightwave (now part of Lantronix) make a nice range of console server equipment. One particularly amusing solution is RealWeasel -- mostly because of the cartoon on the front page of their web site: http://www.realweasel.com/ There's also this article on the FreeBSD site about using console servers: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/console-server/inde= x.html Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --ffoCPvUAPMgSXi6H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFATOhmdtESqEQa7a0RAnxzAJ9zuZdG7ycCnERhTPrtBGlMu9L9KwCfYQDP G4AbPrzl8yEsvkPBdAeGTyU= =Cx9P -----END PGP SIGNATURE----- --ffoCPvUAPMgSXi6H--