Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-14-2013, 03:01 PM   #1
LQ Newbie
Registered: Aug 2011
Location: Godthåb, Grønland
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
Serial terminal connected to USB Serial Port on Ubuntu 12.04


I am trying to get a serial terminal to work with my Ubuntu 12.04 computer. I was able to get text displayed and log in, but it isn't displaying correctly. Here is how I have it set up:

exec /sbin/agetty -L 9600 ttyUSB0 vt100

I have a Wyse 60 on the other end, configured to emulate a vt100.

When I type a command that gives a lot of output, instead of scrolling up, it continues from the top, for example:

ls -la

Will produce

----- output here

If the output is particularly long, the prompt might reappear in the middle of the screen.

Any ideas?
Old 07-15-2013, 09:23 AM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
There is a group of terminal capabilities entries in (/etc/termcap.BSD) for Wyse 60 models that you might want to try (those are Wyse 60 native mode entries). Probably do better with those than with the vt100 emulator entries. They're also in /usr/share/terminfo files.

I used to have a bunch of those (nice terminal!), but I had to roll-my-own termcap/terminfo for them (we're talking the 1980's here on UNIX systems). I do remember that you must use XON/XOFF with them and don't try to run them above 9600 Baud. I still have a Wyse 99-GT (the one that switches into Tektronix mode) floating around somewhere (I think it's in storage about 200 miles from here).

Might want to try using native mode and see what you get -- you can also try vt220 and see if that'll work for you (I seem to remember that it did, but we're talking the dim and distant past so I can't be sure). But you do need to enable XON/XOFF or hardware control so you don't overflow it -- it'll only 9600 Baud.

Don't forget to export TERM=wyse60.

Hope this helps some.

Last edited by tronayne; 07-15-2013 at 09:26 AM.
Old 07-15-2013, 04:28 PM   #3
Registered: Mar 2008
Posts: 21,607

Rep: Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540
Old 07-18-2013, 11:06 PM   #4
LQ Newbie
Registered: Aug 2011
Location: Godthåb, Grønland
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
Works fine on Debian. Rather than scratch my head over this one I think I'll just jump to Debian.

In case anyone else wants to get one working on Debian, here are the settings I used:

getty 9600 8/1 no parity vt100

And on the terminal vt100 personality.

Thanks anyway, guys.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up serial communication from desktop through USB port in linux terminal raphtor Linux - Networking 9 12-21-2022 07:22 AM
Reading TV remote signal using custom IR module connected on serial port. hack_tick Linux - Kernel 3 10-07-2011 03:33 PM
Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C? spudgunner Programming 1 11-12-2010 02:19 PM
RH doesn't detect my Serial modem connected to a PCI Serial card ricky_ds Linux - Hardware 1 08-17-2006 03:37 PM
Permanent Link for my Modem connected to a Serial Port Dave_Busa Linux - Hardware 1 01-07-2006 11:56 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration