Linux-Setup Digest #413, Volume #20              Sat, 13 Jan 01 12:13:09 EST

Contents:
  Re: PATH statement - an FAQ? (Colin Watson)
  Re: debian dselect intimidation (Colin Watson)
  Re: getting modem to be... addendum ("Peter T. Breuer")
  Re: Help: suck; 400 file exists writing symlinking article file -- throttling 
("Peter T. Breuer")
  Kernel 2.4 PPP Support ("Costas Gavardinas")
  Re: Still looking: (Cathy Gramze)
  logrotate hangs! ("AL")
  Re: Mandrake 7.2 does not shut down properly (Buchan Milne)
  Re: Kernel 2.4 PPP Support (Ronald Benedik)
  Re: logrotate hangs! ("Peter T. Breuer")
  Re: debian dselect intimidation ("Peter T. Breuer")
  Re: mandrake linksys lne100tx (Edwin Johnson)
  samba + ipmasquerading (SeB)
  Re: logrotate hangs! (Scott Billings)
  Re: logrotate hangs! ("AL")
  Re: logrotate hangs! ("AL")
  Re: Help ! Router firewall with only one NIC (default)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (Colin Watson)
Subject: Re: PATH statement - an FAQ?
Date: 13 Jan 2001 14:04:54 GMT

Nicolas Rinaudo <[EMAIL PROTECTED]> wrote:
>To modify you PATH variable, provided you're running bash, you just need to
>type export PATH=$PATH:new_directory.
>eg: export PATH=$PATH:/usr/local/jdk1.3/bin
>The 'export' command is used to make PATH a system variable, not a shell
>variable.

Depends what you mean by a "system variable". In the Bourne shell and
derived shells like bash, just setting a variable only changes it in the
current process, that is, the current instance of the shell. When you
'export' a variable, you cause its value to be put into the environment
of any subprocesses (that is, programs launched from that instance of
the shell). Whether those processes pass it on to *their* subprocesses
is up to them, but only shells and security-conscious programs usually
bother trimming the environment.

The term "system variable" is a bit misleading, I think, as it implies
that the variable is set system-wide, rather than just in descendants of
shells where the variable has been exported.

>Note that you usually want to make those changes 'permanent'. To do that,
>edit your profile's script and put the command. There's two script where you
>can put that: .bashrc and .bash_profile. It's strongly recommanded to put it
>under .bash_profile, as .bashrc is parsed every time you start a new
>instance of bash, and the PATH variable will keep growing, while
>.bash_profile is only parsed once.

Beware that .bashrc tends not to be run when you start, say, an xterm,
unless you explicitly make it a login shell (see the man pages). The
exact files bash uses to start up are described in its man page, under
"INVOCATION".

I usually put something like '[ -f ~/.bashrc ] && . ~/.bashrc' (read
.bashrc if it exists) in my .bash_profile, and do all the real work in
.bashrc. In practice I don't normally have many deeply-nested shells, so
an expanding $PATH isn't worth worrying about.

-- 
Colin Watson                                     [[EMAIL PROTECTED]]
"... a good part of the remainder of my life was going to be
 spent in finding errors in my own programs." - Maurice Wilkes

------------------------------

From: [EMAIL PROTECTED] (Colin Watson)
Subject: Re: debian dselect intimidation
Date: 13 Jan 2001 14:09:45 GMT

Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>John Doner <[EMAIL PROTECTED]> wrote:
>> I wanted to install telnetd.  I ran dselect and picked
>> telnetd, whereupon it asked me for permission to install a
>> gazillion things, most of which seemed unrelated to telnetd.
>> I must be missing something.  What is going on here?
>
>Dselect has a separate agenda. It maintains its own lists of things
>that it is waiting for a chance to install.

It's quite simple: packages with priority 'standard' or higher. (In
fact, this is part of the definition of priority 'standard' in policy
section 2.2.) It only marks these as selected the first time you run it,
though; deselect them, try it again, and you'll only get asked about
necessary dependencies.

>Fortunately, it usually can't, because it needs local media.

dselect hasn't been limited to local media for a long time. These days
it usually uses apt as a back-end.

-- 
Colin Watson                                     [[EMAIL PROTECTED]]
"There is perhaps in every thing of any consequence, secret history,
 which it would be amusing to know, could we have it authentically
 communicated." - James Boswell

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.os.linux.suse
Subject: Re: getting modem to be... addendum
Date: Sat, 13 Jan 2001 09:04:05 +0100

In comp.os.linux.setup Patricia Flickner <[EMAIL PROTECTED]> wrote:
> Forgot to add -- using Suse 7.0 Professional edition

Add to what?

If you are talking about modems, read the modem HOWTO.

Peter

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,aus.computers.linux
Subject: Re: Help: suck; 400 file exists writing symlinking article file -- throttling
Date: Sat, 13 Jan 2001 09:13:25 +0100

In comp.os.linux.setup David. E. Goble <goble@gtech> wrote:
> On 11 Jan 2001 00:52:17 +1100, [EMAIL PROTECTED] (Nick Andrew) wrote:
>>goble@gtech (David. E. Goble) writes:
>>>On 8 Jan 2001 13:14:35 +1100, [EMAIL PROTECTED] (Nick Andrew) wrote:
>>>>>I am running redhat 6.2. I have a problem with suck.
>>>>>Reason: 400 File exists writing symlinking article file -- throttling
>>>OK so the problem is with innd. Can you expand on this...
>>As I said, the server is throttled. If you don't run the server, you
>>need to find whoever does, and get them to fix it. If you do run
>>the server, you should know what to do.
>>
> Well excuss me for trying to learn and get a server up and running.
> I did not know we had to know everything.
> Can a more enlighten person help me, thanks

You've already been helped to the max that anyone can. What is your
problem? Are the words too long? The server is throttled. Ask that it
be fixed. If it is your server, you fix it.

Peter

------------------------------

From: "Costas Gavardinas" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.os.linux.suse,comp.os.linux
Subject: Kernel 2.4 PPP Support
Date: Sat, 13 Jan 2001 17:04:18 +0200

I have installed and compiled the new 2.4 kernel. Although I selected ppp
support from the appropritate menus, I get an error: ppp support not
installed in kernel, or something similar. Is there something I am doing
wrong?? Thanks for any clues!
Costas



------------------------------

From: Cathy Gramze <[EMAIL PROTECTED]>
Subject: Re: Still looking:
Date: Sat, 13 Jan 2001 15:17:58 GMT

In article <[EMAIL PROTECTED]>, Steven Leuty <[EMAIL PROTECTED]> 
wrote:
> I still haven't found the answer I'm looking for.
> Again: I bought a U.S. Robotics PCI Fax Pro internal modem just so I
> could install RH 7.0 since I've read that Linux supports the modem. My
> computer came with a sinmodem which I quickly replaced with the above.
> Any way the modem works well with win me but is located on com port 5.
> My Linux doesn't read the modem what so ever. I've tried changing the
> modem to a lower port but nothing seems to work.
> again please help
> thanks.

This is just a stab in the dark, assuming you have done/will do all other things 
correctly (and I know nothing about modems in Linux, I have a cablemodem). 

Make sure the modem jumpers, if it has them, are set to the irq/com port you desire to 
use. Make sure nothing else is using it. If there are no jumpers, try moving the modem 
into another slot. Some odd motherboards out there at least used to assign irq by slot.

cathyy



------------------------------

From: "AL" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.misc
Subject: logrotate hangs!
Date: Sat, 13 Jan 2001 15:22:06 GMT

Hi-

"logrotate" is hanging on me.  I've run it in "verbose" mode and it gives me
the lines "reading config" for all that it is set up to rotate- and then
nothing else happens (according the the output from verbose mode.)  It does
peg the CPU though (which is how I figured out it is hanging.)

I removed all entries in /etc/logrotate.d/ in order to simply things.  I
also commented out all but the settings in /etc/logrotate.conf (commented
out the wtmp stuff in Red Hat's logrotate.conf.

I think whoever programmed this didn't do a good job of deciding what is
printed out when it's in "verbose" mode...

I think the problem is something other than the entries in /etc/logrotate.d/
and /etc/logrotate.conf as this utility was working fine until a few days
ago (and I haven't changed those settings...)  Anyone have an idea I can
chase after?  I'm out!

I'm using RedHat 6.2 with it's original logrotate-3.3.2-1 RPM.

Thanks for tips!

AL



------------------------------

Date: Sat, 13 Jan 2001 18:08:48 +0200
From: Buchan Milne <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake,comp.os.linux.misc
Subject: Re: Mandrake 7.2 does not shut down properly



Chris Menzel wrote:
[snip]


>
>
> The problem appears to be independent of the kernel.  The problem began
> with the 2.2.17 kernel that comes with Mandrake 7.2, but remained after I
> upgraded to the 2.4.0-ac6 kernel.
>

It might not be independant of the kernel, as something might have broken
between 2.2.16 and 2.2.17 (which could have made it into 2.4.x) You might want
to try a kernel from 7.1 (2.2.16)

Buchan



------------------------------

From: Ronald Benedik <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.os.linux.suse,comp.os.linux
Subject: Re: Kernel 2.4 PPP Support
Date: Sat, 13 Jan 2001 17:05:12 +0100



Costas Gavardinas wrote:
> 
> I have installed and compiled the new 2.4 kernel. Although I selected ppp
> support from the appropritate menus, I get an error: ppp support not
> installed in kernel, or something similar. Is there something I am doing
> wrong?? Thanks for any clues!
> Costas

Have you got an old pppd? Install a new version.

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: logrotate hangs!
Crossposted-To: comp.os.linux.admin,comp.os.linux.misc
Date: Sat, 13 Jan 2001 16:15:18 GMT

In comp.os.linux.misc AL <[EMAIL PROTECTED]> wrote:
> "logrotate" is hanging on me.  I've run it in "verbose" mode and it gives me

strace it.

Peter

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: debian dselect intimidation
Date: Sat, 13 Jan 2001 16:15:18 GMT

Colin Watson <[EMAIL PROTECTED]> wrote:
> dselect hasn't been limited to local media for a long time. These days
> it usually uses apt as a back-end.

oh. I guess I've never updated it then. It uses apt-get as a BACK end? What does 
apt-get
use? Oh .. dpkg. Yes.

Peter

------------------------------

From: [EMAIL PROTECTED] (Edwin Johnson)
Subject: Re: mandrake linksys lne100tx
Reply-To: [EMAIL PROTECTED]
Date: 13 Jan 2001 16:13:52 GMT

The following url gives the requirements for compiling the tulip.c, three of
which are pci-scan.c, pci-scan.h, and kern_compat.h. My system didn't have
pci-scan in the modules, so I had to compile it and place it in the modules.
If you put all three files in the same directory as tulip.c stuff it will
all compile. Then put the tulip.o and pci-scan.o in the modules directory as
specified. The url for this info is: 
        ftp://ftp.scyld.com/pub/network/tulip.html
        
...Edwin        

On Sat, 13 Jan 2001 08:09:35 -0000, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>On Wed, 10 Jan 2001 01:33:14 GMT, Scott Nolde <[EMAIL PROTECTED]>
wrote:
>>mike wrote:
>>> 
>>> I 'm trying to install linksys lne100tx nic on mandrake 7.2 linux system,
>>> I tried out looking at instructions on linksys page but I was unsuccesful
>>> compiling the tulip.c file. I would appriciate if anyone can send me
>>> information or documentation on this matter.
>>> mike
>>
>>you may need to insmod the pci-scan.o module before the tulip module is
>>accepted.
>
>       Using "modprobe" to load your modules rather than "insmod"      
>       should do this for you automagically...
>
>[deletia]
>
>       There is documentation on linksys.com regarding how to build
>       tulip.c. Why they couldn't just deliver a working Makefile is
>       somewhat of a mystery.
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~   Edwin Johnson ....... [EMAIL PROTECTED]  ~
~        http://www.shreve.net/~elj       ~
~                                         ~
~ "Once you have flown, you will walk the ~
~ earth with your eyes turned skyward,    ~
~ for there you have been, there you long ~
~ to return." -- da Vinci                 ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


------------------------------

From: SeB <[EMAIL PROTECTED]>
Subject: samba + ipmasquerading
Date: Sat, 13 Jan 2001 17:23:42 +0000


Hi !

I want to set up a linux box with 2 NICs : one for the cable-modem and one 
for the internal network

This box will run ip-masquerade and i want only the internal network to 
have access to a samba server on this box.

What rules do you recommend for ip-masq and what for the section interfaces 
in [global] of the smb.conf file, assuming my cable modem is on eth0 and my 
internal network is 192.168.0.0/24 on eth1 (the ip of this box is 
192.168.0.1)

Thanks !


------------------------------

From: Scott Billings <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: logrotate hangs!
Date: Sat, 13 Jan 2001 10:39:19 -0600

I had a problem similar to this, and wiping out my /var/log contents cured 
things..... Every now and then I get a warning message about some file not 
being present in there, but......

It's not a good idea to disable logrotate, since it compresses and stores 
your logfiles. Without that, they will grow unchecked.

If you were only vaugely aware that the /var/log directory existed to begin 
with, go ahead and delete everything inside of it, and it should cure your 
problem. Otherwise, find the logs you want to save, and then delete 
everything else.

-Scott-

> Hi-
> 
> "logrotate" is hanging on me.  I've run it in "verbose" mode and it gives
> me the lines "reading config" for all that it is set up to rotate- and
> then
> nothing else happens (according the the output from verbose mode.)  It
> does peg the CPU though (which is how I figured out it is hanging.)
> 
> I removed all entries in /etc/logrotate.d/ in order to simply things.  I
> also commented out all but the settings in /etc/logrotate.conf (commented
> out the wtmp stuff in Red Hat's logrotate.conf.
> 
> I think whoever programmed this didn't do a good job of deciding what is
> printed out when it's in "verbose" mode...
> 
> I think the problem is something other than the entries in
> /etc/logrotate.d/ and /etc/logrotate.conf as this utility was working fine
> until a few days
> ago (and I haven't changed those settings...)  Anyone have an idea I can
> chase after?  I'm out!
> 
> I'm using RedHat 6.2 with it's original logrotate-3.3.2-1 RPM.
> 
> Thanks for tips!
> 
> AL
> 
> 
> 


------------------------------

From: "AL" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.misc
Subject: Re: logrotate hangs!
Date: Sat, 13 Jan 2001 16:47:55 GMT

Cool- didn't know about strace...

I had had problem this this software called "junkbuster"- it created
millions (litterally I think) of files in /var/log/junkbuster/.  I removed
the junkbuster package, deleted all those log files and made sure the
logrotate entry for junkbuster was removed (which it is!)

Anyway, I just figured out that there's a /var/lib/logrotate.status file
which tells logrotate the status of the last time logrotate was run.
Apparently it was trying to do something to all those junkbuster files.

I deleted logrotate.status and now it doesn't hang!

Thanks for the heads up on strace...

AL


"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> In comp.os.linux.misc AL <[EMAIL PROTECTED]> wrote:
> > "logrotate" is hanging on me.  I've run it in "verbose" mode and it
gives me
>
> strace it.
>
> Peter



------------------------------

From: "AL" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.misc
Subject: Re: logrotate hangs!
Date: Sat, 13 Jan 2001 16:52:10 GMT

ps- I deleted those junkbuster files yesterday- the logrotate apparently
doesn't clean out logrotate.status on it's own...


"AL" <[EMAIL PROTECTED]> wrote in message
news:%E%76.46599$[EMAIL PROTECTED]...
> Cool- didn't know about strace...
>
> I had had problem this this software called "junkbuster"- it created
> millions (litterally I think) of files in /var/log/junkbuster/.  I removed
> the junkbuster package, deleted all those log files and made sure the
> logrotate entry for junkbuster was removed (which it is!)
>
> Anyway, I just figured out that there's a /var/lib/logrotate.status file
> which tells logrotate the status of the last time logrotate was run.
> Apparently it was trying to do something to all those junkbuster files.
>
> I deleted logrotate.status and now it doesn't hang!
>
> Thanks for the heads up on strace...
>
> AL
>
>
> "Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > In comp.os.linux.misc AL <[EMAIL PROTECTED]> wrote:
> > > "logrotate" is hanging on me.  I've run it in "verbose" mode and it
> gives me
> >
> > strace it.
> >
> > Peter
>
>



------------------------------

From: default <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.networking,comp.os.linux.security
Subject: Re: Help ! Router firewall with only one NIC
Date: Sat, 13 Jan 2001 10:48:45 -0600

I don't this will work at all.  For one thing, you would need two interfaces
on the gateway/firewall box, one to recieve and send on the "outside" network
and one to send and recieve on the "inside" network.  With only one card you
are either inside or outside, not both.  The interface can't, to the best of
my knowledge, perform a sort of context switch on each packet.  You would
either be inside, in which case you are cut off from the external network, or
outside, in which case you would be inaccessible to the internal hosts.

The other problem with this is that you are dumping raw pppoe traffic right
into your local network wire, which isn't really capable of handling it.  You
need to plug it into a host running pppoe so that it can translate the packets
into something that can be routed internally to your local hosts.

How expensive could it be to get one more NIC?

nag wrote:

> hi,
> I am trying to configure a linux box for masquerading/firewalling.
> the configuration is not the classical one and I would need some advises.
> now I could just buy a 2nd nic card, but I am curious and I would like to
> make it work that way.
>
> - adsl modem is connected to the hub via uplink
> - the linux box (myoldbox) is connected to the hub via eth0
> (debian stable 2.2.18pre21 running pppoe 2.6)
>     + the connection to my isp goes through the ppp interface ppp0
>     + eth0 is the only ethernet interface (1 nic)
> - other machines are connected to the hub (1 nic per machine)
>
> q1?  is this configuration as safe, efficient, reliable as having the
> gateway 'physically' routing to the private network (with 2 nics) ?
>
> and that is my current problem
> q2?  in this configuration, how do I configure the routes, translation and
> ipchains ?
>             the private network mask is 192.168.0.0
>             loopback interface is up
>             eth0 on myoldbox is up with address 192.168.0.1
>             eth0:0 on myoldbox is up with address 192.168.0.2
>                 ( I guess this alias interface is needed in that case for
> routing purpose, not sure ? )
>
> thanks for your help, any pointer appreciated,
> nag


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.setup.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Setup Digest
******************************

Reply via email to