Dear ga1000-ga,
There are a number of different versions of getty out there, used by
different versions of Linux. Red Hat Linux uses mingetty by default, a
small getty which only handles virtual terminals. Its source code can
be found here:
mingetty (minimal getty)
ftp://ftp.redhat.com/pub/redhat/linux/7.2/en/os/i386/SRPMS/mingetty-0.9.4-18.src.rpm
A more full-featured one they suggest to handle other situations is
agetty:
agetty (alternative getty)
http://ftp.dgii.com/centraldata/prog/agetty/00_index.htm
Other gettys (with source code):
fbgetty (an extended getty program)
http://fbgetty.meuh.eu.org/
mgetty (modem-aware fax-enabled getty)
http://alpha.greenie.net/mgetty/
If this answer isn't quite what you're looking for, please feel free
to request a clarification,
cerebrate-ga
Search strategy:
Google Search - "getty source code" -
://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=getty+source+code
Local search of Red Hat documentation. |
Request for Answer Clarification by
ga1000-ga
on
24 Feb 2003 22:57 PST
(a) Does that dgii ftp has the agetty source code?
(b) Can mingetty work with a 'virtual' terminal?
(c) The cgywin source code is for windows, not Linux.
(d) I will check into those sites tomorrow.
|
Request for Answer Clarification by
ga1000-ga
on
24 Feb 2003 23:02 PST
Please close the answer and consider the question answered.
I noticed that agetty source code is on the ftp site.
Please just add a comment on what is the limitation of mingetty or
what does a virtual terminal mean.
Thank you.
|
Request for Answer Clarification by
ga1000-ga
on
24 Feb 2003 23:27 PST
I got the agetty21.tar file.
But tar zxvf agetty21.tar generates an error message "not in gzip format".
Any idea on how to unzip this file? I use Red Hat 7.1.
|
Clarification of Answer by
cerebrate-ga
on
24 Feb 2003 23:33 PST
Dear ga1000-ga,
A virtual terminal is how the Linux kernel presents the console to
software. As you probably know, you can use Ctrl-Alt-F1 to
Ctrl-Alt-F6, by default, to switch between different screens in Linux,
each of which can hold a different session; each of those screens
represents a virtual terminal.
The limitation of mingetty is that it will only work with these
virtual terminals attached to screen and keyboard; it won't work if
you have modems or actual physical terminals attached to your
machine's serial ports.
A fuller explanation of virtual terminals is available:
Keyboard and Console HOWTO
http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO.html
(specifically in sections 3 and 7)
And of mingetty's limitations:
Remote Serial Console HOWTO, Chapter 6: Configure getty
http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/getty-mingetty.html
I hope this clarifies things for you,
cerebrate-ga
|
Clarification of Answer by
cerebrate-ga
on
24 Feb 2003 23:38 PST
Dear ga1000-ga,
You should only need the "z" option if the tar file in question is
compressed - this one doesn't appear to be, so it should untar for you
with just
tar xvf agetty21.tar
I've double-checked that here, and it seems to work fine.
Regards,
cerebrate-ga
|
Request for Answer Clarification by
ga1000-ga
on
25 Feb 2003 00:29 PST
Thank you very much.
Please close the question on your end and treat the question answered.
|
Clarification of Answer by
cerebrate-ga
on
25 Feb 2003 00:47 PST
Thank you very much for the high rating.
|