From owner-freebsd-questions@FreeBSD.ORG Sat Dec 24 11:04:51 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AC7C1065670 for ; Sat, 24 Dec 2011 11:04:51 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id D0C838FC14 for ; Sat, 24 Dec 2011 11:04:50 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id B19D45C24 for ; Sat, 24 Dec 2011 21:17:15 +1000 (EST) Message-ID: <4EF5B114.1000304@herveybayaustralia.com.au> Date: Sat, 24 Dec 2011 21:01:40 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4EF59C88.2010202@luckie.org.nz> In-Reply-To: <4EF59C88.2010202@luckie.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: serial consoles 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: Sat, 24 Dec 2011 11:04:51 -0000 On 12/24/11 19:34, Matthew Luckie wrote: > Hi > > I'd like to be able to login using a null modem cable to a freebsd > server, from a freebsd laptop. It doesn't need to display boot > messages, just allow me to login after the system has booted. > > I've got a null modem cable connected to my freebsd server, and on the > other end is a USB serial port on my laptop. On the server I've got: > > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > uart0: [FILTER] > > in /etc/ttys on the server: > > ttyu0 "/usr/libexec/getty std.9600" vt100 on secure > > and there is a getty running on that: > > $ ps xa| grep getty > 1825 ?? I 0:00.00 /usr/libexec/getty std.9600 ttyu0 > > On the laptop, I have: > ugen1.2: at usbus1 > uftdi0: on usbus1 > > as well as cuaU0 and ttyU0 entries in /dev. > > However, when I use cu on the laptop: > > sudo cu -l /dev/cuaU0 -s 9600 > > I never get a login prompt. If I press enter, the cursor scrolls > down. Likewise other characters echo back. I'm reasonably sure that > I'm connected to the appropriate com port on the server because if I > plug it into the other com port and press enter, nothing happens. > > It feels to me that I'm missing something basic. Can someone provide > me with some clue? > > Note: I'm reasonably sure the null modem cable and USB device are > fine, I've used them recently on an arm board (gateworks) running > freebsd and it worked fine then. > You sure its not easier to run a crossover UTP cable to the server? Then you can just ssh or similar to login to the server. From my understanding the null modem cable is used primarily for accessing the boot console - no login. Failing that, you'd probably need a RAS setup; probably mpd, but you may get away with the base pppd. Network is probably you're quickest and easiest bet. HTH