1179 lines
43 KiB
HTML
1179 lines
43 KiB
HTML
<!--startcut ==========================================================-->
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<html>
|
|
<head>
|
|
<title>More 2 Cent Tips & Tricks LG #57</title>
|
|
</head>
|
|
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
|
|
ALINK="#FF0000">
|
|
|
|
<CENTER>
|
|
<!-- *** BEGIN navbar *** -->
|
|
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_answer57.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><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="arndt.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>
|
|
<!--endcut ============================================================-->
|
|
<H4 ALIGN="center">"Linux Gazette...<I>making Linux just a little more fun!</I>"
|
|
</H4>
|
|
<P> <hr> <P>
|
|
|
|
<!-- QUICK TIPS SECTION ================================================== -->
|
|
<center>
|
|
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.jpg">
|
|
More 2¢ Tips!</A></H1> <BR>
|
|
Send Linux Tips and Tricks to <A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A></center>
|
|
|
|
<!-- BEGIN tips -->
|
|
|
|
<UL>
|
|
<!-- index_text begins -->
|
|
<li><A HREF="#2c/1"
|
|
><strong>2cent-tip: sendmail configuration</strong></a>
|
|
<li><A HREF="#2c/2"
|
|
><strong>2c tip followup</strong></a>
|
|
<li><A HREF="#2c/3"
|
|
><strong>vim tip</strong></a>
|
|
<li><A HREF="#2c/4"
|
|
><strong>256 is real</strong></a>
|
|
<li><A HREF="#2c/5"
|
|
><strong>Syslog for Linux</strong></a>
|
|
<li><A HREF="#2c/6"
|
|
><strong>Windows Rescues Linux?!</strong></a>
|
|
<li><A HREF="#2c/7"
|
|
><strong>Well known Port numbers</strong></a>
|
|
<li><A HREF="#2c/8"
|
|
><strong>Memory Holes ??</strong></a>
|
|
<li><A HREF="#2c/9"
|
|
><strong>Palm Desktop</strong></a>
|
|
<li><A HREF="#2c/10"
|
|
><strong>sendmail/fetchmail Caldera 2.4 problem</strong></a>
|
|
<li><A HREF="#2c/11"
|
|
><strong>network and broadcast addresses</strong></a>
|
|
<li><A HREF="#2c/12"
|
|
><strong>overclocking</strong></a>
|
|
<li><A HREF="#2c/13"
|
|
><strong>ftp to restart failed transfers</strong></a>
|
|
<li><A HREF="#2c/14"
|
|
><strong>modem trouble on rh 6.2</strong></a>
|
|
<li><A HREF="#2c/15"
|
|
><strong>True Modems</strong></a>
|
|
<li><A HREF="#2c/16"
|
|
><strong>re: HELP: Crontab not running nested executable</strong></a>
|
|
<li><A HREF="#portnum"
|
|
><strong>Port numbers</strong></a>
|
|
<li><A HREF="#rawrite"
|
|
><strong>Rawrite script</strong></a>
|
|
<li><A HREF="#255or256"
|
|
><strong>255 or 256 IPs?</strong></a>
|
|
<li><A HREF="#word"
|
|
><strong>Reading Word files</strong></a>
|
|
<li><A HREF="#wininst"
|
|
><strong>Windows Install over Linux</strong></a>
|
|
<li><A HREF="#ISPs"
|
|
><strong>Linux-friendly ISPs</strong></a>
|
|
<li><A HREF="#passwords"
|
|
><strong>Passwords and SSH</strong></a>
|
|
<li><A HREF="#keyboard"
|
|
><strong>Missing/duplicated keystrokes</strong></a>
|
|
<li><A HREF="#dualboot"
|
|
><strong>Regarding Dual-Boot Windows/Linux</strong></a>
|
|
<li><A HREF="#cb"
|
|
><strong>CB Radio Connection</strong></a>
|
|
<li><A HREF="#tree"
|
|
><strong>Tree script</strong></a>
|
|
<!-- index_text ends -->
|
|
</UL>
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">2cent-tip: sendmail configuration</FONT></H3>
|
|
Sat, 26 Aug 2000 13:00:28 +0200
|
|
<BR>From: Matthias Arndt
|
|
<<a href="mailto:matthiasarndt@gmx.net">matthiasarndt@gmx.net</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
Dear Editor,
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
I've got another 2cent tip for the Linux Gazette.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Many people have problems with the configuration of sendmail.
|
|
As far as I have learned about it yet, you can use the file genericstable in
|
|
the folder <TT>/etc/mail</TT> (or where your sendmail config files are)
|
|
to map local email adresses to email adresses on other servers.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE><BLOCKQUOTE><CODE>
|
|
#format of the file:
|
|
<BR>#<local email adress> <real email adress>
|
|
<BR>marndt@jerry.aknet.de matthiasarndt@gmx.net
|
|
</CODE></BLOCKQUOTE></BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
My file looks like the one above:
|
|
all email written under my local account (marndt) appears to come from my
|
|
Internet email.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
A nice feature in sendmail..... and it makes things easier to set.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
hope this one helps, Matthias
|
|
</BLOCKQUOTE>
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 1 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">2c tip followup</FONT></H3>
|
|
Fri, 11 Aug 2000 19:28:04 -0400 (EDT)
|
|
<BR>From: Matthew Willis
|
|
<<a href="mailto:matt@optimus.cee.cornell.edu"
|
|
>matt@optimus.cee.cornell.edu</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
Tip: 2up printing in netscape
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
In the last 2c tip, Sudhakar Chandra (<A HREF="mailto:thaths@netscape.com"
|
|
>thaths@netscape.com</A>) is indeed
|
|
correct about
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE><BLOCKQUOTE><CODE>
|
|
psnup -c -n 2 | lpr -pprinter
|
|
</CODE></BLOCKQUOTE></BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
working as well as
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
pstops <TT>-q</TT> <TT>-w8.5in</TT> <TT>-h11in</TT> <TT>-pletter</TT> "2:0L@0.7(8.in,<TT>-0.1in</TT>)+1L@0.7(8.in,4.95in)" | lpr
|
|
Both will 2-up output from netscape.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
The only difference is in size of the output. In the former, the
|
|
pages are 50% as large as the original, whereas in the latter the
|
|
pages are 70% as large. I find the larger print (70% scaling) more
|
|
readable than the 50% one, but your mileage may vary.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Thanks,
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Matt Willis
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 2 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">vim tip</FONT></H3>
|
|
Thu, 27 Jul 2000 11:04:59 PDT
|
|
<BR>From: Adam Monsen
|
|
<<a href="mailto:meonkeys@hotmail.com">meonkeys@hotmail.com</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
This is straight outta the vim manual, but is buried enough to possibly
|
|
warrant a 2 cent tip.
|
|
</BLOCKQUOTE>
|
|
<pre>
|
|
Dos files have <CR> <LF> at endlines,
|
|
Mac files have <CR> at endlines,
|
|
Unix files simply have <LF> at endlines.
|
|
</pre>
|
|
<BLOCKQUOTE>
|
|
So who cares? Vim automagically understands any file upon loading. But...
|
|
You're using UNIX. When you have to send a colleague a text file (and they
|
|
have a mac or Windows box), first issue the following command...
|
|
:set fileformat=x
|
|
where "x" can be "mac" or "dos".
|
|
then save the file.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
-Meonkeys
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 3 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">256 is real</FONT></H3>
|
|
Tue, 22 Aug 2000 08:16:35 -0400
|
|
<BR>From: David Meyer
|
|
<<a href="mailto:dlmeyer@pop.mindspring.com"
|
|
>dlmeyer@pop.mindspring.com</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
You published the following:
|
|
On Tue, Jul 18, 2000, James Strong wrote:
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE><BLOCKQuote>
|
|
In studying ip addressing I come across the reference of 255 and 256.
|
|
if all ones (11111111) = ?
|
|
if all 0s (00000000) = ?
|
|
</BLOCKQuote></BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
How does one come up with 256 sometime and 255 other times?
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
-confused
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
There are no "256"s in valid IP addresses.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
IP addresses are 32 bits, and are written in 4 octets of 8-bit numbers
|
|
expressed in decimal form. The biggest possible 8-bit number is 255,
|
|
which is 2^7 + 2^6
|
|
+ ... + 2^1 + 2^0.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
A good explanation of IP addresses is in the Linux Network
|
|
Administrator's Guide, available in your favorite Linux distribution or
|
|
from linuxdoc.org.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
<TT>--</TT> Don Marti
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
You have gone way overboard to create a convoluted explanation where a
|
|
simple one would do.
|
|
There ARE 256 possibilities for an eight bit number. Not all are 'valid'
|
|
for an IP address, but that is another question. The reason the highest
|
|
number is 255 is because the lowest is <TT>-0-</TT> (ZERO), not <TT>-1-</TT> (ONE). When
|
|
you start counting with zero, the amount of numbers counted is one more
|
|
than the number reached. SO, you could do the 2^7+2^6+... bit, or you
|
|
could reach the same valid answer with a simpler 2^8-1.
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 4 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/5"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Syslog for Linux</FONT></H3>
|
|
Tue, 1 Aug 2000 19:22:17 +0200
|
|
<BR>From: Anthony E. Greene
|
|
<<a href="mailto:agreene@pobox.com">agreene@pobox.com</a>>
|
|
|
|
<P><STRONG>
|
|
I am running <A HREF="http://www.redhat.com/">Red Hat</A> Linux 6.2 & am trying to get a syslog server running.
|
|
</STRONG></P>
|
|
<P><STRONG>
|
|
I have limited Linux knowledge & just want to get it working to log messages
|
|
from cisco devices. Do you know of the commands to get it working.
|
|
</STRONG></P>
|
|
<BLOCKQUOTE>
|
|
Edit your init script (<TT>/etc/rtc.d/init.d/syslog</TT>) so that syslodgd starts
|
|
with the option to allow remote logging. See syslogd man page for details.
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 5 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/6"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Windows Rescues Linux?!</FONT></H3>
|
|
Tue, 22 Aug 2000 19:07:16 -0700
|
|
<BR>From: Mike
|
|
<<a href="mailto:10ram@888.nu">10ram@888.nu</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
Dennis,
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Somehow, while flailing about in a kernel upgrade, I managed
|
|
to corrupt the boot.p? file. After 2 days of struggling and
|
|
8 hours of searching, I was finally able to correct the
|
|
odious "hangs at LI" problem only by booting from a Windows
|
|
95 diskette and using 'fdisk <TT>/mbr</TT>' and then booting from a
|
|
linux diskette and running 'lilo'.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
In the meantime I read through dozens of posts on the
|
|
subject and worked all kinds of strong ju-ju:
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE><BLOCKQuote>
|
|
<TT>-I</TT> used 'linear'
|
|
<TT>-I</TT> set the BIOS to 'AUTO' and then back to 'LBA',
|
|
<TT>-I</TT> put 'disk=/dev/hda <tab> bios=0x81' in my lilo.conf
|
|
<TT>-I</TT> ran linux 'fdisk' and rewrote the partition info
|
|
<TT>-on</TT> and on and on.
|
|
</BLOCKQuote></BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
I had seen the '<TT>/mbr</TT>' fix earlier, but discounted it because
|
|
the instructions didn't mention that it could be used even
|
|
if you're <EM>not</EM> dual-booting. I finally found the tiny bit
|
|
of info I needed at
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
<A HREF="http://www.wzz.org.pl/~lnag/en/FAQ.htm#LILO_stops"
|
|
>http://www.wzz.org.pl/~lnag/en/FAQ.htm#LILO_stops</A>
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Thanks anyway for all of your help and I hope you pass this
|
|
on.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Is there really no other way to fix a corrupt mbr?
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
eek. Don't tell Linus.
|
|
<IMG SRC="../gx/dennis/smily.gif" ALT=";)"
|
|
height="24" width="20" align="middle">
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
MjM
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
<p><em>The debian package "mbr" is an MBR only, which defaults to booting
|
|
your active partition, but press SHIFT and you can choose a
|
|
partition, or to boot from floppy. Sweet -- Heather</em></p>
|
|
|
|
|
|
<!-- end 6 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/7"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Well known Port numbers</FONT></H3>
|
|
Mon, 31 Jul 2000 22:37:45 -0400 (EDT)
|
|
<BR>From: Steven W. Orr
|
|
<<a href="mailto:steveo@world.std.com">steveo@world.std.com</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
All services are listed in the <TT>/etc/services</TT> file. There's a man page
|
|
for it and it's the datafile which provides the basis for the
|
|
getservbyname(3) and the getservport(3) calls.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Specifically, port 109 is pop2 and port 139 is netbios-ssn. The other
|
|
ports are not listed in my services file.
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 7 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/8"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Memory Holes ??</FONT></H3>
|
|
Wed, 16 Aug 2000 21:49:25 +0200
|
|
<BR>From: Kees van Veen (<A HREF="mailto:kvv@casema.net">kvv@casema.net</A>)
|
|
|
|
<BLOCKQUOTE>
|
|
Hello there,
|
|
I allready read in an earlier posting, that somebody also had problems
|
|
with memory holes. I have a compaq proliant 2500 with 256 MB and it only
|
|
reads the first 16 MB. If you know alittle about linux you proberbly
|
|
would say add a kernel parameter with the amount of RAM and the job is
|
|
done. But this doesn't work, the machine works fine for half an hour and
|
|
later when the memory use increases the machine trips over the hole and
|
|
crashes.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
I heard that there would be some kind of patch .. Does anybody know
|
|
something..??
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
<br>Thanx, greetinx,
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
<p><em>Someone proposed a kernel patch to allow Linux to deal with
|
|
bad memory because of damaged SIMMs. Check the Kernel
|
|
Traffic (<a href="http://kt.linuxcare.com/">kt.linuxcare.com</a>)
|
|
archives for that. A great place to look for patches is
|
|
<a href="http://linux-patches.rock-projects.com"
|
|
>linux-patches.rock-projects.com</a> but I didn't see it
|
|
there. -- Heather</em></p>
|
|
|
|
<!-- end 8 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/9"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Palm Desktop</FONT></H3>
|
|
Wed, 16 Aug 2000 18:37:53 -0700
|
|
<BR>From: Dennis Andrews
|
|
<<a href="mailto:oligarch_one@yahoo.com">oligarch_one@yahoo.com</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
Is there, or is anybody working on, a poting of Palm Desktop to Linux. I
|
|
will be switching to Linux on my new system then converting my old one
|
|
to Linux (both <A HREF="http://www.redhat.com/">Red Hat</A>), but I can't get
|
|
by without my Palm. What to do?
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
<p><em>There are lots of utilities to link to Palm Pilots, but if it's
|
|
Palm's Desktop you definitely want to use, check out jpilot,
|
|
and you should feel right at home. -- Heather</em></p>
|
|
|
|
<!-- end 9 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/10"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">sendmail/fetchmail Caldera 2.4 problem</FONT></H3>
|
|
Wed, 02 Aug 2000 08:25:17 -0400
|
|
<BR>From: Robert Findlay
|
|
<<a href="mailto:fcsoft@attcanada.ca">fcsoft@attcanada.ca</A>>
|
|
|
|
<BLOCKQUOTE>
|
|
My <A HREF="http://www.caldera.com/">Caldera</A> 2.4 installation is going to be used to test (all bash
|
|
scripts) a web application which transmits a confirmation email. This
|
|
Caldera 2.4 is a citizen on a Microsoft Exchange email network. For
|
|
sake of argument lets say the relevant info is:
|
|
</BLOCKQUOTE>
|
|
<pre><BLOCKQUOTE>
|
|
hostname: caldera24.mydomain.com
|
|
Microsoft mail server: 10.0.0.2
|
|
DNS server: 10.0.0.18
|
|
</BLOCKQuote></pre>
|
|
<BLOCKQUOTE>
|
|
At present I can send a test email to <A HREF="mailto:bfindlay@mydomain.com"
|
|
>bfindlay@mydomain.com</A> using the
|
|
text based mail program. When I view the
|
|
<tt>/var/log/mail</tt>
|
|
file I see that sendmail has correctly sent this mail on to the
|
|
Microsoft Exchange Server at 10.0.0.2. I then want to use fetchmail
|
|
to bring the mail back to my test box (I want to ultimately script the
|
|
whole test so I need to stick with text based programs).
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
However fetchmail and the log both report the following error:
|
|
</BLOCKQUOTE>
|
|
<pre><BLOCKQuote>
|
|
SMTP error: 451 <A HREF="mailto:bfindlay@mydomain.com"
|
|
>bfindlay@mydomain.com</A> Sender domain must resolve
|
|
</BLOCKQuote></pre>
|
|
<BLOCKQUOTE>
|
|
Any ideas are welcome. Thanks.
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
<em><p>This is an antispam feature. If a machine's number does not
|
|
resolve in what is called "reverse DNS" and thus map to a name, it may
|
|
not be a real host on the internet at all, so Exchange is ignoring the
|
|
mail. Lots of companies have hosts that they don't want the whole
|
|
world to know about, though they might want their inside servers to
|
|
know them this way - for this, use an inside DNS server that contains
|
|
more information for your zone than the one outsiders are allowed to
|
|
see. It's often called "split DNS" because the early implementations
|
|
of it involved hacking on the DNS software a bit.<p>
|
|
|
|
<p>Or, much easier, you could send your test mail from a host which
|
|
really reverse resolves correctly. -- Heather</p></em>
|
|
|
|
|
|
<!-- end 10 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/11"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">network and broadcast addresses</FONT></H3>
|
|
Thu, 24 Aug 2000 15:03:56 -0400
|
|
<BR>From: tarun pahuja
|
|
<<a href="mailto:tpahuja@guesswho.com">tpahuja@guesswho.com</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
If someone gives me an ipaddress and a subnet mask, what would be the
|
|
easiest way to calculate the network and the broadast address for that
|
|
subnet.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
thanks
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
<em><p>First apply the mask. The idea is that the mask is a binary number
|
|
that results from having 1's all the way down to a certain point.
|
|
If it's a normal class A, B, or C, it's easy - everywhere that the
|
|
mask says 255, use the number from the IP address. Where it says
|
|
0, no bits are allowed to leak through, so use 0.
|
|
</p><p>
|
|
The result is your network value. Your gateway is often the
|
|
next address (1 greater than the network number). However you
|
|
should check - some places swap broadcast and gateway (the
|
|
broadcast is usually the highest legal address in the range).
|
|
-- Heather</p></em>
|
|
|
|
|
|
<!-- end 11 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/12"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">overclocking</FONT></H3>
|
|
Fri, 11 Aug 2000 23:43:22 +1000
|
|
<BR>From: Greg Hand
|
|
<<a href="mailto:greghand@tpg.com.au">greghand@tpg.com.au</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
Hi!
|
|
These sites will give you more than you need.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
www.arstechnica.com
|
|
bxboards.com
|
|
www.overclockers.com
|
|
www.overclockers.com.au
|
|
www.tomshardware.com
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Regards
|
|
<br>greg
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
<p><em>This concludes our recent Danish translation thread. Thanks
|
|
everyone! -- Heather</em></p>
|
|
|
|
|
|
<!-- end 12 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/13"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">ftp to restart failed transfers</FONT></H3>
|
|
Mon, 31 Jul 2000 22:26:52 -0400 (EDT)
|
|
<BR>From: Steven W. Orr
|
|
<<a href="mailto:steveo@world.std.com">steveo@world.std.com</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
Get hold of lftp. (I happen to be running lftp-2.2.4-2mdk) It's a
|
|
great improvement over regular ftp. But note that the regular ftp
|
|
client would also solve your problem. The reget command will fetch a
|
|
file from where a current version was left off. As far as what the
|
|
RFC provides, the only thing that I am aware of that the regular ftp
|
|
client does not provide is the ability to transfer a file from one
|
|
remote machine to another remote machine.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
But once you use lftp you'll never go back. It uses the readline
|
|
library, it does filename completion, it will background transfers,
|
|
plus a lot more.
|
|
</BLOCKQUOTE>
|
|
|
|
<em><p>
|
|
I use ncftp. It automatically tries to recover the partial download
|
|
if you issue the "get" command again. Start ncftp and type "help get"
|
|
to see the options.
|
|
-- Mike</p></em>
|
|
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 13 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/14"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Common Modem Problem</FONT></H3>
|
|
Tue, 8 Aug 2000 15:22:17 -0500
|
|
<BR>From: "Jonathan Hutchins" <hutchins@opus1.com>
|
|
|
|
<p><em>The point here, is a solution for problems that look like it
|
|
may be a winmodem, but it's not. -- Heather</em></p>
|
|
|
|
<BLOCKQUOTE>
|
|
One common problem with Modems when migrating to Linux is IRQ conflicts.
|
|
Many ISA Network Cards default to IRQ3, commonly used by the modem. Under
|
|
DOS/Windows, this shows up as a non-working Network card, or may be overcome
|
|
by a plug-and-play configuration utility for the network card.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Under Linux, the Network card comes up first, and it's the modem that won't
|
|
work. This can be very frustrating for a new user, since "everything works
|
|
fine under Windows", and nothing indicates what the problem is with the
|
|
modem (usually Linux utilities will just report that it's "busy").
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Make sure that the Modem and NIC are hard-configured or at least have their
|
|
ROM permanently set to different IRQ's, and the light will begin to dawn.
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 14 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/15"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">True Modems</FONT></H3>
|
|
Sun, 06 Aug 2000 22:05:00 GMT
|
|
<BR>From: carl smith
|
|
<<a href="mailto:kershawsmith@hotmail.com">kershawsmith@hotmail.com</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
Just read a reply about a true modem. I've been searching for one ever since
|
|
a friend mentioned it to me. He has an ISA True modem. And wouldn't you know
|
|
it mine is not. It's a PCI and so far no luck finding a PCI True modem. Any
|
|
ideas on where I might score one?
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Hoping for the right answer,
|
|
<br>KershawSmith
|
|
</BLOCKQUOTE>
|
|
|
|
<p>There's a HOWTO on Winmodems!!!
|
|
<A HREF="http://www.ssc.com/mirrors/LDP/HOWTO/Winmodems-and-Linux-HOWTO.html"
|
|
>http://www.ssc.com/mirrors/LDP/HOWTO/Winmodems-and-Linux-HOWTO.html</A>
|
|
--Mike</p>
|
|
<p>All the thing says is, "buggy proprietary drivers exist for _two_ modems.
|
|
Any others, you're SOL." -- Ben</p>
|
|
<em><p>
|
|
That's less than exciting news; there's better and _far_ more informative info at <A HREF="http://www.linmodems.org"
|
|
>http://www.linmodems.org</A> and <A HREF="http://www.o2.net/~gromitkc/winmodem.html"
|
|
>http://www.o2.net/~gromitkc/winmodem.html</A> <TT>-</TT> and they provide links to quite a bit of very creative software that lets you get a number of other uses out of winmodems (e.g., DTMF enc/decoder).
|
|
--Ben
|
|
</p></em>
|
|
<em><p>Okay, so maybe it should have been an Answer Gang thread, but it
|
|
is rather short. The Gromitkz site has an excellent set of guides
|
|
about buying real modems in chain stores. It appears there may
|
|
be support for 3 of these incomplete modems now, but it remains
|
|
to be seen if any of them will port their efforts to the 2.4
|
|
kernel.
|
|
</p><p>
|
|
The state of the art in forcing Lucent's modems to work is
|
|
<ul><li>fetch a raw-patched version of their module which
|
|
doesn't steal "register_serial" and "unregister_serial"
|
|
(you can use theirs straight, if you don't use other
|
|
serial gadgets at all)
|
|
<li>use the 2.2.14 version of the ppp support module even if you're
|
|
in a later kernel. That will require also forcing the
|
|
underlying slhc.o to load to make a complete ppp stack.
|
|
</ul>
|
|
</p><p>In short, yuck. -- Heather</p></em>
|
|
|
|
<!-- sig -->
|
|
|
|
<!-- end 15 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
<P> <A NAME="2c/16"><HR WIDTH="75%" ALIGN="center"></A> <P>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">re: HELP: Crontab not running nested executable</FONT></H3>
|
|
Fri, 11 Aug 2000 09:44:59 -0500
|
|
<BR>From: John McKown
|
|
<<a href="mailto:JMckown@healthaxis.com">JMckown@healthaxis.com</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
One question. In "file1", do you specify the entire pathname to "file2" in
|
|
order to run it? The reason that I ask is the quite often "cron" does not
|
|
have the PATH that you expect. This generally results in a "file not found"
|
|
type error.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
Hope this helps some,
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
John McKown
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
<!-- end 16 -->
|
|
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
|
|
|
|
<P> <HR WIDTH="40%" ALIGN="center"> <P>
|
|
<p><em>And on the same topic, but a different tip... </em></p>
|
|
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Crontab not running nested executable</FONT></H3>
|
|
Wed, 2 Aug 2000 12:30:52 -0400
|
|
<BR>From: Pierre Abbat
|
|
<<a hhref="mailto:phma@oltronics.net">phma@oltronics.net</a>>
|
|
|
|
<BLOCKQUOTE>
|
|
The most likely reason is that the path is different or something else in the
|
|
environment. Stick an env command in File1. The output should be sent to you by
|
|
email from the cron job. Compare it to the env when you run File1 yourself. I
|
|
usually write full paths in cron scripts for this reason.
|
|
</BLOCKQUOTE>
|
|
<BLOCKQUOTE>
|
|
phma
|
|
</BLOCKQUOTE>
|
|
|
|
<!-- sig -->
|
|
|
|
|
|
<!-- end 17 -->
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="portnum"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Port numbers
|
|
</FONT> </H3>
|
|
Wed, 2 Aug 2000 22:34:46 -0400 (EDT)
|
|
<BR>From: Kurt <<A HREF="mailto:khockenb@linux.cc.stevens-tech.edu">khockenb@linux.cc.stevens-tech.edu</A>>
|
|
|
|
<P> The proper place to find port numbers is the Internet Assigned Number
|
|
Authority, at <A HREF="http://www.iana.org/">http://www.iana.org/</A>
|
|
|
|
<P> The page you are looking for is
|
|
<A HREF="http://www.isi.edu/in-notes/iana/assignments/port-numbers">http://www.isi.edu/in-notes/iana/assignments/port-numbers</A>
|
|
|
|
<H4>Chris Gianakopoulos <<A HREF="mailto:pilolla@gateway.net">pilolla@gateway.net</A>> adds:</H4>
|
|
|
|
<P> There exists a good list of well known port numbers for TCP and UDP. It is
|
|
called (of course!) The Assigned Numbers RFC. Here's the easiest way to find
|
|
it. Go to a site such as <A HREF="http://www.excite.com">www.excite.com</A>, and search for:
|
|
RFC1340
|
|
|
|
<P> You will get lots of hits that reference RFC1340.html. This RFC (an
|
|
acronym for Request For Comments -- I know, I know, you probably already knew
|
|
that!) has your information and a ton of other assigned numbers such as
|
|
protocol numbers, magic numbers, ........
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="rawrite"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Rawrite script
|
|
</FONT> </H3>
|
|
Thu, 3 Aug 2000 13:52:38 -0400
|
|
<BR>From: <<A HREF="mailto:APeda@INTERPUBLIC.COM">APeda@INTERPUBLIC.COM</A>>
|
|
|
|
<P> I've been coming across those boot (raw) images quite a bit lately,
|
|
and as I move toward an all GNU/Linux solution, I find that saving
|
|
images of certain DOS formatted diskettes is quite useful. So, in
|
|
part as an exercise in using getopt (1) , I decided to write a script
|
|
wrapper around dd.
|
|
|
|
<P> Here it is, for what it's worth:
|
|
<A HREF="misc/tips/rawrite.sh.txt">rawrite.sh</A>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="255or256"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">255 or 256 IPs?
|
|
</FONT> </H3>
|
|
Thu, 3 Aug 2000 12:05:20 -0700 (PDT)
|
|
<BR>From: James Blackwell <<A HREF="mailto:jblack@insyncla.com">jblack@insyncla.com</A>>
|
|
|
|
<P> While you are of course correct regarding the fact that an octet can not
|
|
exceed 255 for obvious reasons, what I think he was referring to is that
|
|
some texts (particularly newer ones) refer to 256 possible values.
|
|
|
|
<P> While you are correct in stating 255 is the maximum, I think you forgot
|
|
that the minimum isn't 1, it's 0. This leads to 256 possible numbers per
|
|
byte.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="word"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Reading Word files
|
|
</FONT> </H3>
|
|
Fri, 4 Aug 2000 17:18:10 -0400 (EDT)
|
|
<BR>From: Matthew Willis <<A HREF="mailto:matt@optimus.cee.cornell.edu">matt@optimus.cee.cornell.edu</A>>
|
|
|
|
<P> Tip: How to view microsoft word files
|
|
|
|
<P> You can use several programs to translate microsoft word "doc" files
|
|
to some other format. There is word2x (which works for word 6) or
|
|
mswordview (which work for MS Word Version 8, i.e. Office97). Or, you
|
|
can download the free version of WordPerfect which can read many Word
|
|
files. Another option is to download abiword, which can read
|
|
microsoft word files. I have automatically configured pine to call
|
|
abiword on ms word files by editing /home/matt/.mailcap and having
|
|
this line in it:
|
|
|
|
<PRE>
|
|
application/msword;abiword %s
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="wininst"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Windows Install over Linux
|
|
</FONT> </H3>
|
|
Fri, 4 Aug 2000 16:53:39 -0700 (PDT)
|
|
<BR>From: adh math <<A HREF="mailto:adh_math@yahoo.com">adh_math@yahoo.com</A>>
|
|
|
|
<P> Dear Mr. Train,
|
|
|
|
<P> This advice may be quite late (your original message
|
|
is nearly a month old), but I hope you haven't had any
|
|
problems...
|
|
|
|
<P> Typically, Windows overwrites the master boot record
|
|
when it is installed, and I've had worse things happen
|
|
(like the Windows installer corrupting the partition
|
|
table). The standard advice is to install Windows
|
|
before installing other operating systems. It sounds
|
|
like this isn't an option for you, but please be aware
|
|
that by installing Windows on top of Linux you're
|
|
likely to have frightening (or infuriating, if you
|
|
prefer) problems which may or may not require
|
|
re-installing Linux and restoring all your user data.
|
|
|
|
<P> Best of luck, in any case!
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="ISPs"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Linux-friendly ISPs
|
|
</FONT> </H3>
|
|
Fri, 4 Aug 2000 17:02:27 -0700 (PDT)
|
|
<BR>From: adh math <<A HREF="mailto:adh_math@yahoo.com">adh_math@yahoo.com</A>>
|
|
|
|
<P> You posted to Linux Gazette about looking for ISPs
|
|
that allow Linux connections. This isn't much (in
|
|
fact, probably little more than moral support), but in
|
|
the Pacific northwest, <A HREF="http://FreeI.net">FreeI.net</A> is Linux
|
|
friendly, as
|
|
is <A HREF="http://nocharge.com">nocharge.com</A>. I strongly prefer the
|
|
former, because
|
|
1. They run FreeBSD (instead of Windows NT) and
|
|
2. Their modems are better configured (e.g., they
|
|
answer without ringing four times, and are not always
|
|
busy).
|
|
|
|
<P> I'm sure there are counterparts in other parts of the
|
|
country...
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="passwords"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Passwords and SSH
|
|
</FONT> </H3>
|
|
Fri, 4 Aug 2000 17:36:57 -0700 (PDT)
|
|
<BR>From: adh math <<A HREF="mailto:adh_math@yahoo.com">adh_math@yahoo.com</A>>
|
|
|
|
<P> Dear Mr. Benfell,
|
|
|
|
<P> Can't help you with POP over SSH, but can perhaps
|
|
explain why you keep getting prompted for passwords
|
|
(and why you should be *happy* about it:).
|
|
|
|
<P> If you're not prompted to enter a password to
|
|
authenticate a connection, it's because your password
|
|
is stored on a machine somewhere, often as plain text.
|
|
In other words, storing your password is like writing
|
|
your PIN on your ATM card. If you care about privacy
|
|
enough to encrypt network transmissions with SSH (and
|
|
you should, with good reason), you probably also care
|
|
enough not to leave your password written on a scrap
|
|
of paper next to your computer, or sitting unencrypted
|
|
on a hard drive (possibly on a publically-accessible
|
|
server, or on your laptop, where a thief could get
|
|
access to it by booting with a rescue disk, thereby
|
|
granting themselves root).
|
|
|
|
<P> Hope that makes the password annoyance more tolerable,
|
|
and sorry I can't help you with POP/SSH.
|
|
|
|
|
|
<BR>David Benfell <<A HREF="mailto:benfell@greybeard95a.com">benfell@greybeard95a.com</A>> replies:
|
|
|
|
This problem was solved a long time ago. And I'm well aware of the
|
|
security issues.
|
|
|
|
<P> What you can do is run ssh-keygen on each machine that you want to be
|
|
able to communicate in this way. This produces two files: identity and
|
|
identity.pub. identity.pub from each machine must be copied into the
|
|
authorized_keys file of each of the others.
|
|
|
|
<P> The authorized_keys file can hold multiple keys. Each key takes one
|
|
line. So you copy the identity.pub file from each machine with
|
|
commands something like:
|
|
|
|
<PRE>
|
|
ssh-keygen
|
|
scp .ssh/identity.pub user@remote-machine-1:.ssh/1.identity.pub
|
|
cat .ssh/1.identity.pub >> .ssh/authorized_keys
|
|
</PRE>
|
|
|
|
<P> Remember that for this to work, each machine must have a copy of the
|
|
other machines' keys. So, you then log in to the remote machine and do
|
|
something similar:
|
|
|
|
<PRE>
|
|
ssh user@remote-machine-1
|
|
(enter the password on the remote machine)
|
|
ssh-keygen
|
|
scp .ssh/identity.pub user@local-machine:.ssh/1.identity.pub
|
|
cat .ssh/1.identity.pub >> .ssh/authorized_keys
|
|
</PRE>
|
|
|
|
<P> Why bother?
|
|
|
|
<P> So you won't have to type the password every five minutes for every
|
|
POP account you're accessing this way. I have four e-mail accounts
|
|
and collect several hundred e-mails per day. So I prefer to leave
|
|
fetchmail more or less continuously running.
|
|
|
|
<P> I used to do this with fetchmail's daemon mode. But for pop via ssh,
|
|
this won't work.
|
|
|
|
<P> So I need to change my .fetchmailrc so it looks something like this
|
|
(for only one e-mail account):
|
|
|
|
<PRE>
|
|
defaults
|
|
protocol POP3
|
|
is localuser here
|
|
fetchall
|
|
forcecr
|
|
poll remote.server.org port 11110 via localhost user username pass ********
|
|
preconnect "ssh -C -f username@remote.server.org -L 11110:remote.server.org:110 sleep 5"
|
|
</PRE>
|
|
|
|
<P> It needs the password in the .fetchmailrc file but if you have a
|
|
reasonably secure system, this isn't a tremendous worry. .fetchmailrc
|
|
cannot be world-readable (fetchmail will reject it if it is). I'm not
|
|
that worried about people gaining access to my system as long as they
|
|
can't sniff the password in plain text off the internet (which they
|
|
can do with normal POP usage, and in my case, it was getting
|
|
transmitted every five minutes, so the bad guy wouldn't even have to
|
|
have been terribly patient).
|
|
|
|
<P> The password still has to be fed to the pop daemon, but this way, it
|
|
isn't crossing the Internet in clear text for feeding.
|
|
|
|
<P> Next, create a script like:
|
|
|
|
<PRE>
|
|
#!/bin/sh
|
|
ssh-add
|
|
while true; do fetchmail; sleep 5m; done
|
|
</PRE>
|
|
|
|
<P> I call mine "getmail".
|
|
|
|
<P> Then I can do:
|
|
|
|
<P> ssh-agent getmail
|
|
|
|
<P> It asks me for the passphrase once, then uses the keys to authenticate
|
|
my access to the remote systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="keyboard"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Missing/duplicated keystrokes
|
|
</FONT> </H3>
|
|
Sat, 5 Aug 2000 13:46:55 +0200
|
|
<BR>From: Tom <<A HREF="mailto:tom.mattmann@gmx.net">tom.mattmann@gmx.net</A>>
|
|
|
|
<BLOCKQUOTE>
|
|
<P> after i work with my computer for about 20 minutes or so,
|
|
i start missing keystrokes and sometimes keystrokes are duplicated
|
|
|
|
</BLOCKQUOTE>
|
|
<P> Seems that your Keyboard-Controller is overclocked. If you have an AWARD
|
|
Bios, enter it pressing DEL when the computer is starting. Select:
|
|
|
|
<PRE>
|
|
-> Chipset Features Setup
|
|
-> KBD Clock Src Speed
|
|
-> 8 Mhz
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="dualboot"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Regarding Dual-Boot Windows/Linux
|
|
</FONT> </H3>
|
|
Sun, 6 Aug 2000 21:45:56 -0400
|
|
<BR>From: Robert Day <<A HREF="mailto:zarin@support.drlogick.com">zarin@support.drlogick.com</A>>
|
|
|
|
<P> Well, your tips are helpful I have noticed, but I do know one thing about
|
|
RedHat (In particulay, it's my chosen Distro)
|
|
|
|
<P> Use FDISK (Windows version is fine) to create a partition LESS than the full
|
|
drive (Or two hard drives) - leave whatever you need for Linux EMPTY...
|
|
(Partition Magic to shrink the partition is fine as well) and install
|
|
Win9x/NT/2k
|
|
|
|
<P> Then, boot up with yer RedHat CD/Floppy, and install into the empty area...
|
|
The LILo config will see the Windows install, and add it to LILO for you..
|
|
(Install LILO into the MBR - overwriting the DOS MBR) and voila, Dual Boot -
|
|
It's simply simple..
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="cb"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">CB Radio Connection
|
|
</FONT> </H3>
|
|
Tue, 8 Aug 2000 15:07:50 -0500
|
|
<BR>From: Jonathan Hutchins <<A HREF="mailto:hutchins@opus1.com">hutchins@opus1.com</A>>
|
|
|
|
<P> You might be able to get a good idea of how to do this by studying the
|
|
"Amateur Radio" guides for Linux.
|
|
|
|
<P> In any case, I don't think it can be done with one CB radio, but it could be
|
|
done with two (at each end).
|
|
|
|
<P> Please note that doing this may be ILLEGAL. It also violates the FCC rule
|
|
that requires you to include your license number in each transmission.
|
|
|
|
<P> One problem with this is that while telephony and modems are "full duplex",
|
|
which means that both ends can both speak and listen at the same time, CB's
|
|
are "half duplex", which means when one is "talking", the other must be
|
|
"listening".
|
|
|
|
<P> First, you have to separate the "send" and "receive" or "mic" and "earpiece"
|
|
channels. In a telephone, this is accomplished by having both mic and
|
|
speaker "live", separated by a biasing transformer so that "your" mic is
|
|
"louder" on the output to the phone line, and "their" mic is louder on
|
|
"your" earphone. For CB purposes this would be easiest to accomplish with a
|
|
modem that was set up for an acoustic adapter - one that you place the
|
|
telephone receiver in so that it doesn't actually plug in to the phone but
|
|
produces the equivalent tones through a speaker held next to the headset mic
|
|
and vice versa.
|
|
|
|
<P> The send output (or mic output for the coupler) goes to the mic in on one
|
|
CB, set to say Channel 10, with the Transmit switch strapped "On". At the
|
|
other end, a CB would be set to listen to Ch. 10, with the output of the
|
|
speaker or headphone jack going to the earpice or receive circuit. Repeat
|
|
the process in the other direction on channel 20.
|
|
|
|
<P> You now have monopolized two CB channels for miles around with earsplitting
|
|
noise which will bleed across adjacent channels (hence the large interval
|
|
between send and receive), but you may have reached something close enough
|
|
to a telephone connection that doing ATH1 on one end and ATA on the other
|
|
may get you a connection.
|
|
|
|
<P> If you had a couple of modems capable of doing a synchronous connection, it
|
|
wouldn't be too hard to wire something up for single-channel use, but it
|
|
would involve doing some interesting coupling between the sync signal or
|
|
DSR/DTR pair and the "Send" switch.
|
|
|
|
<P> On the other hand, there are lots of possible problems here. How do you get
|
|
that "send" output isolated if you don't have an acoustic coupler? Can you
|
|
be sure that the modems will sync? What do you say to the guy from the FCC
|
|
who says he's traced the signal that's jamming everybody's CB's to your
|
|
rooftop? And it's very likely you can't do more than 2,400 baud because of
|
|
the limited quality of the connection.
|
|
|
|
<P> You will find that unless you're a real handy electronics hacker who knows
|
|
the guts of a telephone pretty well, this will be difficult enough that
|
|
you'll want to buy the pieces ready made, which means buying the Amateur
|
|
Radio gear if you can; which still means adapting it, and which means
|
|
spending real money. Unless your time is pretty worthless, you and your
|
|
boss would probably be better off purchasing a wireless networking solution
|
|
from an existing vendor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P> <HR WIDTH="75%" ALIGN="center"> <P>
|
|
<!--================================================================-->
|
|
<a name="tree"></a>
|
|
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
|
|
<FONT COLOR="navy">Tree script
|
|
</FONT> </H3>
|
|
Wed, 9 Aug 2000 12:49:30 +0200
|
|
<BR>From: Matthias Arndt <<A HREF="mailto:matthiasarndt@gmx.net">matthiasarndt@gmx.net</A>>
|
|
|
|
|
|
<P>
|
|
This is a new version of the bash based tree utility which was published in the
|
|
Linux Gazette about 2 years ago. I've added the feature to display the files
|
|
inside the directories. This tool displays the whole directory tree below the
|
|
PWD. You may supply an alternate starting directory on the command line.
|
|
This is a bash script so it is not very fast.
|
|
But obviously, it does its job.
|
|
|
|
<P> <A HREF="misc/tips/tree.sh.txt">tree</A>
|
|
|
|
<P>
|
|
To use the script, just cut and paste the code to your favourite editor. Call
|
|
it tree and make the script executable using <STRONG>chmod u+x</STRONG>. I
|
|
suggest copying it to <STRONG>/usr/local/bin</STRONG> as root and do a
|
|
<STRONG>chmod +x</STRONG> on it to make it available to all users on your
|
|
system. The output goes straight to the <STRONG>stdout</STRONG>. This means
|
|
you can use I/O redirection to capture the resulting tree to a file.
|
|
|
|
<P> As on all of my releases of software for Linux, the <STRONG>GNU General
|
|
Public Licence (GPL)</STRONG> applies to this utility.
|
|
|
|
<BLOCKQUOTE><EM>
|
|
[Matthias also wrote an article in this issue about
|
|
<A HREF="arndt.html">window managers</A>. -Mike]
|
|
</EM></BLOCKQUOTE>
|
|
|
|
|
|
|
|
<!-- END tips -->
|
|
|
|
<!-- *** BEGIN copyright *** -->
|
|
<P> <hr> <P>
|
|
<H5 ALIGN=center>
|
|
This page written and maintained by the Editors of the <I>Linux Gazette</I>.
|
|
Copyright © 2000, <A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A><BR>
|
|
Published in Issue 57 of <i>Linux Gazette</i>, September 2000</H5>
|
|
<!-- *** END copyright *** -->
|
|
|
|
<!-- startcut ============================================================-->
|
|
|
|
<CENTER>
|
|
<!-- *** BEGIN navbar *** -->
|
|
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_answer57.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><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="arndt.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 ============================================================-->
|