old-www/LDP/LG/issue68/lg_mail68.html

605 lines
24 KiB
HTML

<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.3E.w">
<TITLE>Linux Gazette Mailbag LG #68</TITLE></HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<P>
<CENTER>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="lg_bytes68.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
<!-- *** END navbar *** -->
</CENTER>
</p>
<!-- HELP WANTED : Article Ideas SECTION ================================================== -->
<!-- endcut ======================================================= -->
<center>
<H1><A NAME="wanted"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/mailbox.gif">
The Mailbag</A></H1> <BR>
<!-- BEGIN wanted -->
</center>
<P> <hr> <P>
<!-- =================================================================== -->
<center><H3><font color="maroon">HELP WANTED : Article Ideas</font></H3></center>
<P>
<P> Send tech-support questions, answers and article ideas to The Answer Gang
&lt;<A HREF="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</A>&gt;. Other mail (including
questions or comments about the <EM>Gazette</EM> itself) should go to
&lt;<A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A>&gt;. All material
sent to either of these addresses will be considered for publication in the
next issue. <EM>Please send answers to the original querent too, so that s/he
can get the answer without waiting for the next issue.</EM>
<P> Unanswered questions might appear here. Questions with
answers--or answers only--appear in The Answer Gang, 2-Cent Tips, or here,
depending on their content. There is no guarantee that questions will
<em>ever</em> be answered, especially if not related to Linux.
<P> <STRONG>Before asking a question, please check the
<A HREF=../faq/index.html><I>Linux Gazette</I> FAQ</A> to see if it has been
answered there.</STRONG>
<P> <HR> <P>
<!--====================================================================-->
<!-- BEGIN HELP WANTED : Article Ideas -->
<UL>
<!-- index_text begins -->
<li><A HREF="#wanted/1"
><strong>kernel tuner's helper</strong></a>
<li><A HREF="#wanted/2"
><strong>What Type of Hard disk ( SCSI/RAID)</strong></a>
<li><A HREF="#wanted/3"
><strong>WordPerfect 8 and RH 7.1</strong></a>
<li><A HREF="#wanted/4"
><strong>modem installation help</strong></a>
<li><A HREF="#wanted/5"
><strong>Microphone trouble</strong></a>
<li><A HREF="#wanted/6"
><strong>Viewing gzip'ed pages with Netscape</strong></a>
<li><A HREF="#wanted/7"
><strong>tighter mail security.... using SSL</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">kernel tuner's helper</FONT></H3>
Mon, 04 Jun 2001 14:56:15 +0200
<BR>Antonio Sindona (<a href="mailto:linux-questions-only@ssc.com?cc=Antonio.Sindona@italtel.it">Antonio.Sindona from italtel.it</a>)
<P>
There is a tool to monitor kernel parameters and to change the limits. I
explain better: I'd like to have a look in some occasions if there is some
kernel parameter which has reached its limit, and have the possibility to
change it. Moreover I'd like to see anyway ALL kernel parameters available
to set them to optimize it. With HP-UX there is a tool (SAM) which makes
this work. Any idea for a Linux box ?
Thanks in advance
</P>
<P>
Antonio Sindona
</P>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">What Type of Hard disk ( SCSI/RAID)</FONT></H3>
1 Jun 2001 20:29:11 -0000
<BR>Alpesh K and Sachin Vyas (<a href="mailto:linux-questions-only@ssc.com?cc=alpesh8@rediffmail.com,sachin-vyas@usa.net">both</a> alpesh8 from rediffmail.com AND sachin-vyas from usa.net)
<blockquote><font color="#000066">Both of these users asked pretty much the same question. They are SuSE users
but because the question is about the kernel overall, the result should be
useful to everyone. But this could also serve as the starting point for an
article about using RAID, or about working with the proc filesystem, or an
inspiration to write this "tool like an sg interface" they have conceived of.
If you decide to answer this directly, please mail both of them and cc
<A HREF="mailto:linux-questions-only@ssc.com"
>linux-questions-only@ssc.com</A>.
-- Heather</font></blockquote>
<P><strong>
Alpesh K
</strong></P>
<P>
Hi:
</P>
<P>
Is there a programming interface through which I can find out type of hard
disk ( SCSI/RAID)? I have Suse Linux 7.1 (x86) with two SCSI hard disks and
one SCSI is connected through AMI megaraid hardware RAID controller. RAID
driver is megarid and lsmod displays it.
</P>
<P>
I need to find out which is RAID/SCSI ? I looked at <TT>/proc/scsi/scsi</TT> but that
didn't tell which is SCSI/RAID.
</P>
<P>
But another <A HREF="http://www.suse.com/">SuSE</A> 7.1 system having Mylex h/w RAID controller and DAC driver
has <TT>/proc/rd/c*d*</TT> entry.
</P>
<P>
1. So why not there is an entry <TT>/proc/rd/c*d*</TT> on system which has AMI RAID controller?
</P>
<P>
2. Is there any ioctl through which I can find out which disk is SCSI/RAID, if device name ( <TT>/dev/sda</TT> , <TT>/dev/sdb</TT> etc.) is given.
</P>
<blockquote><font color="#000066">...in a later mail he added...
-- Heather</font></blockquote>
<P>
I looked at scsi generic interface(sg ) but as I understand It cann't be used for all the types of RAID Controllers.( Mylex DAC, Compaq smart array etc.)
A generic interface like sg which works for all the RAID controllers will be very helpful.
</P>
<P>
I looked at looked <TT>/proc/scsi/scsi</TT> and <TT>/proc/rd/c*</TT> but that may vary , so if I have to use <TT>/proc</TT> then I have to hardcode <TT>/proc</TT> pathname.
</P>
<P>
I will be very thankful if somebody tells me how do I do this.
</P>
<P>
Thanks in advance.
<br>Alpesh
</P>
<HR width="10%" align="center">
<P><strong>
sachin vyas
</strong></P>
<P>
Hi All:
</P>
<blockquote><font color="#000066">...Sachin asks similar questions as Alpesh, but adds:
-- Heather</font></blockquote>
<P>
Can I use <TT>/proc/partitions</TT> which will give all the disks then I can filter out
IDE by looking at <TT>/proc/ide</TT> , SCSI by <TT>/proc/scsi/scsi</TT> and remaining becomes
RAID ?
</P>
<P>
I will be very thankful if somebody tells me whether using <TT>/proc/partitions</TT>
is correct or not ? If not how this be done.
</P>
<P>
Thanks in advance,
<br>Sachin
</P>
<blockquote><font color="#000066">I believe that the remainder would also include old model CDROMs or tapes
that had private controllers.
-- Heather</font></blockquote>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">WordPerfect 8 and RH 7.1</FONT></H3>
Fri, 25 May 2001 13:00:56 -0400
<BR>James P. Harlos (<a href="mailto:linux-questions-only@ssc.com?cc=harlos@localnet.com">harlos from localnet.com</a>)
<P>
For reasons which seemed good to me at the time I switched distos and
upgraded to RH 7.1. After some work everything seems to be ok except
for sound. However, I got a big surprise when I tried to load
WordPerfect 8 from CD. This is a purchased copy of WP 8 Personal
Edition that worked fine. The install script would not run! I went to
<A HREF="http://linux.corel.com/">Corel</A>'s site. They apparently don't help people who purchased their
product. In any event they seem to be more concerned with their new
product WP 2000. On one of their user group boards there was a tread
concerning this, suggesting the problem was in the initial install
script, install.wp. Well the long and short of it is I made the changes
suggested with no change in behavior. Do you have any answer?
</P>
<blockquote><font color="#000066">We don't have the script at hand, but someone who does might tell you
haw they forced it to install correctly. Which needn't be by using
what Corel provided.
-- Heather</font></blockquote>
<P>
I find it unfortunate that Corel takes the path of install scripts
rather than RPM or even tarballs. I used WP way back under DOS and
liked it. I liked it even more when the first verions of Word came
out. Sadly, WP rested on their laurels and their product withered.
When Corel brought out WP for Linux I thought this was good, tried out
the free download, liked it and bought it in version 8. After this I
will not buy another Linux product from Corel. Enough soapbox.
</P>
<P>
Jim Harlos
</P>
<blockquote><font color="#000066">I think it's worth mentioning that both the RPM format and DEB format,
plus possibly other packaging types, do have they ability to have install
and remove scripts. What you actually want is for them to work.
-- Heather</font></blockquote>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">modem installation help</FONT></H3>
Mon, 28 May 2001 10:22:05 -0700 (PDT)
<BR>bxb 3 (<a href="mailto:linux-questions-only@ssc.com?cc=bxb32001@yahoo.com">bxb32001 from yahoo.com</a>)
<P>
to the guys n' gals of tag:
</P>
<P><BLOCKQuote>
Hi! First of all I'm somewhat of a complete newbie and
that my brain is muck (overloaded, uncooperative and
maybe just almost totally inaccessible)from what I've
read and tried to understand... I just need a... well,
a quite simple explanation...
</BLOCKQuote></P>
<P>
I have an internal ESS ES28381 modem... I did a...
(what was it?).. a <TT>/cat</TT> <TT>/proc/pci</TT> whatever and got
this about the (uhmm PCI?):
</P>
<blockquote><pre>Bus 2, device 4, function 0:
Communication controller: ESS Technology ES28381).
IRQ 9.
I/o at 0xc400 [0xc40f]
</pre></blockquote>
<P>
Well thats about it and that under the other OS my
modem was at COM 4.
</P>
<P>
NOW WHAT DO I DO?
</P>
<P>
thanks anywayz.... and you don't really need to put
this in the mag if it doesn't sound that interesting
or if it seems totally dum... I agree I'm quite a bit.
I just need a little help so a reponse would be
greatly appreciated.
</P>
<blockquote><font color="#000066">wvdial or kisp might do it for you; but troubleshooting using modems
for the first time under Linux is worth an article in its own right.
-- Heather</font></blockquote>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Microphone trouble</FONT></H3>
Tue, 5 Jun 2001 22:23:20 -0700
<BR>j_c_llings and Rafael Lepra (<a href="mailto:linux-questions-only@ssc.com?cc=j_c_lings@netzero.net,rlepra@adinet.com.uy">both</a> j_c_llings from netzero.net AND rlepra from adinet.com.uy)
<P><strong>
j_c_llings
</strong></P>
<P>
I have noticed that my microphone does not work in linux. The
impression I am getting is that this is common in the Linux community
since most folks don't use them and there are always bigger fish...(
er... penguins?) to fry. Would it be possible to convince you to cover
the general configuration and most common problems with microphones?
</P>
<hr width="10%" align="center">
<P><strong>
Rafael Lepra
</strong></P>
<P>
I have a motherboard GA 7ZX with a Creative PCI 128 sound chip. I have
installed RedHat 6.0 (I got the CD from a magazine). First of all I could
not initialize XWindows cause it did not recognize the Rage 128. I
downloaded and instal XFree86 4.02 and it worked.
</P>
<P>
But I have not been able to put the PCI 128 to work, the sistem just did not
find the chip. I have read the Sound How TO but it looked rather criptic to
a newby. Could you give me some advice. Please take into account I am quite
new in Linux.
</P>
<blockquote><font color="#000066">If someone would like to work with these two to improve these HOWTOs
(there are more than one related to sound, see
<A HREF="http://www.linuxdoc.org/HOWTO/HOWTO-INDEX/apps.html#MMAUDIO"
>http://www.linuxdoc.org/HOWTO/HOWTO-INDEX/apps.html#MMAUDIO</A>)
then you should also copy the author of the HOWTO you're going to be
looking at. But we'd love to see an article about just getting sound
going so you can play cute "tada" sounds and talk to your computer.
-- Heather</font></blockquote>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/6"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Viewing gzip'ed pages with Netscape</FONT></H3>
Sat, 16 Jun 2001 00:32:54 +0900 (JST)
<BR>Aron Lentsch (<a href="mailto:linux-questions-only@ssc.com?cc=lentsch@nal.go.jp">lentsch from nal.go.jp</a>)
<P>
Dear Answer Gang!
</P>
<P>
In my previous version of Netscape (4.75) gzip'ed HTML
pages where displayed in just the same way as normal
(unzipped) html pages. However, after upgrading my
system including Netscape (now version 4.76), this
function is not available anymore.
</P>
<P>
What do I need to do, in order to make Netscape read
compressed html-pages again?
</P>
<P>
THANKS!
Aron
</P>
<blockquote><font color="#000066">A comparison review of the most recent web browsers and how easy or
hard they make common tasks such as this would be a <EM>very</EM> cool article.
-- Heather</font></blockquote>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted/7"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">tighter mail security.... using SSL</FONT></H3>
Mon, 11 Jun 2001 02:01:37 +0800
<BR>Renato Tiongson III (<a href="mailto:linux-questions-only@ssc.com?cc=nats@mtech.com.ph">nats from mtech.com.ph</a>)
<P>
Hi,
</P>
<P>
I'm currently doodling around with rh 6.2 configured as a mail server with
sendmail as the mta. I'd like to know how to go about implementing SSL
for POP <TT>/</TT> IMAP &amp; SMTP? Also would like to know how to implement
authentication when relaying mail <TT>/</TT> SMTP.
</P>
<P>
Thanks in advance!
</P>
<P>
Nats
</P>
<!-- end 7 -->
<a name="mailbag"></a>
<P> <hr> <P>
<!-- =================================================================== -->
<center><H3><font color="maroon">GENERAL MAIL</font></H3></center>
<P> <HR> <P>
<!--====================================================================-->
<!-- BEGIN GENERAL MAIL -->
<UL>
<!-- index_text begins -->
<li><A HREF="#mailbag/1"
><strong>Tired Newbie</strong></a>
<li><A HREF="#mailbag/2"
><strong>thanks</strong></a>
<li><A HREF="#mailbag/4"
><strong>Yet Another Helpful Email</strong></a>
<li><A HREF="#mailbag/5"
><strong>ssh-agent article</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Tired Newbie</FONT></H3>
Wed, 20 Jun 2001 14:09:02 -0700
<BR>
Paul Bussiere &lt;<A HREF="mailto:webmaster@checksix.net"
>webmaster from checksix.net</A>&gt;
<P><STRONG><BLOCKQuote>
On the article in this month's Gazette
</BLOCKQuote></STRONG></P>
<P><STRONG>
<A HREF="../issue67/lg_mail67.html#mailbag/5"
>http://www.linuxgazette.com/issue67/lg_mail67.html#mailbag/5</A>
</STRONG></P>
<P><STRONG>
The link to The Answer Guys doesn't address anything from me, as alluded to
in the article. Had a few folks email me asking "Why didn't they answer
your questions?"
</STRONG></P>
<P><STRONG>
Just a heads up
</STRONG></P>
<P>
I'll let Heather respond re where that link was supposed to point to.
We did have a big debate about Unix PATH vs DOS PATH, but I'm unsure if
it got published. It would have been published under an unrelated topic,
I think about printing.
</P>
<blockquote><font color="#000066">No, he's quite correct, it got entirely
lost in the shuffle. A matter
which has been fixed, this time! I've made sure that cross-referenced
threads were the first to get handled. So check out TAG...
-- Heather</font></blockquote>
<P>
By the way, we did receive an offer for a WinDweeb column. Jeff Lim, a
self-titled WinDweeb, is preparing a regular column full of miscellaneous
Linux advice for those familiar with Windows. In particular, he wants to
provide straightforward "how-to" pieces for tasks he doesn't think are
covered adequately in the manpages and in the HOWTOs, or are so far buried
in them that you can't find the info you need. Look for it in next month's
issue. Thanks, Jeff! --Iron</P>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">thanks</FONT></H3>
Mon, 04 Jun 2001 12:34:11
<BR>darrell rolstone (<a href="mailto:globalance@hotmail.com">globalance from hotmail.com</a>)
<P>
Dear Dan, ( and stern Heather too!)
</P>
<BLOCKQUOTE><FONT COLOR="red">
Actually, "stern Heather" Stern is not stern. She has a dry sense of humor,
looks like a punk girl, and wears a big red hat (no pun intended) with a wide
brim. --Iron
</FONT></BLOCKQUOTE>
<blockquote><font color="#000066">The complete thread he is thanking us for can be found in TAG this month.
Because he's offering his service to the community I also am mentioning it
here. I offer no opinions in any direction <EM>about</EM> his service - you'll
have to consider that on your own.
</font></blockquote>
<blockquote><font color="#000066">The long letter he is referring to is in the TAG list archives at
<A HREF="http://www.ssc.com/mailing-lists/tag/200105/0020.html"
>http://www.ssc.com/mailing-lists/tag/200105/0020.html</A>
</font></blockquote>
<blockquote><font color="#000066">He hopes to set up a site at <A HREF="http://www.team-synergy.org"
>http://www.team-synergy.org</A> but will need
technical help to do that.
-- Heather</font></blockquote>
<P>
Thanks SO MUCH for answering! Now I know that my letter did infact
arrive! I REALLY appreciate it and all that you and the other volunteers do.
I hope that my "interesting questions" generate some "food for thought"
among linux programmers! It looks like IBM and their new associates will be
addressing many of the drawbacks that I pointed out ....by paying their
programmers to code using the linux kernal (along with the NSA)! I hope that
"far-reaching" programs like the two I have initiated will garner monetary
support somehow!
</P>
<P>
Please know that I put myself "at your service" to the whole of the
linux community, as a "synergy design consultant" ( which pretty much covers
EVERYTHING) and would be glad to volunteer to contribute my prospective on
any projects/problems!
</P>
<P>
Remember: "<em>the significant problems we face today cannot be solved by
the same level of thinking that created them</em>" Albert Einstein.
</P>
<P>
May the Source be with you, Darrell Ernest Rolstone aka "Rollee"...w/o's
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Yet Another Helpful Email</FONT></H3>
Tue, 05 Jun 2001 08:04:47 -0700
<BR>Benjamin D. Smith (<a href="mailto:gazette@ssc.com">amp from benjamindsmith.com</a>)
<!-- sig -->
<P>
Read your post at June's Linux Gazette - And, it might be a good thing
to document the long and sometimes frustrating journey from the Windows
to *nix camps.
</P>
<P>
I once heard a teacher put it the best I've yet heard it.
</P>
<P>
Imagine a graph.
</P>
<P>
Windows gets you started and going quickly (line rises sharply) but you
rapidly run into the limitations of the system and Operating System, so
very quickly your productivity levels off.
</P>
<P>
*nix, on the other hand, has a steep learning curve, so steep that at
first your productivity actually DIPS (line drops below the "0" line) at
first, until you start to "get it". Then, as your knowledge accumulates
(took me about a year of using Linux primarily before I really "got
it") the productivity climbs, and just keeps climbing with how much you
learn.
</P>
<P>
I've not seen that there is a discernable cap - the more I look, the
more cool stuff I find I can do!
</P>
<P>
-Ben
</P>
<blockquote><font color="#000066">Ben has also submitted a 2c Tip for us, which is in this month's column.
-- Heather</font></blockquote>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag/5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">ssh-agent article</FONT></H3>
Tue, 05 Jun 2001 15:19:02 -0500
<BR>Dustin Puryear (<a href="mailto:gazette@ssc.com">dpuryear from usa.net</a>)
<P>
Dustin Puryear wrote to Jose Nazario, one of our authors:
</P>
<P><STRONG><BLOCKQuote>
Jose, I read your article on Linux Gazette about the SSH key agent.
</BLOCKQuote></STRONG></P>
<P>
(<A HREF="../issue67/nazario2.html"
>http://www.linuxgazette.com/issue67/nazario2.html</A>) in the June issue.
</P>
<P><STRONG>
Very
nice. However, I noticed you neglected to mention a way to load the
agent when the user logs in rather than doing so manually. Following is
a simple addition to a user's .bashrc (or edit for your particular
shell) that will do the job:
</STRONG></P>
<code><font color="#000033"><br># load local keys
<br>env | grep SSH_AGENT_PID &gt; /dev/null
<br>if [ $? -eq 0 ]; then
<br> ssh-add -l | grep $USER@$HOSTNAME &gt; /dev/null
<br> if [ $? -ne 0 ]; then
<br> ssh-add
<br> fi
<br>else
<br> ssh-agent /bin/bash
<br> exit
<br>fi
</font></code>
<P><STRONG>
Feel free to pass this on to your readers. Regardless, good work.
</STRONG></P>
<P><STRONG>
Regards, Dustin
</STRONG></P>
<!-- end 5 -->
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<H5 align="center">This page edited and maintained by the Editors
of <I>Linux Gazette</I>
<a href="http://www.linuxgazette.com/copying.html"
>Copyright &copy;</a> 2001
<BR>Published in issue 68 of <I>Linux Gazette</I> July 2001</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<!-- *** END copyright *** -->
<!--startcut ======================================================= -->
<CENTER>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="lg_bytes68.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
<!-- *** END navbar *** -->
</CENTER>
</BODY></HTML>
<!--endcut ========================================================= -->