From owner-freebsd-hackers Thu Sep 7 6:53: 1 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from doorman.brann.org (remote-brann-gw.nyc.dsl.access.net [166.84.145.254]) by hub.freebsd.org (Postfix) with ESMTP id 1D81837B43E for ; Thu, 7 Sep 2000 06:52:56 -0700 (PDT) Received: from freebie.brann.org (freebie.brann.org [10.0.0.2]) by doorman.brann.org (8.9.3/8.9.3) with ESMTP id JAA69819 for ; Thu, 7 Sep 2000 09:52:55 -0400 (EDT) (envelope-from john@brann.org) Received: (from john@localhost) by freebie.brann.org (8.9.3/8.9.3) id JAA52395 for hackers@freebsd.org; Thu, 7 Sep 2000 09:52:54 -0400 (EDT) (envelope-from john) Date: Thu, 7 Sep 2000 09:52:54 -0400 From: John Brann To: hackers@freebsd.org Subject: [john: tty behaviour] Message-ID: <20000907095254.A52345@freebie.brann.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" X-Mailer: Mutt 1.0i Organization: Not while I'm at home X-Operating-System: FreeBSD 4.1-STABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii I sent this to questions a couple of weeks ago, but didn't receive any helpful replies. Anyone doing this - two machines connected by a null-modem cable with the ability to create a serial terminal session from either side, with suitable juggling of getty processes? John --sm4nu43k4a2Rpi4c Content-Type: message/rfc822 Date: Thu, 10 Aug 2000 17:31:07 -0400 From: John Brann To: questions@freebsd.org Subject: tty behaviour Message-ID: <20000810173107.A16021@freebie.brann.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Organization: Not while I'm at home X-Operating-System: FreeBSD 4.1-STABLE Hi, I have two FreeBSD boxes, one runs headless and uses a serial console. This serial console is provided by the second machine, via a null-modem cable: +------------+ +------------+ | machine 1 | | machine 2 | | 3.5-STABLE | | 4.1-STABLE | | HEADLESS | Null-modem cable | | | port sio0 |=======================| port sio1 | +------------+ +------------+ The serial console works perfectly. I can use cu / tip on machine 2 to watch boot messages and log in (I have configured /etc/ttys to provide a getty on /dev/ttyd0 on machine 1). I would like to be able to do the reverse - log in to machine 1 through a network connection, and use it to control machine 2. My steps to accomplish this were: on Machine 1: change /etc/ttys to remove the getty on /dev/ttyd0 kill -HUP 1 on Machine 2: change /etc/ttys to run a getty on /dev/ttyd1 kill -HUP 1 on Machine 1: cu -l cuaa0 Doesn't work. 'cu' tells me I am connected, but no login prompt appears. No characters I type are echoed. I then removed the getty on machine 2 and tried some simpler experiments: Machine 1 Machine 2 cu -l cuaa0 cu -l cuaa1 type characters echoed characters echoed type So the cable is OK. The connection _can_ work. Machine 1 Machine 2 cat < /dev/ttyd0 cu -l cuaa1 lines echoed type then Enter key So the line-discipline is different, but there is no problem using the ttyd0 device on machine1. Machine 1 Machine 2 cu -l cuaa0 cat < /dev/ttyd1 type (no echo on terminal) NO ECHO This does not work. It appears that the tty device on machine 2 is my problem. Any ideas how I can make it work? There are no permissions problems, the devices on both machines have been re-built (so they are not stale device files). Please reply directly (and thank you if you've read this far!) since I'm not on the questions list. John -- Unreal City, Under the brown fog of a winter dawn, finger john@doorman.brann.org for pgp public key --sm4nu43k4a2Rpi4c-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message