Gustavo Guillermo Pérez | 4 Sep 21:18 2006

Saving System resources on PHP interfaces

Hello list, I made a 3 simple clean scripts to save system side
resources using client side resources (JavaScript). Hope 
helps someone. Sorry my bad english:

http://www.compunauta.com/forums/linux/programacion/java/gus_calendar_en.html
http://www.compunauta.com/forums/linux/programacion/java/gus_browser_en.html
http://www.compunauta.com/forums/linux/programacion/java/gus_query_string_en.html

:)
--

-- 
Gustavo Guillermo Pérez
Compunauta uLinux
www.compunauta.com
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Gustavo Guillermo Pérez | 4 Sep 22:00 2006

Problem with the list

The filter is dropping almost my all emails, I'm trying now removing the 
signature, but, let's see what happen, should the filter allow smpt 
connections from real domains of a suscribed email address? I'm not trying to 
send spam to the list, but I was sended 3 links to some scripts, that can be 
useful.

When we figth spammers with more complex filters and algorithms they lenarn as 
twice we improve, if we follow that automatic way to drop anything, probably 
we miss all of the emails, I guess this is the end of the age of electronic 
mail, it's being a nightmare on the whole world to receive and send emails 
without getting dropped cause a couple of stupid people.

Unless we start seriously using domain keys on every server, or figth with 
proper laws spammers.

No signature
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Luca Ferrari | 6 Sep 15:42 2006
Picon

syslog problem

Hi all,
a server of mine is having a strange behaviour: the syslogd daemon crashes 
after a while it has been started, and of course I cannot gain system 
information without it. I've tried to start the daemon manually with the -d 
option, and the only thing I see is a few lines like the following:
Calling select, active file descriptors (max 3): 3

Any idea or clue about how to understand what is happening?
Thanks,
Luca
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

terry white | 6 Sep 17:15 2006

Re: syslog problem

... ciao:

: on "9-6-2006" "Luca Ferrari" writ:
: the syslogd daemon crashes

   at one time i had a similar problem with klogd.  the first thing i did
was to determine "when" it 'had' stopped running.

   in your case, i think it important to discover if the daemon has
"been" stopped, or, as you say, "crashed".  i used cron to test for a pid
every minute.  in my case, i noticed a specific time when the failure
occurred.  that's a good thing to notice ...

--

-- 
... i'm a man, but i can change,
    if i have to , i guess ...

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Lars Solberg | 6 Sep 21:35 2006
Picon

Re: syslog problem

 Hello list

 It all started with that I noticed apache was starting and stopping
 very slow. I then started debugging it, first with -X for debug in
 apache bin but I didnt get any output from that so I tryed with the
 very usefull strace util. I noticed it got an hang when trying to read
 from /dev/random. Why apache whould read from this file when I shut it
 down I dont know.
 I then tried to cat /dev/random and found nothing! /dev/random was
 empty... I waited one minute and tried catting it again and found
 about 10 random chars..
 I then went off to google and found out that /dev/random can run empty
 if the kernel random entropy pool is empty, this is logic, I also
 found out that read access to /dev/random is locked as long as the
 entropy pool is empty, also logic.
 But the question is why is it soo slow? I have never had problem with
 this on any Linux/*nix servers before. And if I manage to empty
 /dev/random on another server it usually dont take more than a few
 seconds to fill it up again.

 Do any of you have any tips to make this process to fill up
 /dev/random goo any faster? Is it "bad" to make a symlink to
 /dev/urandom insteed?

 In front thanks
   Lars
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
(Continue reading)

Glynn Clements | 7 Sep 03:36 2006

Re: syslog problem


Lars Solberg wrote:

> It all started with that I noticed apache was starting and stopping
> very slow. I then started debugging it, first with -X for debug in
> apache bin but I didnt get any output from that so I tryed with the
> very usefull strace util. I noticed it got an hang when trying to read
> from /dev/random. Why apache whould read from this file when I shut it
> down I dont know.
> I then tried to cat /dev/random and found nothing! /dev/random was
> empty... I waited one minute and tried catting it again and found
> about 10 random chars..
> I then went off to google and found out that /dev/random can run empty
> if the kernel random entropy pool is empty, this is logic, I also
> found out that read access to /dev/random is locked as long as the
> entropy pool is empty, also logic.
> But the question is why is it soo slow? I have never had problem with
> this on any Linux/*nix servers before. And if I manage to empty
> /dev/random on another server it usually dont take more than a few
> seconds to fill it up again.

One thing which will make a big difference is if the system has a
dedicated RNG (/dev/hwrng, major 10, minor 183) such as that found in
the i810 or AMD 768.

In the absence of that, the system needs a reasonable source of
entropy. If the server is only lightly loaded, common sources of
entropy such as disk access won't produce data very quickly.

Also, older kernels overestimated the entropy of certain sources, so
(Continue reading)

Luca Ferrari | 7 Sep 16:40 2006
Picon

a little help on iptables

Hi all,
this is the situation: I've got a firewall double-homed, with a NIC assigned 
to a public IP and the other to the LAN network. Until now I've used the 
external NIC as default gateway, since my router has a public address too. 
Now I'd like to use another router on the lan as default, leaving untouched 
the external interface (since the firewall must be accessible from the 
outside world). So I've changed the default gw to the lan one, and it works, 
but I get the external ip unreachable, and I think it's because it does not 
know the gateway interface. So, how can I specify for the external interface 
the gateway to use? If I try to do it thru the route command it replies sayng 
that the network is unreachable. Any help?
Thanks,
Luca
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

André Serralheiro | 7 Sep 17:15 2006
Picon

Re: a little help on iptables

Hi Luca

It could be easier to give you a hand if you provides us with the
output of: ifconfig; route -n and iptables -L (and iptables -L -t nat)

you call always try to execute the following:
route add default gateway x.x.x.x netmask y.y.y.y ethX
for the default gateway and:
route add -net z.z.z.z netmask k.k.k.k dev ethY
for the other route

Hope it helps

Andre Serralheiro

On 9/7/06, Luca Ferrari <fluca1978 <at> infinito.it> wrote:
> Hi all,
> this is the situation: I've got a firewall double-homed, with a NIC assigned
> to a public IP and the other to the LAN network. Until now I've used the
> external NIC as default gateway, since my router has a public address too.
> Now I'd like to use another router on the lan as default, leaving untouched
> the external interface (since the firewall must be accessible from the
> outside world). So I've changed the default gw to the lan one, and it works,
> but I get the external ip unreachable, and I think it's because it does not
> know the gateway interface. So, how can I specify for the external interface
> the gateway to use? If I try to do it thru the route command it replies sayng
> that the network is unreachable. Any help?
> Thanks,
> Luca
> -
(Continue reading)

urgrue | 7 Sep 18:24 2006

Re: a little help on iptables

Its a little hard to understand what you want exactly. Why do you want
to keep both internet connections? Is it not possible to forward a port
from the new gateway to your firewall? Why must your firewall use a
different internet connection (ie why cant you connect the new
connection directly to your firewall)?

If you _really_ must have:
-LAN traffic use your firewall as the default gateway, which then
forwards the traffic to the new router
-Firewall use the old router for its own internet
Then your only option that I can think of is to use policy routing.
Basically on your firewall do something like:
ip rule add from x.x.x.x/z table 100
ip rule add to x.x.x.x/z table 100
ip route add x.x.x.x/z via i.i.i.i table 100
ip route add default via z.z.z.z table 100
Where:
x.x.x.x/z = your LAN
i.i.i.i = your firewall's LAN IP
z.z.z.z = your new router in the LAN

But your situation must be somewhat unusual if you really need to do this.

urgrue

Luca Ferrari wrote:
> Hi all,
> this is the situation: I've got a firewall double-homed, with a NIC assigned 
> to a public IP and the other to the LAN network. Until now I've used the 
> external NIC as default gateway, since my router has a public address too. 
(Continue reading)

Luca Ferrari | 15 Sep 17:42 2006
Picon

problem with NFS

Hi all,
I've got a suse linux server where I exported a root-created directory as 
follows:

server:~ # ls -ald /vol2/backup_opensco/
drwxr-xr-x  2 root root 48 Sep 15 17:23 /vol2/backup_opensco/
server:~ # cat /etc/exports
/vol2/backup_opensco 192.168.201.63(rw,sync)

and an old opensco server (192.168.201.63) that should be able to mount the 
exported directory. Now I execute the following command on the sco server:
# mount -f NFS 192.168.201.1:/vol2/backup_opensco /mnt
# mount
/ on /dev/root read/write on Fri Sep 15 15:04:32 2006
/stand on /dev/boot read only on Fri Sep 15 15:04:33 2006
/mnt on 192.168.201.1:/vol2/backup_opensco read/write on Fri Sep 15 17:36:17

Now the filesystem is mounted in read-write mode, and it belongs to root: 
# ls -ald /mnt
drwxr-xr-x   2 root     root          48 Sep 15 16:23 /mnt

but I cannot write to it!

# cd /mnt
# echo "ciao" > ciao.txt
ciao.txt: cannot create

Anyone can explain me why? I guess the NFS exporting is right, and also the 
mounting, but it looks like there's a problem with owner and group. Any idea?

(Continue reading)


Gmane