old-www/LDP/LG/issue67/lg_tips67.html

1069 lines
36 KiB
HTML

<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.3E.u">
<TITLE>More 2 Cent Tips & Tricks LG #67</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_answer67.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="adam.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>2ct tip - making site icons for Konqueror</strong></a>
<li><A HREF="#tips/2"
><strong>getting 2 dynamic ip addresses</strong></a>
<li><A HREF="#tips/3"
><strong>Mouse port Problem ?</strong></a>
<li><A HREF="#tips/4"
></a>Burning .iso files from Windows --or--
<br><A HREF="#tips/4"
><strong>Anyone burning a CD should know...</strong></a>
<li><A HREF="#tips/5"
><strong>Slackware Upgrade</strong></a>
<li><A HREF="#tips/6"
><strong>Dump considered harmful</strong></a>
<li><A HREF="#tips/7"
><strong>RE: Device Drivers for Linux Gazette</strong></a>
<li><A HREF="#tips/8"
><strong>Linux Device Driver</strong></a>
<li><A HREF="#tips/9"
><strong>PLWM</strong></a>
<li><A HREF="#tips/10"
><strong>Terminaal access in Un*x</strong></a>
<li><A HREF="#tips/11"
><strong>Configuring alternate window managers.</strong></a>
<li><A HREF="#tips/12"
><strong>stubborn mount error</strong></a>
<li><A HREF="#tips/13"
><strong>Shutdown, Reboot</strong></a>
<li><A HREF="#tips/14"
><strong>How to create entries under /dev directory ?</strong></a>
<li><A HREF="#tips/15"
><strong>relay webcam (axis) proxy</strong></a>
<li><A HREF="#tips/16"
><strong>RE: help. making my new linux box a server for winNT</strong></a>
<li><A HREF="#tips/17"
><strong>tell me how to configure this new samba in easy steps .</strong></a>
<li><A HREF="#tips/18"
><strong>Deleted pager panel in Gnome</strong></a>
<li><A HREF="#tips/19"
><strong>Expect script fails to 'Expect'....</strong></a>
<li><A HREF="#tips/20"
><strong>LPR alternatives</strong></a>
<li><A HREF="#tips/21"
><strong>partitioner (was: Fatal Error from cfdisk)</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">2ct tip - making site icons for Konqueror</FONT></H3>
Wed, 25 Apr 2001 19:48:36 -0500
<BR>Jim Liedeka (<a href="mailto:linux-questions-only@ssc.com">jliedeka from facstaff.wisc.edu</a>)
<P>
When you visit some sites with Konqueror, the icon in the upper left
corner and the icon in the location window will sometimes become the
logo for the site. You can add your own with the <A HREF="http://www.kde.org/">KDE</A> icon editor.
</P>
<P>
Just create a 16x16 PNG file and save it in
$HOME/.kde/share/icons/favicons
</P>
<P>
as &lt;domain name&gt;.png. For example, I created a "G" logo for visiting i
the www.packers.com site. I saved my icon as "www.packers.com.png."
</P>
<P>
Jim
</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">getting 2 dynamic ip addresses</FONT></H3>
Tue, 22 May 2001 19:08:05 +0200
<BR>Thomas M&uuml;ller (<a href="mailto:linux-questions-only@ssc.com">twm from headwork-consulting.de</a>)
<P>
Hi,
</P>
<P>
regarding your recent answer to [subj]:
</P>
<P><STRONG><BLOCKQuote>
[Mike] Your hub is connected directly to the DSL modem? In that case, you
will have to contact your ISP to get a second dynamic address from them...
if you can.
A more common scenario is to have one computer (the server) connected to the
modem and also to the hub. The second computer is connected only to the hub.
</BLOCKQuote></STRONG></P>
<P>
Not widely known is this alternative (assuming that pppoe is used):
</P>
<P><ul>
<li>Connect the DSL modem to a hub
<li>connect another computer to the same hub
<li>configure this computer as a firewall/router/NAT and use the <EM>same</EM>
network card for IP and PPPOE connections
<li>just point all other computers to this box as router
</ul></P>
<P>
This solution has two advantages:<ol>
<li>It still allows every box on the net to directly connect via DSL if
necessary (for example if the router goes dead)
<li>It saves one network card
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle">
</ol></P>
<P>
There are of course also drawbacks:<ol>
<li>If the ISP is not very very careful it could happen that somebody uses
this connection to monitor internal network traffic.
<li>It could be confusing if both alternatives (via router <TT>/</TT> direct
connection) are possible. One never knows which one should be used.
</ol></P>
<P>
Let me also point you to <A HREF="http://www.fli4l.de"
>http://www.fli4l.de</A>, a linux router project called
"Floppy ISDN for Linux" which also supports DSL. It is a great solution for
most router needs and very easy to configure. You don't even need a Linux
box to install/configure it since it comes with tools for Windows <TT>/</TT> DOS as
well. All you do is use the Windows based configuration program or a text
editor to adjust a configuration file, run a script <TT>/</TT> batch file to create a
boot floppy and boot from it.
I have discovered it a month ago and switched my old <A HREF="http://www.suse.com/">SuSE</A> based router to
this one immediately.
</P>
<P>
Unfortunately the documentation is so far mostly German, but they are
working on an English translation.
</P>
<P>
regards
<br>Thomas
</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">Mouse port Problem ?</FONT></H3>
Fri, 18 May 2001 16:09:18 +0000
<BR>Andrew Higgs (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
I am having Ps/2 mouse . my startx is fine but i dont see any mouse
movements . i tried attaching different mouse but the result is the
same. can u help me how to make out whether its a problem of mouseport .
</STRONG></P>
<P><STRONG>
Regards
<br>Anil
</STRONG></P>
<P>
Hi,
</P>
<P>
Firstly you need to know on what port X is looking for a mouse and then make
sure that this device actually exists and is supported by the kernel.
</P>
<P>
In <TT>/etc/XF86Config</TT> you should find a section called "Pointer" mine reads as
follows.
</P>
<Pre>
Section "Pointer"
Protocol "PS/2"
Device "/dev/mouse"
</Pre>
<P>
<TT>/dev/mouse</TT> is a symbolic link to <TT>/dev/psaux.</TT>
</P>
<P>
Hope this will help.
</P>
<P>
Kind regards
<br>Andrew Higgs
</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">Anyone burning a CD should know...</FONT></H3>
Fri, 18 May 2001 15:21:44 -0700 (PDT)
<BR>Raini Hixon (<a href="mailto:linux-questions-only@ssc.com">rainihixon from yahoo.com</a>)
<!-- ::
Anyone burning a CD should know...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P>
Hi,
</P>
<P>
I'd like to respond to a question in the April MailBag about burning .iso cd images from Windows.
</P>
<P>
When downloading an .iso image off the internet there are several steps
involved. One should of course download the image and burn it to a CD.
However there is a step in the middle that is even more important...getting
an MD5 checksum against the resulting file.
</P>
<P>
Most sites that allow you to download an .iso file also have a matching
MD5SUM file that goes with the .iso file. Go ahead and download that too.
It is a very small file and is basically your insurance against making
coasters (an invalid CDRom disc ).
</P>
<P>
The file really contains an MD5 digest of the .iso file. It is in ascii text and is viewable with notepad in Windows. What is an MD5 digest you ask...it is a 128-bit digital fingerprint of the file. If you want to know more you can read the spec for the algorithm at: <A HREF="http://theory.lcs.mit.edu/~rivest/rfc1321.txt"
>http://theory.lcs.mit.edu/~rivest/rfc1321.txt</A>
</P>
<P>
Because you require a way to get the MD5 digest of a file from a windows perspective, you'll need a WIN32 app that can run the digest. This utility can be picked up at: <A HREF="http://www.etree.org/cgi-bin/counter.cgi/software/md5sum.exe"
>http://www.etree.org/cgi-bin/counter.cgi/software/md5sum.exe</A>
</P>
<P>
Save it to C:\WINDOWS. Just invoke it in a dos window with the following command line (replacing the .iso filename with the name of the .iso that you downloaded).
</P>
<P><CODE>
md5sum -b myimage.iso
</CODE></P>
<P>
It's gonna run for a while....ok probably 10 minutes or so...be patient. The utility will then spit out something like: 379d89e83825d11d985b1081ab0de6de *myimage.iso
</P>
<P>
Now look at the the the number stored in the MD5SUM file that you downloaded for the .iso file. If they match, you have my approval to go for the burn...if not...try again.
</P>
<P>
There are also some low cost methods of getting the CD for just about any linux distribution like <A HREF="http://www.cheapbytes.com"
>http://www.cheapbytes.com</A> or <A HREF="http://www.linuxmall.com"
>http://www.linuxmall.com</A> these both will do all the dirty work, including checking for valid .iso and burning it properly, for around a 5-spot.
</P>
<P>
-Raini Hixon
</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">Slackware Upgrade</FONT></H3>
16 May 2001 20:45:19 +0000
<BR>James Vanns (<a href="mailto:linux-questions-only@ssc.com">jim from prolinux.co.uk</a>)
<!-- sig -->
<P>
Re: the tips and tricks page of the April (issue 65) question, <A HREF="http://www.slackware.org/">Slackware</A> upgrade
</P>
<P>
Reply from Jim Vanns
</P>
<P>
Awkwardly enough I have also written a program called slakup!! It's on
freshmeat so go to <A HREF="http://freshmeat.net/projects/slakup"
>http://freshmeat.net/projects/slakup</A> and take a look
at it. I think it'll do roughly what you want - you can search for
individual packages install them resume the download (if you're
disconnected for some reason) and even download and install entire
directories.... I hope this helps...
</P>
<P>
Regards
</P>
<P>
Jim
</P>
<!-- 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">Dump considered harmful</FONT></H3>
Wed, 9 May 2001 09:43:50 -0700
<BR>Mike Orr (<a href="mailto:linux-questions-only@ssc.com"><em>LG</em> Editor</a>)
<P><DL><DT>
"Trashing your filesystem with dump"
<DD><A HREF="http://www.lwn.net/2001/0503/kernel.php3"
>http://www.lwn.net/2001/0503/kernel.php3</A>
</DL></P>
<P>
Why 'dump' is not a safe backup tool for Linux. Short Linux Weekly News
article with a quote from Linus.
</P>
<P>
-Mike
</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">RE: Device Drivers for Linux Gazette</FONT></H3>
Thu, 3 May 2001 16:09:10
<BR>matthew (<a href="mailto:linux-questions-only@ssc.com">matthew from waddilove.co.uk</a>)
<P>
Hi,
Linux.com have put an article up about writing a Device Driver which sounds like it could be just the thing asked for.
</P>
<P><DL><DT>
heres the URL
<DD><A HREF="http://www.linux.com/newsitem.phtml?sid=93&amp;aid=12197"
>http://www.linux.com/newsitem.phtml?sid=93&amp;aid=12197</A>
</DL></P>
<P>
Yours
<br>Matthew Waddilove
</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">Linux Device Driver</FONT></H3>
Mon, 30 Apr 2001 08:44:09 +0100
<BR>Mike Ellis (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
<!-- sig -->
<P><STRONG>
I'm a candidate for the doctor's degree on electronic. I'm working
on a DSP and data adquisition card for ISA bus (as begin). I wrote a
device driver
for Linux (a file .o), and then make a special file in <TT>/dev</TT> directory
with
mknod; However, I don't know if I have to re-compile the kernel for
associate my special file with my device drive ( any.o ). My questions
are:
</STRONG></P>
<P><STRONG>
Which are the steps for make a device drive and install it? And then,
Which
are the steps for redistribute it? Where can I get more information? .
Thanks a lot by anyway.
</STRONG></P>
<P>
Hiya!
</P>
<P>
I've written a couple of Linux device drivers, and I found most of the
information I needed in one of these two locations:
</P>
<P><dl><dt>
"Linux Device Drivers"
<dd>by Alessandro Rubini
<br>published by O'Reilly,
<br>ISBN 1-56592-292-1
</dl></P>
<P><DL><DT>
"The Linux Kernel Module Programming Guide, version 1.1.0"
<dd>by Ori
Pomerantz
<br>published by the Linux Documentation Project at
<br><A HREF="http://www.ibiblio.org/pub/Linux/docs/linux-doc-project/module-programming-guide/lkmpg-1.1.0.pdf.tar.gz"
>http://www.ibiblio.org/pub/Linux/docs/linux-doc-project/module-programming-guide/lkmpg-1.1.0.pdf.tar.gz</A>
</DL></P>
<P>
The first is a paperback book giving all the gory details of how device
drivers work under Linux, including how to write them as modules so that
the kernel can dynamically load and unload them as needed (this saves
recompiling the kernel all the time). The book is based around kernel
version 2.0, but includes lots of pointers for 2.2. I guess a new version
for the 2.4 kernels will come along soon.
</P>
<P>
The second, web reference is a more general guide to writing modules, and
may be slightly less useful to you.
</P>
<P>
The third place I looked for help was in the kernel source tree: lots of
skilled programmers have written lots of device drivers and made the source
available to you. Pick one or two modules that drive similar hardware to
your device and read the code thoroughly.
</P>
<P>
Hope it helps!
</P>
<P>
Mike.
</P>
<!-- 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">PLWM</FONT></H3>
Wed, 9 May 2001 13:56:21 -0700
<BR>matthiasarndt (<a href="mailto:linux-questions-only@ssc.com">matthiasarndt from gmx.de</a>)
<P><DL><DT>
There's also the Pointless Window Manager, written in Python:
<DD><A HREF="http://sourceforge.net/projects/plwm"
>http://sourceforge.net/projects/plwm</A>
</DL></P>
<P><DL><DT>
LinuxPlanet article about it:
<DD><A HREF="http://www.linuxplanet.com/linuxplanet/opinions/3267/1"
>http://www.linuxplanet.com/linuxplanet/opinions/3267/1</A>
</DL></P>
<P>
This should spark some interest in some quarters (Hi Dan):
</P>
<P><BLOCKQuote>
From PLWM's info page:
</BLOCKQuote></P>
<P>
plwm is not a normal window manager, in fact, it isn't a window
manager at all. Instead it is a collection of Python classes which you
can use to build your own window manager. You can include the features
you like and easily write your own extensions to make your plwm
behave exactly as you want it to. Eventually, you will have a perfect
symbiosis of user and window manager, you and the computer will be a
beautiful Mensch-Maschine!
</P>
<P>
One basic idea is that the mouse should be banished, and everything
should be possible to do without moving your hands from the keyboard.
This is the pointless bit of plwm.
</P>
<P>
The other basic idea is to make a window manager which is is pure Unix
Philosophy: a lot of simple tools you combine to make a powerful
application. The "tools" are Python classes which makes it easy to
inherit, extend, mixin and override to get exactly the functionality you
want.
</P>
<P>
This makes plwm extremely configurable by sacrificing ease of
configuration: you actually have to write some Python code to get the
window manager exactly as you want it. However, if you was moved by the
first paragraph, then you're probably already a hacker and will relish
writing your own window manager.
</P>
<P>
A typical plwm might look rudimentary, even hostile, to people used
to the glitz and glamour of more conventional window managers. However,
there are a lot of powerfull features, making it really user-friendly.
Provided that the user is friendly to plwm, of course.
</P>
<P>
--
Mike
</P>
<!-- 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">Terminaal access in Un*x</FONT></H3>
Sun, 22 Apr 2001 12:39:09 +0100
<BR>dps (<a href="mailto:linux-questions-only@ssc.com">dps from io.stargate.co.uk</a>)
<P>
Commenting on <A HREF="../issue65/tag/23.html"
>http://www.linuxgazette.com/issue65/tag/23.html</A>
</P>
<P>
Could I suggest you point this person at "The POSIX programmer's guide"
(ORA, ISBN 0-937175-73-0, Donald Levine)? In particular chapter 8 describes
the tc* functions, including stuff like break handling, parity generation,
cooked mode, turn echo on or off, etc, etc. You can do a few more things
with termios but not many and termios is a bit less portable. I think
termios is quite well documented in the GNU C library manual.
</P>
<P>
I suspect the same reference will answer a lot of the other questions that
this breed of program raises. Incidently just coyping the header file is
unliekly to work, it just delies the problems until link time. Depending on
the progrm curses/ncurses might or might not be the right thing, and it is
not possibe to judge this sans the program in question.
</P>
<!-- 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">Configuring alternate window managers.</FONT></H3>
Tue, 8 May 2001 13:57:28 -0400
<BR>Faber Fedor (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
<P><STRONG>
Hi,
</STRONG></P>
<P>
Hello,
</P>
<P><STRONG>
I have recently installed RHL6.2 on my machine. The default
window manager for this is Gnome. Being more familiar with
fvwm2 and olvwm, I would like to know if there is any way
of making these window managers available at the login time.
</STRONG></P>
<P><STRONG>
If it is not possible to have these WM listed under "sessions",
is there any way by which as soon as I log in, fvwm2/olvwm will
start instead of Gnome?
</STRONG></P>
<P>
If you go into <TT>/etc/X11/gdm</TT>, you'll see a Sessions/ directory. Inside of
there, you'll see scripts that launch different WMs. Add scripts for
the WMs you want to launch and they'll show up automagically when you
reboot.
</P>
<HR width="10%" align="center"><P>
Regards,
</P>
<P>
Faber Fedor, RHCE, SCSA, MCSE, MCT, UVW, XYZ
</P>
<P><STRONG>
Hello,
</STRONG></P>
<P><STRONG>
Thanks for the tip. That solved my 90% of the problem. But
I figured out that there is something additional that needs
to be done to get the window managers running. I had to
edit <TT>/usr/X11R6/bin/RunWM</TT> and add entries for the new window
managers. I don't know if this change is required only for
my machine or is a generic one.
</STRONG></P>
<P><STRONG>
Thanks,
Atul/10.May.2001
</STRONG></P>
<!-- 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">stubborn mount error</FONT></H3>
Wed, 02 May 2001 08:43:05
<BR>Derek Sooman (<a href="mailto:linux-questions-only@ssc.com">dsooman from hotmail.com</a>)
<P>
Regarding <A HREF="../issue65/tag/27.html"
>http://www.linuxgazette.com/issue65/tag/27.html</A>
</P>
<P>
Hello,
</P>
<P>
After reading the Answer Gang article in the above URL of your Linux
Gazette, I realised that I had this similar problem. My problem may or may
not be related.
</P>
<P>
I see that Gabriel Florit was using RH7 with some updates installed from
up2date. I ran this recently on RH7 and had some problems mounting vfat
partitions afterwards. I believe, based on the list of packages that were
installed, that this was due to a new version of mount being installed.
There were new kernel sources with these round of updates. Until I
recompiled the kernel using this new source, mount would give the same error
message as Gabriel is experiencing, every time. Then, after compiling the
new kernel with the new source, the problem was gone.
</P>
<P>
Apolgies not being about to tell you exactly which kernel was replaced by
which, I am on a work machine at the moment and have upgraded to the 2.4
kernel under RH7.1 now anyways, but I may be able to find out if I didn't
delete the old sources.
</P>
<P>
Hope this helps,
</P>
<P>
D.
</P>
<!-- end 12 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/13"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Shutdown, Reboot</FONT></H3>
Thu, 3 May 2001 00:05:39 -0700
<BR><EM>Don Marti</EM> (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
<P><STRONG>
I would like to be able to allow other users to do a shutdown, or to
create a special user who can be used to poweroff the system. I am not
concerned about anyone turning the system off when I don't want it to
happen, as there is not anything critical on the system (okay there
is, but it is not a time critical type thing).
</STRONG></P>
<P><STRONG>
I can't just give my root password out so that someone can shut the system
down......
</STRONG></P>
<P>
To do a shutdown on ctrl-alt-delete, you can put this in <TT>/etc/inittab:</TT>
</P>
<blockquote><pre># What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -h now
</pre></blockquote>
<P>
(Most distributions make it a shutdown -r but you can make it a shutdown
-h.)
</P>
<P>
Or, install sudo, make a group "shutdown" and put something like this
in <TT>/etc/sudoers:</TT>
</P>
<blockquote><pre>%shutdown ALL = NOPASSWD: /sbin/shutdown
</pre></blockquote>
<P>
Then other users will be able to shutdown with
</P>
<blockquote><pre>sudo /sbin/shutdown -h now
</pre></blockquote>
<P>
The advantage of the second approach is that sudo will log who did it.
</P>
<P>
--
Don Marti
</P>
<!-- end 13 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/14"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">How to create entries under /dev directory ?</FONT></H3>
Sun, 13 May 2001 18:13:23 -0500
<BR>Bob Martin (<a href="mailto:linux-questions-only@ssc.com">bmartin from ayrix.net</a>)
<!-- sig -->
<P><STRONG>
Hi All:
</STRONG></P>
<P><STRONG>
How to create entries under <TT>/dev</TT> direcory on linux ( <A HREF="http://www.suse.com/">SuSE</A> 7.1 )? RedHat linux
has a script <TT>/dev/MAKEDEV</TT> which can be used for this.
I looked at <TT>/etc/init.d/*</TT> scripts on SuSE linux7.1 installation CD but
couldn't find how it creates entries under <TT>/dev</TT> directory. I want to create
entries for all the devices manually. If SuSE7.1 already have some script like
MAKEDEV will be quite helpful.
</STRONG></P>
<P><STRONG>
Thanks
<br>Sachin
</STRONG></P>
<P>
You create device files with the mknod command. The major and minor numbers for
devices can be found in the kernel source documenation directory in devices.txt
</P>
<P>
-- Bob Martin
</P>
<!-- sig -->
<!-- end 14 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/15"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">relay webcam (axis) proxy</FONT></H3>
Sat, 05 May 2001 17:50:11 +0200
<BR>Don Marti (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
<P><STRONG>
Hi,
</STRONG></P>
<P><STRONG>
I got a problem!
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> You might probably thought that already!
</STRONG></P>
<P><STRONG>
I got several network cameras in our office (axis 2100 with own
flash linux and webserver which already builds a multipart/jpeg).
Due to a lack of bandwidth I want to relay the streams the cams
generate to our webserver which got a MUCH bigger bandwidth
avaliable.
</STRONG></P>
<P><STRONG>
I want that every camera only pushes the stream once though our
line and the server relays it to every client how wants to see
the stream.
</STRONG></P>
<pre><strong>Client-------|
|
|
Client-------|
|
|------------ Server -------------- Cam
|
Client-------|
|
|
Client-------|
|
|
...----------|
</strong></pre>
<P><STRONG>
Do you know about a proxy project that does something like that?
I am not a C guru but I am surviving.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> Maybe you got another
solution for this problem (or maybe the community will
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> )
</STRONG></P>
<P><STRONG>
Thanks in advance!
</STRONG></P>
<P><STRONG>
Heiko
</STRONG></P>
<P><DL><DT>
Sounds like you want the <A HREF="http://www.apache.org/">Apache</A> ProxyPass directive:
<DD><A HREF="http://httpd.apache.org/docs/mod/mod_proxy.html#proxypass"
>http://httpd.apache.org/docs/mod/mod_proxy.html#proxypass</A>
</DL></P>
<P><DL><DT>
Or run Squid as a web accelerator:
<DD><A HREF="http://www.squid-cache.org/Doc/Users-Guide/detail/accel.html"
>http://www.squid-cache.org/Doc/Users-Guide/detail/accel.html</A>
</DL></P>
<P>
--
Don Marti
</P>
<!-- end 15 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/16"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">RE: help. making my new linux box a server for winNT</FONT></H3>
Tue, 15 May 2001 10:37:34 +0200 (MET DST)
<BR>Karl-Heinz Herrmann (<a href="mailto:linux-questions-only@ssc.com">k.-h.herrmann from fz-juelich.de</a>)
<P><STRONG>
On 15-May-01 Juan Pablo L. wrote:
</STRONG></P>
<P><STRONG><BLOCKQuote>
hello,
</BLOCKQuote></STRONG></P>
<P><STRONG>
i have just found many anserws at linuxdoc and i really thing u do a
</STRONG></P>
<P><STRONG>
great job, i dont know if this is the way to ask but i have been looking
all over the net a little explanation on how to make a my linux box a
server for my other home computers running winNT. If you answer me i
would like you to cever things such as how to configure the server it
self and how to configure the clients (running winNT). I m planning to
do it with a hub and some network cards. TIA! =)
</STRONG></P>
<P>
Have a look at Samba: Thats a server running running on *NIX and allows to
connect Windows clients to it for file and printersharing.
</P>
<P><DL><DT>
You could start at:
<DD><A HREF="http://www.linuxgazette.com/cgi-bin/webglimpse/LG/search?query=samba&amp;errors=0&amp;age=&amp;maxfiles=50&amp;maxlines=30&amp;maxchars=10000&amp;cache=yes"
>http://www.linuxgazette.com/cgi-bin/webglimpse/LG/search?query=samba&amp;errors=0&amp;age=&amp;maxfiles=50&amp;maxlines=30&amp;maxchars=10000&amp;cache=yes</A>
</DL></P>
<P>
or simply type samba in any search engine (like www.google.com).
The Samba home page is: <A HREF="http://samba.org"
>http://samba.org</A>
</P>
<P>
You will wan't to run the snmb server for the actual exporting and nmbd who
is handling the Windows query protocoll -- so the Linux box will answer if
you doubleclick "network" in Windows and scan the environment.
</P>
<P>
K.-H.
</P>
<!-- end 16 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/17"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">tell me how to configure this new samba in easy steps .</FONT></H3>
Mon, 30 Apr 2001 13:01:33 -0700
<BR>Heather Stern (<a href="mailto:linux-questions-only@ssc.com"><em>LG</em> Technical Editor</a>)
<P><STRONG>
Dear friends :
</STRONG></P>
<P><STRONG><BLOCKQuote>
recently i installed Samba server 2.2 on redhat linux 7.0.1
i face big problem connecting from windows to that linux box
is there any way to tell me how to configure this new samba
in easy steps .
</BLOCKQuote></STRONG></P>
<P><STRONG>
thanks
</STRONG></P>
<P><STRONG>
--
Essam Mohsin
</STRONG></P>
<P>
There are some GUI tools for it, but they still somewhat expect that
you know what you want. Unless somebody has changed your setup, most
distros' copy of samba contains a sample smb.conf (try looking in <TT>/etc</TT>
or using locate to find it) with comments for all the options.
</P>
<P>
Other than that, the best step-by-step I know, though it's not "down to
the bits" would be samba's own DIAGNOSIS.TXT file. I've configured a
lot of samba boxes. So far I haven't seen a single problem that wasn't
solved by going through this from beginning to end. It has 11 tests
and it's over 300 lines long, in the version I've got.
</P>
<P>
The Samba site has many mirrors, but you can at least find their docs
online at <A HREF="ftp://ftp.samba.org/pub/samba/docs"
>ftp://ftp.samba.org/pub/samba/docs</A> -- there is a lot of good
reading in there.
</P>
<P>
We also had an article in issue 48 (<A HREF="../issue48/blanchard.html"
>http://www.linuxgazette.com/issue48/blanchard.html</A>) about setting up Samba, which you might find useful.
</P>
<!-- end 17 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/18"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Deleted pager panel in Gnome</FONT></H3>
Sun, May 20, 2001 01:41:31AM -0400
<BR>Faber Fedor, Breen Mullins (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
<P><STRONG>
Don Pollitt wrote:
</STRONG></P>
<P><STRONG>
How do I restore my pager panel in GNome. I inadvertently deleted it?
</STRONG></P>
<P>
IIRC, if you delete the directory ~/.gnome and restart <A HREF="http://www.gnome.org/">GNOME</A>, everything
will re-appear (except, of course) for your personalized settings.
</P>
<P>
--
Faber Fedor
</P>
<P>
Ouch!
</P>
<P>
I think it's better to run
</P>
<P>
$ <TT>/usr/bin/panel&amp;</TT>
</P>
<P>
to bring the panel back, and then select
</P>
<P>
Settings/Session/Save Current Session
</P>
<P><CODE>
from the Gnome menu.
</CODE></P>
<P>
--
Breen Mullins
</P>
<!-- end 18 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/19"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Expect script fails to 'Expect'....</FONT></H3>
Fri, May 4, 2001 03:18:27PM +0100
<BR>Faber Fedor (<a href="mailto:linux-questions-only@ssc.com">The Answer Gang</a>)
<P><STRONG>
Chris Skardon wrote:
<br>Hi,
</STRONG></P>
<P>
Hello!
</P>
<strong><pre>expect "Login:"
send "csk\r"
expect "word:"
send "&lt;PASSWORD&gt;\r"
</pre></strong>
<P><STRONG>
The problem that I have is that it doesn't wait for 'Login:' to appear before
it
types the username to the screen, so the output would be something along the
lines of:
</STRONG></P>
<P>
Well, two things come to mind: every script I've ever seen (except for
yours
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle"> looks for "ogin:" and not "Login:". You may want to do that as
well, since every box you telnet to may not use a capital L for the word
login (my other linux boxes don't).
</P>
<strong><pre>spawn telnet hawk
Trying &lt;IP ADDRESS&gt;
Connected to hawk
Escape character is '^]'
csk
Login: &lt;PASSWORD&gt;
Password:
</pre></strong>
<P>
But, based on this output, what I said above won't help. So here, I
would suggest putting another "expect" in before the "ogin:". Say,
something like
</P>
<P>
expect "scape character"
sleep 5
expect "word:"
</P>
<P>
or something along those lines.
</P>
<P>
HTH!
</P>
<P>
--
Regards,
Faber Fedor
</P>
<!-- end 19 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/20"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">LPR alternatives</FONT></H3>
Wed, 9 May 2001 10:05:59 -0700
<BR>Mike Orr (<a href="mailto:linux-questions-only@ssc.com"><em>LG</em> Editor</a>)
<!-- sig -->
<P>
Here's a couple, CUPS and PDQ.
</P>
<P><DL><DT>
CUPS: the Common Unix Printing System
<DD><A HREF="http://www.cups.org"
>http://www.cups.org</A>
</DL></P>
<P><DL><DT>
PDQ: Print, Don't Queue
<DD><A HREF="http://pdq.sourceforge.net"
>http://pdq.sourceforge.net</A>
</DL></P>
<P><DL><DT>
Links to these and more on the Linux Printing site.
<DD><A HREF="http://www.linuxprinting.org"
>http://www.linuxprinting.org</A>
</DL></P>
<P>
What do you think of them? Is it worth switching from LPRng?
-Mike
</P>
<P>
If someone out there writes up a good comparison, we'd be pleased to
publish it in <EM>LG</EM> -- Heather
</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">partitioner (was: Fatal Error from cfdisk)</FONT></H3>
Tue, 8 May 2001 14:36:07 +0100 (BST)
<BR>Peter P (<a href="mailto:linux-questions-only@ssc.com">ptpi from yahoo.com</a>)
<P><STRONG>
Back to the problem, though....I don't know what the
underlying problem was but I seem to have fixed it by
forking out $50 for partition magic which sorted it
out. It would have been nice to have found someone who
could've sorted it without the cost but there you go,
I was in a hurry and couldn't find what I needed in
all the reference and help info out there. I did look
though, believe me(Sometimes there's just too much).
Anyway, thanks for your reply; I'll try to phrase my
question better next time.
</STRONG></P>
<P><STRONG>
Cheers,
Peter.
</STRONG></P>
<P>
We're a bit late for him, but if resizing a vfat or ext2
partition is something you need to do, try parted. It
isn't as pretty (looks a bit like fdisk, really) but, it's
in the major distros now and a cheap download from freshmeat
or the debian archives if you don't have it. In this case,
something unknown was funny about the partitions, and the
corrective ability in resizers was able to fix it.
-- Heather
</P>
<!-- end 21 -->
<!--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 67 of <I>Linux Gazette</I> June 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 *** -->
</BODY></HTML>
<!--endcut ========================================================= -->