LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-14-2013, 02:01 PM   #1
809areacode
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


Hello,

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

root@host$
----- output here
------
-----
----

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

Any ideas?
 
Old 07-15-2013, 08:23 AM   #2
tronayne
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 08:26 AM.
 
Old 07-15-2013, 03:28 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,985

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
http://www.tldp.org/HOWTO/Text-Terminal-HOWTO-10.html
 
Old 07-18-2013, 10:06 PM   #4
809areacode
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.
 
  


Reply



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 06:22 AM
Reading TV remote signal using custom IR module connected on serial port. hack_tick Linux - Kernel 3 10-07-2011 02:33 PM
Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C? spudgunner Programming 1 11-12-2010 01:19 PM
RH doesn't detect my Serial modem connected to a PCI Serial card ricky_ds Linux - Hardware 1 08-17-2006 02:37 PM
Permanent Link for my Modem connected to a Serial Port Dave_Busa Linux - Hardware 1 01-07-2006 10:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:04 AM.

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