old-www/LDP/LG/issue43/tag/2.html

133 lines
5.0 KiB
HTML

<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.2M.b">
<TITLE>The Answer Guy 43: Null Modems: Connecting MS-DOS to Linux as a Serial Terminal</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<H4>"The Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
<img src="../../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="middle">
<font color="#B03060">The Answer Guy</font>
<img src="../../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="middle">
</A></H1>
<BR>
<H4>By James T. Dennis,
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a><BR>
LinuxCare,
<A HREF="http://www.linuxcare.com/">http://www.linuxcare.com/</A>
</H4>
</center>
<p><hr><p>
<!-- endcut ======================================================= -->
<!-- begin 2 -->
<H3 align="left"><img src="../../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Null Modems: Connecting MS-DOS to Linux as a Serial Terminal</H3>
<p><strong>From phax on Mon, 31 May 1999
</strong></p>
<!-- ::
Null Modems: Connecting MS-DOS to Linux as a Serial Terminal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
Would the terminal program start the null modem connection or
would you have to have it be connected before hand through DOS
(I don't know a whole lot about DOS)? I know Linux will be
looking for a terminal on <tt>ttyS0</tt> but will a terminal emulator
show up as a terminal connected on that port?
Sorry to be such a nag,
</STRONG></P>
<P><STRONG>
Richard Mills
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Linux will look for terminal connections on
a line (<TT>/dev/ttyS0</TT>, <TT>/dev/ttyS1</TT>, whatever) if it
it has a "<tt>getty</tt>" process running on that port.
</BLOCKQUOTE>
<BLOCKQUOTE>
You set up a getty process by modifying your <TT>/etc/inittab</TT>
and adding a line like:
</BLOCKQUOTE>
<blockquote><pre>d1:23:respawn:/sbin/agetty -L 38400,19200,9600,2400,1200 ttyS1 vt100
</pre></blockquote>
<BLOCKQUOTE>
... where you can use <tt>agetty</tt>, <tt>uugetty</tt>, <tt>mgetty</tt>, or
<tt>getty_ps</tt> (but not <tt>mingetty</tt>). The syntax and additional
configuration of each of these other getty packages differs slightly.
Search through old issues of the Answer Guy for more
detailed explanations and examples.
</BLOCKQUOTE>
<BLOCKQUOTE><em>[ Issues 16, 17, 18, 21, 22, and 23 mention getty, and more
recently, issues 34 and 37 describe using X over serial lines.
-- Heather ]
</em></BLOCKQUOTE>
<BLOCKQUOTE>
As far as the DOS side of this, you generally just have to
start up your terminal emulation package and configure it
for "direct" or "null-modem" use.
</BLOCKQUOTE>
<!-- sig -->
<!-- end 2 -->
<!--startcut ======================================================= -->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
>Copyright &copy;</a> 1999, James T. Dennis
<BR>Published in <I>The Linux Gazette</I> Issue 43 July 1999</H5>
<H6 ALIGN="center">HTML transformation by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Techinical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<P> <hr> <P>
<!-- begin tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::-->
<TABLE WIDTH="97%"><TR VALIGN="center" ALIGN="center">
<TD ROWSPAN="3" COLSPAN="1" WIDTH="40%"><A
HREF="../lg_answer43.html"
><IMG SRC="../../gx/dennis/answernew.gif"
ALT="[ Answer Guy Index ]"></A></td>
<TD WIDTH="19%"><A HREF="1.html">1</A></TD>
<TD WIDTH="19%"><A HREF="2.html">2</A></TD>
<TD WIDTH="19%"><A HREF="3.html">3</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD><A HREF="4.html">4</A></TD>
<TD><A HREF="5.html">5</A></TD>
<TD><A HREF="6.html">6</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD><A HREF="7.html">7</A></TD>
<TD><A HREF="8.html">8</A></TD>
<TD><A HREF="9.html">9</A></TD>
</TR></TABLE>
<!-- end tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<P> <hr> <P>
<!-- begin lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<A HREF="../index.html"
><IMG SRC="../../gx/indexnew.gif" ALT="[ Table Of Contents ]"></A>
<A HREF="/index.html"
><IMG SRC="../../gx/homenew.gif" ALT="[ Front Page ]"></A>
<A HREF="../lg_bytes43.html"
><IMG SRC="../../gx/back2.gif" ALT="[ Previous Section ]"></A>
<A HREF="../lg_tips43.html"
><IMG SRC="../../gx/fwd.gif" ALT="[ Next Section ]"></A>
<!-- end lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
</BODY></HTML>
<!--endcut ========================================================= -->