old-www/LDP/LG/issue82/lg_tips.html

927 lines
34 KiB
HTML

<!--startcut ==============================================-->
<!-- *** BEGIN HTML header *** -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD>
<META NAME="generator" CONTENT="lgazmail v1.4F.w">
<TITLE>More 2 Cent Tips &amp; Tricks LG #82</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000">
<!-- *** END HTML header *** -->
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_mail.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="http://www.linuxgazette.com/cgi-bin/talkback/all.py?site=LG&article=http://www.linuxgazette.com/issue82/lg_tips.html"><IMG ALT="[ Talkback ]" SRC="../gx/navbar/talkback.jpg" WIDTH="121" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../lg_faq.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="lg_answer.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 *** -->
<!--endcut ============================================================-->
<TABLE width="100%" BORDER><TR><TD WIDTH="200">
<A HREF="http://www.linuxgazette.com/">
<IMG ALT="LINUX GAZETTE" SRC="../gx/2002/lglogo_200x41.png"
WIDTH="200" HEIGHT="41" border="0"></A>
<BR CLEAR="all">
<SMALL>...<I>making Linux just a little more fun!</I></SMALL>
</TD><TD>
<center>
<BIG><BIG><STRONG><FONT COLOR="maroon">More 2&cent; Tips!</FONT></STRONG></BIG></BIG><BR>
<!-- BEGIN tips -->
<STRONG>By <A HREF="mailto:linux-questions-only@ssc.com">The Readers of <i>Linux Gazette</I></A></STRONG></BIG>
</TD></TR>
</TABLE>
<P>
<!-- END header -->
<center><STRONG>See also: The Answer Gang's
<a href="../tag/kb.html">Knowledge Base</a>
and the <i>LG</i>
<a href="http://www.linuxgazette.com/search.html">Search Engine</a></STRONG>
</center><HR>
<UL>
<!-- index_text begins -->
<li><A HREF="#tips/1"
><strong>Linux 2.4.18 + via82cxxx_audio + uart401 = no midi?</strong></a>
<li><A HREF="#tips/2"
><strong>stupid bash tricks #1977 -- programmable completion</strong></a>
<li><A HREF="#tips/3"
><strong>packets</strong></a>
<li><A HREF="#tips/4"
><strong>USB sync</strong></a>
<li><A HREF="#tips/5"
><strong>Deleted force user account, now no access</strong></a>
<li><A HREF="#tips/6"
><strong>AT&T Broadband</strong></a>
<li><A HREF="#tips/7"
><strong>diald</strong></a>
<li><A HREF="#tips/8"
><strong>Fried MBR</strong></a>
<li><A HREF="#tips/9"
><strong>FTP question</strong></a>
<li><A HREF="#tips/10"
><strong>hmorous rant</strong></a>
<li><A HREF="#tips/11"
><strong>Win2k and squid</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">Linux 2.4.18 + via82cxxx_audio + uart401 = no midi?</FONT></H3>
Fri, 02 Aug 2002 10:13:58 -0600
<BR>bgeer (<a href="mailto:linux-questions-only@ssc.com?cc=bgeer@xmission.com&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%231%20%20no%20midi">bgeer from xmission.com</a>)
<br>Answers By Robos, Ben Okopnik
<P><STRONG>
Hi Gang,
</STRONG></P>
<BLOCKQUOTE>
[Robos]
Hi bgeer (not gbeer
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle"> ?)
</BLOCKQUOTE>
<P><STRONG>
I'm desperate. So far I've researched
<TT>/usr/src/linux-2.4.18/Documentation/sound/*</TT>, HOWTO's, mini-HOWTO's,
google, google groups, &amp; posted 2 pleas for help to
comp.os.linux.hardware. No help so far.
</STRONG></P>
<P><STRONG>
I recently installed 2.4.18. I've got 99% of the stuff I want/need
working including sound, but no midi. wav's &amp; au's play fine, mp3's
play [but with a high freq. squeal].
</STRONG></P>
<P><STRONG>
... timidity 2.11.3 &amp; playmidi 2.4 <EM>act</EM> like they play, but no sound.
</STRONG></P>
<BLOCKQUOTE>
[Robos]
IIRC I had some probs playing stuff that wasn't the right sample-rate
(not midi, mind you), meaning 48kHz did play and 44100 not or other
way around. Maybe thats where the problem lies.
If noone else here can help you I can recommend debianhelp.org, maybe
your last chance
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE>
[Ben]
That's very interesting - considering that they use completely different
methods and even different devices. "Timidity" actually doesn't use the
MIDI system (I don't remember whether it's "<TT>/dev/audio</TT>" or "<TT>/dev/dsp</TT>").
You can test these with
</BLOCKQUOTE>
<blockquote><pre>cat /etc/motd &gt; /dev/audio
cat /etc/motd &gt; /dev/dsp
</pre></blockquote>
<BLOCKQUOTE>
This should produce short bursts of noise for each device; if it
doesn't, you need to look into why that device isn't working.
</BLOCKQUOTE>
<BLOCKQUOTE>
BTW, have you looked at your volume settings? Do realize that there are
different ones for different devices, and the relevant ones for what
you're doing may be turned way down.
</BLOCKQUOTE>
<P><STRONG><CODE>
lsmod shows:
</CODE></STRONG></P>
<pre><strong> via82cxxx_audio 18200 0
uart401 6340 0 [via82cxxx_audio]
ac97_codec 9640 0 [via82cxxx_audio]
sound 54764 0 [via82cxxx_audio uart401]
soundcore 3556 5 [via82cxxx_audio sound]
</strong></pre>
<P><STRONG>
are loaded &amp; dmesg shows:
</STRONG></P>
<pre><strong> via686a.o version 2.6.3 (20020322)
Via 686a audio driver 1.9.1
PCI: Found IRQ 5 for device 00:07.5
ac97_codec: AC97 Audio codec, id: 0x4943:0x4511 (ICE1232)
via82cxxx: board #1 at 0xDC00, IRQ 5
Enabled Via MIDI
</strong></pre>
<P><STRONG>
where "Enabled Via MIDI" comes from via82cxxx_audio.o after a
successful call to <TT> probe_uart401()</TT> in uart401.o.
</STRONG></P>
<BLOCKQUOTE>
[Ben]
How about "cat <TT>/dev/sndstat</TT>"? It's not an indicator of anything special
if it says "No such device", but it can be a source of useful info
otherwise.
</BLOCKQUOTE>
<P><STRONG>
My ma'boards are Epox 8kta2 &amp; Asus K7V. The Asus successfully played
a midi using Winblows, tho I hate admitting booting it. My Epox is so
far unpoluted by such evil.
</STRONG></P>
<P><STRONG>
Much obliged for any help...Bob
</STRONG></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">stupid bash tricks #1977 -- programmable completion</FONT></H3>
Sun, 04 Aug 2002 00:18:57 -0700
<BR>Adam Monsen (<a href="mailto:linux-questions-only@ssc.com?cc=adamm@wazamatta.com&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%232%20%20completion">adamm from wazamatta.com</a>)
<P>
If you use bash -- especially tab-completion -- you'll love this feature.
</P>
<P>
First, see (<A HREF="http://rpm.pbone.net/index.php3?idpa=317091&idpl=317091&stat=4&search=bash-completion"
>http://rpm.pbone.net/index.php3?idpa=317091&idpl=317091&stat=4&search=bash-completion</A>).
Tarballs and RPMs are available to power up programmable completion for
your bash shell.
</P>
<P>
Once you install the software, try stuff like this ("&lt;TAB&gt;" literally
means "hit the tab button"):
</P>
<blockquote><pre>$ find -user &lt;TAB&gt;&lt;TAB&gt;
$ find -gid &lt;TAB&gt;&lt;TAB&gt;
$ rpm -e &lt;TAB&gt;&lt;TAB&gt;
$ killall &lt;TAB&gt;&lt;TAB&gt;
$ grep --&lt;TAB&gt;&lt;TAB&gt;
$ cvs &lt;TAB&gt;&lt;TAB&gt;
$ mount &lt;TAB&gt;&lt;TAB&gt;
$ kill -&lt;TAB&gt;&lt;TAB&gt;
$ kill -HUP &lt;TAB&gt;&lt;TAB&gt;
$ ssh adamm@&lt;TAB&gt;&lt;TAB&gt;
</pre></blockquote>
<P>
This last one should work without installing software.
</P>
<P>
The concept is simple but handy. Completion functions define what
arguments are useful to complete certain commands. Enjoy!
</P>
<P>
-Adam Monsen
</P>
<blockquote><font color="#1F1F1F">I use "bash_completion" and love the thing - after one small fix.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> By
default, "ping" (and "fping") complete on the contents of
~/.ssh/known_hosts, which I find a little strange. It should complete on
the contents of "/etc/hosts" instead. Fortunately, local definitions
(anything in "/etc/bash_completion.d") overrides the defaults, so:
-- Ben</font></blockquote>
<p align="center">See attached <tt><a href="misc/tips/ping-complete.bash.txt">ping-complete.bash.txt</a></tt></p>
<blockquote><font color="#1F1F1F">Now, life is good.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> (I've also notified the author.)
-- Ben</font></blockquote>
<!-- 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">packets</FONT></H3>
Fri, 26 Jul 2002 01:20:26 -0700 (PDT)
<BR>parth mehta (<a href="mailto:linux-questions-only@ssc.com?cc=parth_mehta@yahoo.com&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%233%20%20data%20packets">parth_mehta from yahoo.com</a>)
<br>Answers By Pradeep Padala, N N Ashok
<!-- sig -->
<!-- sig -->
<P><STRONG>
hi,
</STRONG></P>
<P><STRONG>
i came to know abt this site from a friend &amp; i
need some help of yours.
</STRONG></P>
<P><STRONG>
can u tell me how the data packets are sent from
one pc to other in a LAN. in other words about the tcp
ip in linux. lastly if u have any code in c or cpp to
do this job.
</STRONG></P>
<P><STRONG>
waiting for yuour reply.
</STRONG></P>
<P><STRONG>
parth
</STRONG></P>
<BLOCKQUOTE>
[Pradeep]
That's quite a broad question. Gurus like Richard Stevens, Douglas E
Comer wrote atleast three volumes each on this topic. I suggest you read
Richar Stevens' "UNIX Network Programming" book.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you want to know about socket programming(I guess that's what you mean
by c code), there are plenty of articles on web. Google.com is the best place
to search. This is one of the articles I found:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
<A HREF="http://www.scit.wlv.ac.uk/~jphb/comms/sockets.html"
>http://www.scit.wlv.ac.uk/~jphb/comms/sockets.html</A>
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
There's a TCP/IP resource list on faqs.org:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
<A HREF="http://www.faqs.org/faqs/internet/tcp-ip/resource-list"
>http://www.faqs.org/faqs/internet/tcp-ip/resource-list</A>
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
If you want to learn how TCP/IP implementation in Linux, best way to do is
to look through source which can be browsed online at <A HREF="http://lxr.linux.no"
>http://lxr.linux.no</A>.
Apart from that, the following document can give you some info:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
<A HREF="http://www.cs.unh.edu/cnrg/gherrin"
>http://www.cs.unh.edu/cnrg/gherrin</A>
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
[Ashok]
You can look at these links (on Kernel Korner in LG) that I found very
useful in tracing the journey of a packet in Linux:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
<A HREF="http://www.linuxjournal.com/article.php?sid=4852"
>http://www.linuxjournal.com/article.php?sid=4852</A>
<A HREF="http://www.linuxjournal.com/article.php?sid=5617"
>http://www.linuxjournal.com/article.php?sid=5617</A>
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
Though the article mentiones packet filter it gives a very good overview
of the networking code.
</BLOCKQUOTE>
<!-- 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">USB sync</FONT></H3>
Tue, 6 Aug 2002 00:31:27 -0700 (PDT)
<BR>Jason Dagit (<a href="mailto:linux-questions-only@ssc.com?cc=dagit@engr.orst.edu&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%234%20%20USB%20sync">dagit from engr.orst.edu</a>)
<br>Answers By Ben Okopnik
<!-- sig -->
<!-- sig -->
<P>
I found this on the web
</P>
<P><STRONG><FONT COLOR="#000099"><EM>
[<A HREF="../issue76/lg_tips.html#tips/16"
>http://www.linuxgazette.com/issue76/lg_tips.html#tips/16</A>]
Today, the curiosity bug bit me again, so I poked my nose into the Linux
Visor USB mailing list, and - lo and behold - there it was. Seems that the
new version of "coldsync", at least the beta, now handles the m125! I
downloaded it, configured it, compiled it, made a config file - and...
ta-daa! Palm USB synchronization, under Linux.
</EM></FONT></STRONG></P>
<P><STRONG><FONT COLOR="#000099"><EM>
Life is good.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</EM></FONT></STRONG></P>
<P><STRONG>
I have an m130, and I can't get it to sync. Can you send me your config
file and the version of coldsync you use?
</STRONG></P>
<P><STRONG>
I setup <TT>/dev/ttyUSB0</TT> and <TT>/dev/ttyUSB1</TT>, and put this in my config file:
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tips/jason.coldsync-config-that-does-not-work.txt">jason.coldsync-config-that-does-not-work.txt</a></tt></p>
<P><STRONG>
Which gives the following output:
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tips/jason.coldsync-complaints.txt">jason.coldsync-complaints.txt</a></tt></p>
<P><STRONG>
Any ideas?
</STRONG></P>
<P><STRONG>
Thanks,
<BR>Jason
</STRONG></P>
<BLOCKQUOTE>
[Ben]
I assume that you have "usbcore", "usb-uhci", "usbserial", and "visor"
modules loaded, or the equivalent kernel options compiled in - yes? I'm
running "coldsync" v2.2.5 my "~/.coldsyncrc" looks like this:
</BLOCKQUOTE>
<p align="center">See attached <tt><a href="misc/tips/ben.dot-coldsyncrc.txt">ben.dot-coldsyncrc.txt</a></tt></p>
<BLOCKQUOTE>
Obviously, you'll need to have the appropriate username and userid.
Other than that, the only assumption that we're making here is that the
130 works the same way as a 125 - not an unreasonable assumption, but
worth checking if things don't work out.
</BLOCKQUOTE>
<P><STRONG>
Ok, thanks, I should probably contact the coldsync crew at this point.
If I'm doing something wrong then it is a problem with the documentation.
</STRONG></P>
<P><STRONG>
Thanks much,
<BR>Jason
</STRONG></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">Deleted force user account, now no access</FONT></H3>
Mon, 19 Aug 2002 09:07:44 -0500
<BR>Mark Goede (<a href="mailto:linux-questions-only@ssc.com?cc=markgoede@centurytel.net&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%235%20%20deleted%20forceuser">markgoede from centurytel.net</a>)
<br>Answers By Jay R. Ashworth, Matthias Posseldt
<!-- sig -->
<!-- sig -->
<blockquote><font color="#000066">We had to get rid of the quoted printable effect,
<EM>and</EM> I had to toss out the HTML attachment. So here's an extra Penny
for the tips: <A HREF="http://expita.com/nomime.html"
>http://expita.com/nomime.html</A> lists instructions for
turning some of that croft <EM>off</EM> so you don't waste bits while emailing.
-- Heather</font></blockquote>
<P><STRONG>
Have a public share account for 8 different Win machines connecting to
a RH6.2 server.
</STRONG></P>
<P><STRONG>
The samba share for the [public] sectiion listed "force users =ftp"
</STRONG></P>
<P><STRONG>
The ftp account was mistakenly deleted, I recreated the ftp account, but
when any user tries to access
the executable files in the public share, they get access violations.
</STRONG></P>
<P><STRONG>
Is there something further that I need to setup for user ftp?
</STRONG></P>
<P><STRONG>
Mark Goede
</STRONG></P>
<BLOCKQUOTE>
[jra]
No, but i'd bet you lunch that you didn't get it re-created with the
right UID. Do an ls -l in the directory in question. If you get a
bunch of files owned by "#14", that's your problem. I'd just change
the number in the passwd file, myself.
</BLOCKQUOTE>
<BLOCKQUOTE>
My RedHat pw file entry is
</BLOCKQUOTE>
<blockquote><pre>ftp:x:14:50:FTP User:/home/ftp:
</pre></blockquote>
<BLOCKQUOTE>
Cheers.
</BLOCKQUOTE>
<BLOCKQUOTE>
[Matthias]
The UID of the new ftp account has to match the old one. So if you created
a new user with useradd ftp and no '-u &lt;nr&gt;" parameter, you have to change
either
</BLOCKQUOTE>
<blockQuote><ol>
<LI>The UID of the account ftp
<LI>The Linux owner of the files in the public share, for instance with
"chown ftp.ftp -R /mnt/samba/public/*".
</ol></blockQuote>
<BLOCKQUOTE>
Ciao
</BLOCKQUOTE>
<!-- 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">AT&T Broadband</FONT></H3>
Tue, 30 Jul 2002 19:50:59 -0700
<BR>Christian Jackson (<a href="mailto:linux-questions-only@ssc.com?cc=cjsredvelvet@attbi.com&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%236%20%20att%20cablemodem">cjsredvelvet from attbi.com</a>)
<br>Answers By N N Ashok, Faber Fedor
<blockquote><font color="#000066">Having an HTML attachment on this added an amazing 140 lines of text I
had to snip. Ugh. While this reader originally referred to
<A HREF="../issue77/lg_tips.html#tips/8"
>[LG 77] 2c Tips #8 dhcp</a>
(maybe they guessed that DHCP is part of the answer?)... there's really
nothing back there specific to AT&amp;T's cablemodems.
-- Heather</font></blockquote>
<P><STRONG>
I have RHL 7.2 on a dual-boot with Win2K running on AT&amp;T Broadband. How
do I set up internet connection in RH? I have search various forums and
come up with no answer.
</STRONG></P>
<P><STRONG>
Please Help,
</STRONG></P>
<P><STRONG>
Christian
</STRONG></P>
<BLOCKQUOTE>
[Ashok]
To configure the internet connection in RH...
</BLOCKQUOTE>
<BLOCKQUOTE>
[Faber]
As with most (all?) things Linux, there are a couple of ways to do it.
Linuxconf will do it, so will internet-druid. IIRC, there is something
on the Control Panel that does that as well.
</BLOCKQUOTE>
<BLOCKQUOTE>
[Ashok]
...you just have to set the
interface connected to your cable modem (say eth0) to use DHCP (AT&amp;T has
stopped giving static IP i think).
</BLOCKQUOTE>
<BLOCKQUOTE>
[Faber]
Once you do that and type (as root) "ifdown eth0 ; ifup
eth0" (or, since you're a Windows user, you can reboot the machine
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle">,
</BLOCKQUOTE>
<BLOCKQUOTE>
[Ashok]
I am using RH7.3 as I type this mail with the following config for my eth0
interface which is connected to the cable modem:
</BLOCKQUOTE>
<blockquote><pre>[nnashok@ashoknn-gw nnashok]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
</pre></blockquote>
<p align="center">See attached <tt><a href="misc/tips/ashok.etc.sysconfig.network-scripts.ifcfg-eth0.txt">ashok.etc.sysconfig.network-scripts.ifcfg-eth0.txt</a></tt></p>
<blockquote><pre>[nnashok@ashoknn-gw nnashok]$
</pre></blockquote>
<BLOCKQUOTE>
But one thing I have not confirmed is if we can directly use Linux
before installing the software given by AT&amp;T on Windows. If you have
already installed the software and are able to access the net, then above
config should work.
</BLOCKQUOTE>
<BLOCKQUOTE>
[Faber]
you then fire up a web broswer, type
"<A HREF="http://www.linuzgazette.com"
>http://www.linuzgazette.com</A>" and start reading.
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<!-- 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">diald</FONT></H3>
Thu, 1 Aug 2002 19:20:55 -0500
<BR>Shane Simmons (<a href="mailto:linux-questions-only@ssc.com?cc=regeya@earthlink.net&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%237%20%20diald">regeya from earthlink.net</a>)
<!-- sig -->
<!-- sig -->
<blockquote><font color="#000066">Shane is responding to
<A HREF="../issue81/lg_tips.html#tips/6"
>[LG 81] 2c Tips #6</a>
-- Heather</font></blockquote>
<P>
Two other things to check:
</P>
<blockQuote><ul>
<LI>make sure diald is changing the default route
after diald starts up. If it's not, traffic is going through sl0 -- which
can be, well, slow. ;-D
<LI>check out pppd's built-in demand dialing. I've used
it on Debian (a cinch to set up! :-D) and have used the same setup on a
Gentoo system (don't ask me how I got all the distfiles AND use a dialup
connection; I have my ways ;-D)
</ul></blockQuote>
<!-- 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">Fried MBR</FONT></H3>
Fri, 9 Aug 2002 11:52:16 -0400
<BR>reddy vishal (<a href="mailto:linux-questions-only@ssc.com?cc=vishal_saireddy@yahoo.com&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%238%20%20fried%20MBR">vishal_saireddy from yahoo.com</a>)
<br>Answers By Ben Okopnik, Heather Stern
<!-- sig -->
<!-- sig -->
<blockquote><font color="#000066">For some reason I can't look at this message's subject without wondering
whether a fried MBR needs special oil or tastes especially good with
garlic. Oh well
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
-- Heather</font></blockquote>
<blockquote><font color="#CC33CC">Maybe it goes good with
<A HREF="../issue67/lg_backpage.html#wacko">rhubarb</A>.
-- Iron</font></blockquote>
<P><STRONG>
I am a novice linux enthusiast. i had a fried mbr some
time back and read your article in linux gazzette.
Clearing out the mbr worked fine. I only installed
windows 2000 after clearing the mbr.
</STRONG></P>
<P><STRONG>
But i am running into a problem now, when i try to
install linux again. I have used RedHat linux 7.2 the
first time ( when i damaged the mbr)...
</STRONG></P>
<BLOCKQUOTE>
[Ben]
The MBR isn't something you can really "damage"; it's just some bytes on
the first sector of the HD. Clearing it out pretty much puts paid to the
problem; there isn't anything that can be left over to cause later
problems.
</BLOCKQUOTE>
<P><STRONG>
...and it installed
without any problem. But this time, as i try to create
the partitions, it is not able to create the partition
and pops up a message asking if i want to clear every
thing in the hard disk.
</STRONG></P>
<P><STRONG>
I am using a 20GB seagate hard disk. If this problem
cant be rectified with the present hard disk, i am
willing to install a fresh separate hard disk for
linux. it appears that having both windows and linux
on the same hard disk is always causing problems.
please tell me how to go about installing a second
hard disk and loading linux on it, assuming that i
already have one hard disk that is currently running
windows 2000.
</STRONG></P>
<P><STRONG>
Please advice. I hope i have made my problem clear.
</STRONG></P>
<P><STRONG>
Thanks again.
<BR>Vishal
</STRONG></P>
<BLOCKQUOTE>
[Ben]
I can't really say what the current problem is, since you've
given minimum detail here... could I get you to report the exact message
that you see? I've never been a particular fan of DiskDruid (the
partitioning software used by RedHat's install), and automatically jump
to "fdisk" (or "cfdisk", for preference, if it's available) in case of
any partitioning problems.
</BLOCKQUOTE>
<BLOCKQUOTE>
Out of curiosity, do you have any available partitions for your Linux
installation? You can't just slap in another OS; if you only have one
partition (the one where Wind*ws is installed), then I can see a
situation where you would be asked to "clear the hard disk". If you need
to shrink your Wind*ws partition to make room for Linux, take a look at
FIPS (a quick Net search will bring it up.)
</BLOCKQUOTE>
<blockquote><font color="#000066">Or use a flavor of Linux that prefers to live in a FAT filesystem -
either using UMSDOS or a giant file to be loopback mounted. I believe
Phatlinux and BigSlack are likely candidates, but I've never used
either, so I can't say more.
</font></blockquote>
<blockquote><font color="#000066">Note that FIPS can only tweak FAT filesystems and its author isn't
updating it (since he's busy working on a Ph.D), while GNU parted
can also tweak ext2, and reiser filesystems. I think it can do ext3,
or you might have to turn off the journals first so it's ext2 again.
Anyways there's a floppy rescue-disk that contains parted:
<A HREF="http://paud.sourceforge.net"
>http://paud.sourceforge.net</A>
-- Heather</font></blockquote>
<P><STRONG>
Thanks Ben and TAG;
</STRONG></P>
<P><STRONG>
I have used fdisk this time for partitioning the free
space on the disk and have been able to successfully
make partitions and install the OS. Thanks a lot once
again.
</STRONG></P>
<P><STRONG>
Vishal
</STRONG></P>
<BLOCKQUOTE>
[Ben]
You're welcome - glad you found it helpful!
</BLOCKQUOTE>
<!-- 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">FTP question</FONT></H3>
Tue, 20 Aug 2002 15:02:40 -0400
<BR>Matt_E._Dinger (<a href="mailto:linux-questions-only@ssc.com?cc=linux-questions-only@ssc.com&cc=Matt_E._Dinger@hud.gov&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%239%20%20ftp%20newline%20conversion">Matt_E._Dinger from hud.gov</a>)
<BR>Question by tag (<a href="mailto:linux-questions-only@ssc.com?subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%239%20%20ftp%20newline%20conversion">linux-questions-only@ssc.com</a>)<br>Answers By Mike "Iron" Orr, Heather Stern
<!-- sig -->
<!-- sig -->
<P><STRONG>
Hi, Matt here. I found your address online while researching a problem.
We have had occasional problems with files being corrupted when we FTP them
to our test server. The files being corrupted are web files(Cold Fusion).
I know some people use the ASCII transfer option and others are usig the
binary option. Could the ASCII be the problem? Thanks,
</STRONG></P>
<P><STRONG>
Matt
</STRONG></P>
<BLOCKQUOTE>
[Iron]
FTP in binary mode transmits the file exaactly as is. FTP in ASCII mode
changes the end-of-line characters to what the destination computer expects.
(Unix uses the linefeed character, Macintosh uses carriage-return, and
Windows uses both.) Use ASCII mode only for plain text files. Any other
type of file (.gz, .tar, image, word processor file, etc) must be transferred
in binary mode or it will be corrupted beyond usability.
</BLOCKQUOTE>
<BLOCKQUOTE>
HTML and XML are text-based formats, so ASCII mode should be fine. I don't
know whether Cold Fusion uses HTML format or its own format.
</BLOCKQUOTE>
<BLOCKQUOTE>
If you've corrupted a binary file by transferring it in ASCII mode and there
are no backup copies available, you <EM>may</EM> be able to recover the data by doing
your steps exactly in reverse. Go to the computer you ran the FTP program at,
start the exact same program, switch to ASCII mode, and do a PUT instead of a
GET (or vice versa). That should reverse whatever changes it did.
</BLOCKQUOTE>
<blockquote><font color="#000066">However, it's not guaranteed, since there might have been stray carriage
return or line feed characters which were not initially part of the
conversion. You can also use the command line of infozip to pack
and then unpack a file to the same effect - handy if you no longer have
the originating system around, either. Infozip is the free 'zip' and
'unzip' found in most Linux distros.
-- Heather</font></blockquote>
<!-- 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">hmorous rant</FONT></H3>
Tue, 13 Aug 2002 20:08:55 -0500 (COT)
<BR>John Karns (<a href="mailto:linux-questions-only@ssc.com?cc=jkarns@csd.net&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%2310%20%20filesystems%20etc">the <em>LG</em> Answer Gang</a>)
<br>Answers By John Karns. Heather Stern, Pradeep Pradala
<!-- sig -->
<P><STRONG>
I just stumbled across a bit humor in the form of a not so scathing, ms
rant, for those of us with too much time on our hands:
</STRONG></P>
<P><STRONG><BLOCKQuote>
<A HREF="http://www.antipope.org/charlie/linux/shopper/165.html"
>http://www.antipope.org/charlie/linux/shopper/165.html</A>
</BLOCKQuote></STRONG></P>
<P><STRONG>
Another one from the same author, but about Linux filesystems. I didn't
realize there were quite so many choices:
</STRONG></P>
<P><STRONG><BLOCKQuote>
<A HREF="http://www.antipope.org/charlie/linux/shopper/169.html"
>http://www.antipope.org/charlie/linux/shopper/169.html</A>
</BLOCKQuote></STRONG></P>
<BLOCKQUOTE>
[Heather]
The fellow whose site he's mentioning writes about Linux for the UK
Computer Shopper. Here's his index of Linux articles. Note that he
only puts them up after the paper edition goes out of print:
<A HREF="http://www.antipope.org/charlie/linux/index.html"
>http://www.antipope.org/charlie/linux/index.html</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
Of course the articles which are old enough...
</BLOCKQUOTE>
<BLOCKQUOTE>
[Pradeep]
May be not exactly relevant.
</BLOCKQUOTE>
<BLOCKQUOTE>
The "Advanced filesystem implementor's guide" series at IBM developerworks
has great information on filesystems. Part1 is at:
</BLOCKQUOTE>
<BLOCKQUOTE><BLOCKQuote>
<A HREF="http://www-106.ibm.com/developerworks/linux/library/l-fs.html?dwzone=linux"
>http://www-106.ibm.com/developerworks/linux/library/l-fs.html?dwzone=linux</A>
</BLOCKQuote></BLOCKQUOTE>
<BLOCKQUOTE>
It's easy to find other parts from the sidebar.
</BLOCKQUOTE>
<!-- end 10 -->
<!-- . . . . . . . . . . . . . . . . . . . -->
<HR WIDTH="40%" ALIGN="center">
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Win2k and squid</FONT></H3>
Mon, 5 Aug 2002 18:31:09 +0100 (BST)
<BR>Thomas Adam (<a href="mailto:linux-questions-only@ssc.com?cc=thomas_adam16@yahoo.com&subject=%20Re%3A%20%5BLG%2082%5D%202c%20Tips%20%2311%20win2k%20and%20squid">The <em>LG</em> Weekend Mechanic</a>)
<!-- sig -->
<!-- sig -->
<blockquote><font color="#000066">This is in reply to (LG 81) Help Wanted #2,
<A HREF="../issue81/lg_mail.html#wanted/2"
>http://www.linuxgazette.com/issue81/lg_mail.html#wanted/2</A>
</font></blockquote>
<blockquote><font color="#000066">Please note that you DO definitely want to have Access
Control Lists (ACLs) enabled on your squid cache. Otherwise
a world of web-kiddies will use your site to forcefeed their
"get a nickelback when people click our ad on your site"
habit, abusing <EM>your</EM> disk space and bandwidth, and making it
look like your proxy is doing the surfing. Don't encourage
them.
-- Heather</font></blockquote>
<P>
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle"> Vikas, I've taken a look at the e-mail
that you sent in regarding
the problems that you were having when authenticating
windows 2000 users
via squid.
</P>
<P>
The errors that you are getting would seem to indicate
that your ACL's
have not been defined correctly (perhaps due to some
syntactical error),
or they do not exist. Now there could be a number of
reasons for this, and
it would be much more helpful to us if you could post
us a copy of your
"<TT>/etc/squid.conf</TT>" file, so that I can see exactly what
is going on.
</P>
<P>
How have you configured Samba and WinBind?? I will
hopefully be covering
Samba in my WM article in the near future -- have you
been able to
authenticate Windows2000 users on the Linux box for
anyother services
besides Squid??
</P>
<P>
Just as a point of interest (and something which was
not covered in my
article), I see from the very last line of your error
log, that you get:
</P>
<blockquote><pre>2002/07/15 10:46:23| Squid is already running!
Process ID 9957
</pre></blockquote>
<P>
Since you already have squid running, I would have
suggested that if you
had only changed the configuration file, that you
simply ran:
</P>
<blockquote><pre>squid -k reconfigure
</pre></blockquote>
<P>
furthermore, if you have to stop the Squid process at
anytime, you should
always do it via the "<TT>/etc/init.d/squid</TT> stop" command.
To reload the PID,
use: "<TT>/etc/init.d/squid</TT> restart" -- assuming that the
squid process is
already running. (sorry to digress from your main
problem).
</P>
<P>
I'm sorry if the level of detail is sketchy, but I
need more information
before I can begin to understand your problem in a
little more detail.
</P>
<P>
Kind Regards,
</P>
<P>
Thomas Adam
</P>
<!-- end 11 -->
<!-- *** BEGIN copyright *** -->
<hr>
<CENTER><SMALL><STRONG>
<h5>This page edited and maintained by the Editors of <I>Linux Gazette</I><br>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>
<br>Copyright &copy; 2002
<br>Copying license <A HREF="http://www.linuxgazette.com/copying.html">http://www.linuxgazette.com/copying.html</A>
<BR>Published in Issue 82 of <i>Linux Gazette</i>, September 2002</H5>
</STRONG></SMALL></CENTER>
<!-- *** END copyright *** -->
<HR>
<!--startcut ==========================================================-->
<CENTER>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_mail.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="http://www.linuxgazette.com/cgi-bin/talkback/all.py?site=LG&article=http://www.linuxgazette.com/issue82/lg_tips.html"><IMG ALT="[ Talkback ]" SRC="../gx/navbar/talkback.jpg" WIDTH="121" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../lg_faq.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="lg_answer.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 ============================================================-->