Google Answers Logo
View Question
 
Q: source code of getty ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: source code of getty
Category: Computers > Programming
Asked by: ga1000-ga
List Price: $10.00
Posted: 24 Feb 2003 21:25 PST
Expires: 26 Mar 2003 21:25 PST
Question ID: 166715
Would like to get a copy of the source code of getty in Linux to look
at. I have getty_os...rpm, the source code does not seem to be
included there.
Answer  
Subject: Re: source code of getty
Answered By: cerebrate-ga on 24 Feb 2003 22:05 PST
Rated:5 out of 5 stars
 
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.
ga1000-ga rated this answer:5 out of 5 stars

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy