old-www/LDP/LG/issue65/lg_tips65.html

942 lines
34 KiB
HTML

<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.3E.s">
<TITLE>More 2 Cent Tips & Tricks LG #65</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="lg_answer65.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>
</p>
<!-- QUICK TIPS SECTION ================================================== -->
<!-- endcut ======================================================= -->
<center>
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.jpg">
More 2&cent; Tips!</A></H1> <BR>
<!-- BEGIN tips -->
Send Linux Tips and Tricks to <A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A></center>
<UL>
<!-- index_text begins -->
<li><A HREF="#tips/1"
><strong>Re: Graphics Programming for Printing / Faxing (Issue 60)</strong></a>
<li><A HREF="#tips/2"
><strong>Alliance Pro-Motion driver</strong></a>
<li><A HREF="#tips/3"
><strong>How to avoid launching Midnight Commander by accident</strong></a>
<li><A HREF="#tips/4"
><strong>Gazette, I.55, Answer: Missing Root Password</strong></a>
<li><A HREF="#tips/5"
><strong>SNMP Tool for networking (re: March tips)</strong></a>
<li><A HREF="#tips/6"
><strong>distro version upgrade? (slackware)</strong></a>
<li><A HREF="#tips/7"
><strong>2-cent Tip: Cleaning up after Netscape</strong></a>
<li><A HREF="#tips/8"
><strong>Regarding backups [issue64 tag/28.html]</strong></a>
<li><A HREF="#tips/9"
><strong>Modules cannot load with kernel recompile</strong></a>
<li><A HREF="#tips/10"
><strong>RE: Linux PPP route question</strong></a>
<li><A HREF="#tips/11"
><strong>"Interrupt for Linux" question from S. Auejai</strong></a>
<li><A HREF="#tips/12"
><strong>2ct tip - Removing temp files</strong></a>
<li><A HREF="#tips/14"
><strong>Linux RedHat question</strong></a>
<li><A HREF="#tips/16"
><strong>Question on stty</strong></a>
<li><A HREF="#tips/18"
><strong>inode related question</strong></a>
<li><A HREF="#tips/20"
></a>HELLO --or--
<br><A HREF="#tips/20"
><strong>Protecting web pages</strong></a>
<li><A HREF="#tips/21"
><strong>SSH article</strong></a>
<li><A HREF="#tips/23"
><strong>Linux commands</strong></a>
<li><A HREF="#tips/24"
><strong>How write a selfextracting sh script ?</strong></a>
<li><A HREF="#tips/27"
><strong>Searching for a text revisioning tool</strong></a>
<li><A HREF="#tips/29"
><strong>2.4.2 and loop devices</strong></a>
<li><A HREF="#tips/30"
><strong>Re your Fortran answer (tag 15, iss 64)</strong></a>
<li><A HREF="#tips/31"
><strong>Agenda Computing Challenges Palm</strong></a>
<li><A HREF="#tips/32"
><strong>Mailbag #62; Memory mystery</strong></a>
<li><A HREF="#tips/34"
><strong>mcad</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Re: Graphics Programming for Printing / Faxing (Issue 60)</FONT></H3>
Tue, 27 Feb 2001 16:32:59 -0800
<BR>Anthony Greene <a href="mailto:linux-questions-only@ssc.com">(The Answer Gang)</a>
<p>Re: Graphics Programming for Printing <TT>/</TT> Faxing
(<a href="../issue60/lg_answer60.html#tag/11">Issue 60</a>)</p>
<P>
The quick and easy way for a Perl programmer to do convert data to faxable
invoices/reports is to output the data as HTML, convert it to Postscript
using html2ps &lt;<A HREF="http://www.tdb.uu.se/~jan/html2ps.html"
>http://www.tdb.uu.se/~jan/html2ps.html</A>&gt;, then fax the
result using <tt>efax</tt> or <tt>mgetty+sendfax</tt>.
</P>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Alliance Pro-Motion driver</FONT></H3>
Sun, 25 May 1997 23:23:08 -0400
<BR>Ralph E Bugg<a href="mailto:linux-questions-only@ssc.com"> (buggr from sssnet.com )</a>
<P>
There was a letter to you from an unidentified person looking for a
driver for an Alliance Pro-Motion video card.
</P>
<strong>
<P>
"....Anyways, I would just run Linux but my problem is that Xwindows
doesn't have advanced support for my video card, so the best I can get
is
640x480x16colors and I just can't deal with that. Maybe I'm spoiled. The
guy I wrote on the Xwin development team told me that they were working
on better support for my card, though. (Aliance Pro-Motion). ...."
</P>
</strong>
<P>
If he goes to <A HREF="http://www.alsc.com"
>http://www.alsc.com</A> and follows the path to tech support,
he will find a SVGA driver (no source code though) for X-windows. I am
using an NEC Ready 9618 system which uses one of the Alliance chips on
the mother board. It took a LOT of fiddling with the configuration file
but it will work at higher resolutions @ 256 colors.
</P>
<P>
Hope you can pass this on to him.
</P>
<P>
Thanks, Ralph Bugg.
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">How to avoid launching Midnight Commander by accident</FONT></H3>
Mon, 26 Feb 2001 10:31:51 -0500
<BR>Allan Peda<a href="mailto:linux-questions-only@ssc.com"> (apeda from linkshare.com)</a>
<!-- sig -->
<P>
I've typed "mc foo bar" one time too many when I really meant to type
"mv foo bar". Removing Midnight commander
is not an option, because that breaks some file exploror type GUI
utilities, so I cooked up a bash script to double confirn that
I wanted to type what I (probably mis-)typed :
</P>
<p align="center">See attached script
<a href="misc/tips/mc.bash.txt">mc.bash.txt</a></p>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Gazette, I.55, Answer: Missing Root Password</FONT></H3>
Wed, 28 Feb 2001 17:23:18 +0100 (CET)
<BR>Johannes Kaiser<a href="mailto:linux-questions-only@ssc.com"> (uehj from rz.uni-karlsruhe.de)</a>
<!-- sig -->
<P>
It should be easy to get in if you use LILO. At the boot prompt, type in
the name of your boot image (you can find that out by hitting the
"tab" key twice), followed by the word single. For a normal redhat
installation, typing "linux single" should do. You also can append
"init=/bin/sh" instead of "single", that leaves remounting your root
filesystem rw to you.
</P>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">SNMP Tool for networking (re: March tips)</FONT></H3>
Thu, 1 Mar 2001 17:02:10 +0100
<BR>Casas Bouza, Robert<a href="mailto:linux-questions-only@ssc.com"> (robert.casas from puig.es)</a>
<!-- sig -->
<P>
Hi!
</P>
<P>
About the question done by Antonio Sidona (<a href="../issue64/lg_tips64.html#tips/7">looking for a SNMP tool for networking</a>, tips) on you March 2001
issue, we have tried netsaint
(<a href="http://www.netsaint.org/">www.netsaint.org</a>).
It's a great tool, although needs to be configured
properly, but you can monitor any system that support SNMP or not. A funny
thing is that we HAVE HP OpenView installed, but you need license per
console, and NetSaint can be installed on a Web Server and accessed through
a browser. We actually used them on a complementary basis.
</P>
<P>
Robert Casas
</P>
<!-- sig -->
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/6"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">distro version upgrade? (slackware)</FONT></H3>
Thu, 01 Mar 2001 13:45:43 -0800
<BR>Michael Moore<a href="mailto:linux-questions-only@ssc.com"> (michael_moore from csnw.com )</a>
<!-- sig -->
<P>
Dan Blazek wrote:
</P>
<P><STRONG>
Hi,
I think I'm running <A HREF="http://www.slackware.org/">Slackware</A> 2.2 (kernel is 2.0.27 for sure
anyway). Is there some kind of cluster or patch bundle I can download to
upgrade my box. Like a single package I can install to at least jump up
to slackware 3? And if there is.. can you please tell me where to find
it, and if there is there a special way to install it? Or am I going to
be stuck installing a new image?
</STRONG></P>
<P>
Heather wrote:
</P>
<BLOCKQuote>
<P><STRONG>
I thought there wasn't one, but rarely say so without looking. And what
do you know, I found:
</STRONG></P>
<P><STRONG><DL><DT>
slackUp - The Slackware Auto-Upgrade Utility
<DD><A HREF="http://xfactor.itec.yorku.ca/~xconsole/download.html"
>http://xfactor.itec.yorku.ca/~xconsole/download.html</A>
</DL></STRONG></P>
<P><STRONG>
You should read its readme yourself, to check that it can handle your
version. If it can't. get involved with the authors ... they haven't
updated it in almost a year (or at least the webpage) and you may spark
an entirely new round of development for the project.
</STRONG></P>
</BLOCKQuote>
<P>
David Cantrell, one of the Slackware staff members, has also made a pretty
comprehensive Slackware upgrade utility, autoslack. While this is not a
supported Slackware project, David's involvement probably means it is
likely to work well with their site. You can find it on their unsupported
projects server at <A HREF="http://zuul.slackware.com"
>http://zuul.slackware.com</A>
</P>
<P>
-Michael
</P>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/7"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">2-cent Tip: Cleaning up after Netscape</FONT></H3>
Thu, 1 Mar 2001 17:51:39 -0500
<BR>Ben Okopnik <a href="mailto:linux-questions-only@ssc.com">(The Answer Gang)</a>
<P>
Linux is a wonderfully reliable OS: even the software that runs under it
is reliable. X Windows runs reliably. Midnight Commander is reliable.
Even Netscape Communicator crashes reliably.
</P>
<P>
Ooops...
</P>
<P>
Netscape is a nice piece of software, in that it supports everything (and
then some) that a modern "fancy" browser should support. Unfortunately,
the rate at which it goes down brings to mind expressions about hookers on
payday - and in my experience, it's been this way from day one. Not only
that, it tends to leave behind hung copies of itself (which makes the
processor load shoot right up into the red) and lockfiles that create error
messages the next time you try to start it up.
</P>
<P>
A few months ago, tired of having to clean up the random garbage, I created
this script. If Netscape has crashed, or is simply frozen, it will take
care of everything. Nowadays, it's my automatic response to a Netscape
crash. &lt;sigh&gt; I'm getting awfully familiar with typing "notscape"...
</P>
<P align="center">See attached script <a href="misc/tips/notscape.bash.txt">notscape.bash.txt</a></p>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/8"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Regarding backups [http://www.linuxgazette.com/issue64/tag/28.html]</FONT></H3>
Thu, 1 Mar 2001 19:02:35 -0500
<BR>David Jao<a href="mailto:linux-questions-only@ssc.com"> (scythe from dominia.org)</a>
<!-- sig -->
<P>
Hi guys,
</P>
<P>
This is in response to Bruce Harada's message at
</P>
<P>
<A HREF="../issue64/tag/28.html"
>http://www.linuxgazette.com/issue64/tag/28.html</A>
</P>
<P>
I would have preferred to contact him directly but I could not find an
email address for him on the page.
</P>
<P>
Using gzip on backup files 2GB in size is a <EM>really</EM> bad idea, since if
the compressed file gets corrupted at any point, then everything
occuring after the point of corruption will be unrecoverable.
</P>
<P>
Of course if hard drives are perfectly reliable then corruption is no
problem, but if that were the case then you wouldn't be doing backups
anyway.
</P>
<P>
In general, compressing large backups is almost never worth it because
of the reliability issues. If one must use compression, bzip2 is a
better choice, since it uses 900kB blocks and corruption would only
affect an individual data block.
</P>
<P>
-David
</P>
<!-- sig -->
<!-- end 8 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/9"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Modules cannot load with kernel recompile</FONT></H3>
Thu, 01 Mar 2001 22:39:33 -0500
<BR>Tom Walsh<a href="mailto:linux-questions-only@ssc.com"> (tom from cyberiansoftware.com)</a>
<!-- sig -->
<P>
Regarding '<A HREF="../issue64/tag/16.html"
>http://www.linuxgazette.com/issue64/tag/16.html</A>', I use
'make install' myself, saves you the step of copying the image to <TT>/boot</TT>
and forgetting to run lilo.
</P>
<P>
--
Tom Walsh
</P>
<!-- sig -->
<!-- end 9 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/10"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">RE: Linux PPP route question</FONT></H3>
Fri, 02 Mar 2001 14:06:07 -0600
<BR>Brian Finn <a href="mailto:linux-questions-only@ssc.com"> (nacmsw from airmail.net)</a>
<!-- sig -->
<P>
Hi,
</P>
<P>
I found a dial-on-demand package for Linux called Diald. I think
it may help alleviate your PPP problems. You can find it at:
</P>
<P><BLOCKQuote>
<A HREF="http://diald.sourceforge.net"
>http://diald.sourceforge.net</A>
</BLOCKQuote></P>
<P>
Hope this helps!
<br>Brian Finn
</P>
<!-- sig -->
<!-- end 10 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/11"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">"Interrupt for Linux" question from S. Auejai</FONT></H3>
Mon, 05 Mar 2001 12:09:38 -0600
<BR>Bill McConnaughey<a href="mailto:linux-questions-only@ssc.com"> (mcconnau from biochem.wustl.edu)</a>
<!-- sig -->
<P>
I found Alessandro Rubini's book, Linux Device Drivers, published by
O'Reilly and Associates, very helpful in getting started on writing device
drivers (including interrupt handlers).
</P>
<!-- sig -->
<!-- end 11 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/12"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">2ct tip - Removing temp files</FONT></H3>
Tue, 06 Mar 2001 20:58:25 -0800
<BR>forsberg <a href="mailto:linux-questions-only@ssc.com"> (forsberg from adnc.com)</a>
<!-- sig -->
<P>
When writing a program that uses temporary files on a
UNIX/Linux system it is convenient to use a feature of
UNIX. Create the temporary file, then remove it (i.e.
<TT>unlink()</TT> ) without closing the file.
</P>
<pre>
fd = fopen("/tmp/somefilename.tmp",...);
unlink("/tmp/somefilename.tmp");
.
. Use temp file
.
fclose(fd) or exit();
</pre>
<P>
Then you can read and write to this file during
the existance of this process. The temp file will
not be removed until a close statement on the
file descriptor or the program terminates. Only
then will the kernel remove the file. Use this
technique to guarantee that all temp files are
cleaned up if your program crashes.
</P>
<P>
Bruce Forsberg
</P>
<!-- sig -->
<!-- end 12 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/14"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Linux RedHat question</FONT></H3>
Wed, 28 Mar 2001 12:18:34 -0800
<BR>Ray Hanes <a href="mailto:linux-questions-only@ssc.com">(high_tech_hanes from yahoo.com)</a>
<P><STRONG>
I saw your page and don't know if your still actively
maintaining it and answering questions but in case you are. I'm
trying to find a variable for what version of <A HREF="http://www.redhat.com/">Red Hat</A> is running.
If there is no variable for it from the system then how can I get a
script file to detect the Distribution Verson assign it to a
variable?
</STRONG></P>
<P>
Hi Ray --
</P>
<P>
On a default RedHat install, the file <TT>/etc/redhat-release</TT>
contains the version. Most RedHat installs leave that
file there. (I always delete it because the existence of that
file causes the rc.local script to overwrite <TT>/etc/issue</TT> at bootup.)
</P>
<P>
Hope this helps -
<br>--
<br>Breen Mullins
</P>
<!-- sig -->
<!-- end 14 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/16"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Question on stty</FONT></H3>
Tue, 20 Mar 2001 11:46:06 -0800
<BR>Iris Louie <a href="mailto:linux-questions-only@ssc.com">(IHo from altera.com)</a>
<P><STRONG>
I have to type in stty erase "backspace" each time I log in. How can I get
set it as apart of the default stty setting?
</STRONG></P>
<P>
Put the command in your ~/.bashrc file or whatever file your shell
reads at startup. -- Mike
</P>
<!-- end 16 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/18"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">inode related question</FONT></H3>
Fri, 16 Mar 2001 09:57:20 -0800
<BR>HCL Amritsar <a href="mailto:linux-questions-only@ssc.com"> (narenderpk from usa.net, tag from ssc.com)</a>
<P><STRONG>
in unix file system if inode of current directory is known .explain how to
find the inode of the file <TT>../file1.</TT>
</STRONG></P>
<pre>$ ls -i ../joey/.bashrc
407098 ../joey/.bashrc
</pre>
<p>-- Mike</p>
<!-- end 18 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/20"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Protecting web pages</FONT></H3>
Mon, 26 Mar 2001 10:05:00 -0800
<BR>Doranda L Martin <a href="mailto:linux-questions-only@ssc.com">(anonymous)</a>
<!-- sig -->
<!-- ::
Protecting web pages
~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
Hello,
<br>my name is D and i have a web page. I have a question. I would like to
know how to put an entry box in my web page. Actually i am trying to hav
it so that you must have a password to get to certain parts of my web
page, basically the table where my poems are and then have a way to make
them have to enter a password to look at the poems if someone
accidentally got to the table. i would like:
</STRONG></P>
<P><STRONG><BLOCKQuote>
box 1: their email address
<br>box 2: password
<br>submit
</BLOCKQuote></STRONG></P>
<P><STRONG>
please help, if you could send me codes or somewhere to go or anything it
would be a great help
</STRONG></P>
<P>
If your web server is <A HREF="http://www.apache.org/">Apache</A> and it has been configured to support (1)
HTTP Basic Authentication, and (2) .htaccess files, do the following:
</P>
<ol>
<li> Use the htpasswd
program to create a password file. (This is not the UNIX
password file; for security, you should use different passwords than
your login passwords.)
<li> Create a file called .htaccess in the highest-level directory you
wish to protect. The file should contain:
</ol>
<blockquote><pre>AuthName "Poems"
AuthType Basic
AuthUserFile /path/to/htpasswd/file
require valid-user
</pre></blockquote>
<P>
Now, when the user tries to access anything in or under that directory,
the browser will prompt her to type her "Poems" username/password. If
she does not type it correctly, she'll get an "Unauthorized" error.
</P>
<P>
Your Apache configuration file must "AllowOverride AuthConfig" for
either the entire site or the portion of the site you're concerned
about.
</P>
<P>
See the Apache documentation:
<A HREF="http://httpd.apache.org/docs/mod/mod_auth.html"
>http://httpd.apache.org/docs/mod/mod_auth.html</A> and
<A HREF="http://httpd.apache.org/docs/mod/core.html#allowoverride"
>http://httpd.apache.org/docs/mod/core.html#allowoverride</A>
<br>-- Mike
</P>
<!-- end 20 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/21"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">SSH article</FONT></H3>
Tue, 6 Mar 2001 14:55:51 -0800
<BR>Bryan Henderson <a href="mailto:linux-questions-only@ssc.com">(bryanh from giraffe-data.com)</a>
<P>
In the article on <a href="../issue64/dellomodarme.html">ssh, scp, and sftp</a>
in the March issue, there is an
important area that isn't covered: client/server compatibility.
</P>
<P>
If you're just doing a basic ssh (to get a remote shell), you're
using a standard SSH protocol and any program named "ssh" is likely
to work with any remote system that offers a service it calls "ssh."
</P>
<P>
But scp and sftp are not standard protocols. If you run the scp
program from openssh against a remote system that's running an
original ssh server, it will not work. (And when I learned this the
hard way, it was very hard indeed: the error message isn't "this
server doesn't implement this scp protocol." It is, for reasons
that took a day of debugging to figure out, "invalid file descriptor"!
</P>
<P>
--
Bryan Henderson
</P>
<p><em>This was also forwarded along to the author of that article for
comment, but we got no reply by press time. -- Heather</em></p>
<!-- end 21 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/23"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Linux commands</FONT></H3>
Wed, 14 Mar 2001 09:13:48 -0500
<BR>katja.andren <a href="mailto:linux-questions-only@ssc.com"> (katja.andren from spray.se)</a>
<!-- sig -->
<P><STRONG>
Hi!
</STRONG></P>
<P><STRONG>
I'm new Linuxuser (Redhat ver.) and I'm loking for a summery of commands,
"Linux version of DOS-commands". Do you have any good tips on where I can
find it?
</STRONG></P>
<P>
As it happens, such a thing exists. The summary, as well as a lot of other
useful tips for those who are used to DOS or Windows, are all included in
the DOS-Win-to-Linux-HOWTO. Take a look at "<TT>/usr/doc/HOWTO</TT>" (if you have
them installed on your system - if you don't, you should!), or
&lt;<A HREF="http://www.linuxdoc.org&gt"
>http://www.linuxdoc.org&gt</A>; for the latest version. -- Ben
</P>
<!-- end 23 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/24"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">How write a selfextracting sh script ?</FONT></H3>
Thu, 15 Mar 2001 07:35:49 +0100
<BR>Josep Torra Valles<a href="mailto:linux-questions-only@ssc.com"> (jtorra from campus.uoc.es)</a>
<P><STRONG>
I would like to know how write a selfextracting sh script with a
tar.gz(source code of my program) to be installed, and after
it's extraction I need run make in order to compile and finish
the installation.
</STRONG></P>
<P><STRONG>
Thanks in advance
</STRONG></P>
<P>
Strange as this may sound, about a year ago, I wrote a shell script that
does exactly that - including automatically running "make" or another
program to process the files. I even packaged it as a tarball, with
documentation, configuration files, and even a man page... but I never
released it. Why? &lt;shrug&gt; There are a lot of tangled issues, including the
fact that this mechanism can be easily misused for malicious purposes. On
the other hand, so can anything that you download off the Web and execute
without checking it out first. Whatever, your e-mail here has spurred me
to go ahead and make it public: you can download "SFX" from my site, as
&lt;<A HREF="http://www.geocities.com/ben-fuzzybear/sfx-0.9.4.tgz&gt"
>http://www.geocities.com/ben-fuzzybear/sfx-0.9.4.tgz&gt</A>;. If you run it
without any options, it'll tell you how to create files that will
self-extract <EM>and</EM> compile, all in one shot. I also took some trouble with
the documentation; the "method" files are a pretty cool way to specify
action after extraction, and you can always create your own.
</P>
<P>
I'd really appreciate feedback from anyone who ends up using SFX; if
there's enough interest, I'll rewrite it, possibly in C or Perl.
</P>
<!-- sig -->
<!-- sig -->
<!-- end 25 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/27"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Searching for a text revisioning tool</FONT></H3>
Sun, Mar 11, 2001 04:48:16PM +0100
<BR>Peter Paluch <a href="mailto:linux-questions-only@ssc.com"> (peterp from frcatel.fri.utc.sk)</a>
<!-- sig -->
<P><STRONG>
Hi,
<br>=-=
</STRONG></P>
<P><STRONG>
I often do revisions and checks of articles and text documents that my
colleagues wrote, and under Linux I miss the ability of MS Word97 and above
which allowed me to do revisions very conveniently. Under "revisioning" I
understand writing several marks and suggestions for the author to the
revisioned document, striking-out whole words or sentences and replacing
them with new ones.
</STRONG></P>
<P><STRONG>
I'm thus searching for a Linux document revisioning tool. It would be lovely
if the tool worked with XML. Do you know anything that could help me?
(Please notice that CVS is not what I need.)
</STRONG></P>
<P><STRONG>
Thanks a lot in forward.
</STRONG></P>
<P>
Have you taken a look at WordPerfect 8 for Linux? I don't have it
installed on my current machine, but I seem to remember seeing some kind
of revision-type stuff in the menus. -- Ben
</P>
<!-- end 27 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/29"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">2.4.2 and loop devices</FONT></H3>
Tue, 13 Mar 2001 22:42:11 -0800
<BR>David Ellement <a href="mailto:linux-questions-only@ssc.com">(david.ellement from home.com)</a>
<!-- sig -->
<P><STRONG>
I've recently compiled the 2.4.2 kernel (under RH 7.0). It seems I
can no longer run any commands the interact with the block loop
devices: mkbootdisk, mkinitrd, mke2fs <TT>/dev/loop*</TT>, mount -o, ...
If I run one of them, they hang at mke2fs <TT>/dev/loop;</TT> if I try to
halt the system afterward, it hangs trying to shutdown the
file-systems.
</STRONG></P>
<P><STRONG>
I've tried to compile with loop device support as a built-in, and as
a module (and lsmod show it loaded). What am I missing?
</STRONG></P>
<p><em>... but he managed to discover for himself ...</em></p>
<P>
The 2.4.2 kernel has a bug which caused a deadlock for loop devices.
It is fixed in the 2.4.3-pre2 and later patches.
</P>
<p><em>Thanks for passing us the Tip, David! -- Heather</em></p>
<!-- sig -->
<!-- end 29 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/30"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Re your Fortran answer (tag 15, iss 64)</FONT></H3>
Tue, 13 Mar 2001 17:04:00 +0000 (GMT)
<BR>duncan <a href="mailto:linux-questions-only@ssc.com"> (D.C.Martin.2000 from Cranfield.ac.uk)</a>
<!-- sig -->
<P>
I read with interest about how g77 works. I plan on using it when I get a
chance. The questioner would probably find it useful to check out
www.fortran.com - it has links to many different Fortran products,
services, and benchmark tests, and a lot of what is on there is relevant
to/directly aimed at linux users. Many compilers seem to be aimed
squarely at the linux market. I guess that is because of the popularity
of Beowulf type clusters, but it's nice to know that even where almost
everything is (visibly) written in C there is still room for Fortran.
<br>Hope this helps
<br>Cheers
<br>Duncan
<br>ps TAG is great. Keep it up.
</P>
<!-- sig -->
<!-- end 30 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/31"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Agenda Computing Challenges Palm</FONT></H3>
Thu, 15 Mar 2001 16:34:11 -0800 (PST)
<BR>Heather<a href="mailto:linux-questions-only@ssc.com"> (The Editor Gal)</a>
<P><STRONG>
Is this press release true? Can somebody summarize how far the Linux-on-PDAs
projects have gotten?
</STRONG></P>
<P>
Handhelds.org has a great deal of information about putting Linux onto PDAs.
Transvirtual's PocketLinux (their penguin is very cute - his whole tummy is
a pocket protector) runs on iPaq, VTech's Helio, maybe others by now. The
pocketlinux has to be put on by having a dev environment on another box, but
this is no different than the first fellow who forcefed Linux onto his laptop
across its plink cable or ethernet crossover. The result is operational
without an external bootstrap, but varies in usability.
</P>
<P>
Certainly some complete OS bigots have tried to put Linux on their Palms.
</P>
<P>
Agenda <EM>may</EM> be the first to actually sell a PDA preloaded with Linux, and
not designed for some other OS first, though.
</P>
<P>
And, their Linux environment has the usual PDA features, rather than trying
to be X or a terminal. -- Heather
</P>
<P><STRONG>
----- Forwarded message from Agenda Computing -----
</STRONG></P>
<P><STRONG>
Subject: Agenda Computing Challenges Palm
Date: Fri, 9 Mar 2001 19:49:05 -0800 (PST)
</STRONG></P>
<p>The complete text of their Press Release can be found at
<a href="http://www.agendacomputing.com/about/press20010309.html"
>http://www.agendacomputing.com/about/press20010309.html</a>
</p>
<!-- sig -->
<!-- end 31 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/32"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Mailbag #62; Memory mystery</FONT></H3>
Tue, 20 Mar 2001 12:35:52 +0100
<BR>Frode Lillerud <a href="mailto:linux-questions-only@ssc.com">(frode.lillerud from c2i.net)</a>
<!-- sig -->
<P>
I know that Abit had a similar problem with their BH6 motherboard, Linux
wouldn't show RAM over 64MB.
They solved it by releasing a BIOS patch.
</P>
<P>
Yours sincerely
<br>Frode Lillerud, Norway
</P>
<!-- sig -->
<!-- end 32 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/34"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">mcad</FONT></H3>
Mon, 26 Mar 2001 09:29:15 -0800 (PST)
<BR>Heather <a href="mailto:linux-questions-only@ssc.com"> (The Editor Gal)</a>
<!-- sig -->
<P><STRONG>
Hello. I keep seeing the term "mechanical CAD", but am not sure of it's
actual meaning. What is mechanical CAD and what differentiates it from CAD?
Thanks.
RES
</STRONG></P>
<P>
This isn't really a question about Linux, but I'll toss in a potshot.
</P>
<P>
There are absolutely piles of CAD software available for Linux. Most of
it appears to be for cirvuitboard description. That's not terribly useful
for developing instructions to send to a metal lathe so a part can be cut.
And both of these are very different from architectural CAD for designing
building layouts.
</P>
<P>
I would guess that by saying "mechanical CAD" one could easily note that
you meant the second kind.
</P>
<!-- sig -->
<!-- end 34 -->
<!--startcut ======================================================= -->
<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 65 of <I>Linux Gazette</I> April 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 *** -->
<CENTER>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_answer65.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 ========================================================= -->