Finally some luck.

I was able to successfully connect to an HP switch over the console port with a 
serial cable by doing the following:

* Boot from the Ubuntu 13.10 Live CD
* Choose the option for TRY it NOW (as opposed to installing the OS)
* Open the Ubuntu Software Center, click Edit and choose Software Sources, then 
enable Community Maintained free and Open Source software (universe) and 
disable the option of the CDRom/DVD being a Source
* From terminal, "sudo apt-get update"
* From terminal, "sudo apt-get install putty"
* From terminal, "sudo putty" (without sudo, putty won't allow Serial 
connections on ttyS0)

That seemed to do the trick!
JR
________________________________________
From: [email protected] [[email protected]] on behalf 
of Jesse Rink [[email protected]]
Sent: Wednesday, December 04, 2013 3:02 PM
To: [email protected]
Subject: RE: [NTSysADM] bootable cd/usb os to check serial port

Okay, I'm not having any luck with this at all.

I tried a Ubuntu Live CD 13.10 but that doesn't have Putty or Minicom installed 
by default, and trying to install it from a terminal using "sudo apt-get 
install putty" results in an error saying E:\ unable to locate package putty.   
I'm guessing because the Ubuntu Live CD 13.10 is trying to install the package 
from the E:\ (cd) drive instead of the internet.  (I also tried sudo apt-get 
update, but that didn't help either)

So, I tried a Fedora 19 Live CD.  I was able to install putty on it using "sudo 
yum install putty" and I now have putty available, but whenever I start up 
putty and select Serial, it automatically tries to use the /dev/ttyS0 port at 
9600, but errors with a "Unable to open connection to:   unable to open serial 
port" ... I'm guessing because the serial port isn't actually active or 
turned-on in the OS yet since it's merely a Live CD?  I also notice that when 
in the /dev directory there is no ttyS0 or ttyS1 in it... So..

I'm stuck.  Any know how to enable the serial port in the Fedora 19 Live CD?    
My linux knowledge is about NIL.

JR


________________________________________
From: [email protected] [[email protected]] on behalf 
of Ben Scott [[email protected]]
Sent: Tuesday, December 03, 2013 9:11 AM
To: [email protected]
Subject: Re: [NTSysADM] bootable cd/usb os to check serial port

On Tue, Dec 3, 2013 at 9:19 AM, Ken Cornetet <[email protected]> wrote:
> Careful using cu (if it even exists on modern linux distros).

  It's generally still packaged by "full" distributions, but live CDs
have to be more choosey about what they provide "out of the box", and
I expect the "uucp" label looks unappealing.  :)

> IIRC, cu doesn't do any handling of the modem and flow control lines, so you
> are at the mercy of whatever the defaults are for whichever serial port device
> file you are using.

  That's what stty(1) is for.  :)  E.g., this sets 9600 baud, 8 data
bits, no parity, 1 stop bit, RTS/CTS off, XON/OFF off (and yes I had
to look the options up):

stty /dev/ttyS0 9600 cs8 -parenb -cstopb -crtscts -cdtrdsr -ixon

-- Ben






Reply via email to