13 More serial tips

Contents of this section

Here are some serial tips you might find helpful...

13.1 kermit and zmodem

To use zmodem with kermit, add the following to your .kermrc:

define rz !rz < /dev/cua3 > /dev/cua3
define sz !sz \%0 > /dev/cua3 < /dev/cua3

Be sure to put in the device your modem is on. Then, to use it, just type rz or sz <filename> at the kermit prompt.

13.2 Setting terminal types automagically

To set your terminal type automagically when you log in, look at /etc/ttytype. Put in the device, and corresponding terminal type, and your TERM variable will be set when you log in.

Say I have a vt100 terminal on ttyS1, I would put:

vt100 ttyS1

in /etc/ttytype.

You can also get tset from sunsite.unc.edu:/pub/Linux/system/Terminal-management/. See the docs that come with tset to learn how to use it. tset can establish terminal characteristics when you log in, and doesn't depend on any defaults.

13.3 Color ls on serial connections

If ls is screwing up your terminal emulation with the color feature, turn it off. ls -o, ls --color, and ls --colour all use the color feature. Some installations have ls set to use color by default.

13.4 Printing to a printer connected to a terminal

There is a program called vtprint that will do this. It is available from ftp.sdsu.edu:/pub/vtprint. The following is from the README file that comes with the program:

vtprint is a program that allows users to print from a remote UNIX host to a printer attached to their local terminal or emulator, which makes it great for printing files at home, etc. (It only does text files, though.)

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter