Re: Maildir performance & mutt (was Re: Someone tell me the secret of mutt)

2002-04-12 Thread Pedro Zorzenon Neto
On Fri, Apr 12, 2002 at 12:25:00AM -0700, Karsten M. Self wrote:
> Is there any way to speed this up?

Hi Karsten,

  I had problems in mailboxes with more then 5000 messages. They
were very slow to open.

  I solved it with a procmail rule that timestamps it...

  Now I have monthly taged mailboxes. (Spool-2002-01, Spool-2002-02...)

  I know it is not what you asked, but it can solve your problem.

  Regards,
Pedro

Sample procmail file:
--- begin ---
PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:.
MAILDIR=$HOME/Mail  # You'd better make sure it exists
DEFAULT=$MAILDIR/Spool-`date +%Y-%m`
LOGFILE=$MAILDIR/from-`date +%Y-%m`
LOCKFILE=$HOME/.lockmail

:0:
* ^X-Mailing-List:.*debian-user\@
deb-user-`date +%Y-%m`

:0:
* ^X-Mailing-List:.*some-mailing-list\@
low-trafic-mailing-list-`date +%Y`

:0:
* ^X-Mailing-List:.*other-mailing-list\@
very-high-trafic-mailing-list-`date +%Y-%U`
--- end ---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Routing question, mixed real+private IP network, ARP

2002-03-28 Thread Pedro Zorzenon Neto
Hi folks,

   I have the following network:

192.168.1.2 +--- eth1 192.168.1.1
|eth0 aaa.bbb.ccc.130 +--- real IP network
192.168.1.3 +   Debian Router |
| +-aaa.bbb.ccc.129
192.168.1.4 + |
| +-aaa.bbb.ccc.132
... +
|
aaa.bbb.ccc.131 +

How can I configure "Debian router" to forward packets that come from eth0
to aaa.bbb.ccc.131 to eth1?

If I do:
   route add -host aaa.bbb.ccc.131 dev eth1
Then the Debian Router is able to ping aaa.bbb.ccc.131
Put real IP's are not able to do it. I just see incoming ARP to
aaa.bbb.ccc.131 on eth0, but these ARPs are not forwarded to eth1
neither answered by Debian router.

ipchains forward rules are MASQ for 192.168.x.y and ACCEPT for others.

I think I should use some "IP tunneling" option, but I have never used
and I don't know where to start from. I also don't know if this is
called "IP tunneling".

Any hints?

  Thanks in advance,
  Pedro

-- 
  .''`.   Pedro Zorzenon Neto <[EMAIL PROTECTED]>
 : :'  :  Debian GNU/Linux | GNU/Hurd: <http://www.debian.org>
 `. `'`   Debian BR: <http://debian-br.cipsga.org.br>
   `- Be Happy! Be FREE!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Squid - Had to "recreate" the cache...

2002-03-12 Thread Pedro Zorzenon Neto
On Sat, Feb 09, 2002 at 06:23:09PM +0100, Johannes Franken wrote:
> On Sat, Feb 09, 2002 at 02:36:23PM -0200, Pedro Zorzenon Neto wrote:
> >Did squid cache got corrupted? why? what happened?
> 
> check /var/log/squid/squid.out*

I found the following error in squid's logs:

FATAL: You've run out of swap file numbers.

The solution is at the FAQ:

http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#ss11.26



Serial V.35 card

2002-03-05 Thread Pedro Zorzenon Neto
Hi folks,

   I have a NEC Pasolink network equipment and would like to connect it
with a Debian computer to use it as a router, instead of buying a Cisco
router.

   I have no previous experience about it. I know the Pasolink has a
V.35 syncronous serial port.

   Which hardware do I need to connect it to the computer?
   Does potato has the kernel modules to work with this hardware?
   Which protocol does the V.35 uses to encapsulate IP?

 Thanks in advance,
 Pedro



Re: find

2002-02-09 Thread Pedro Zorzenon Neto
On Sat, Feb 09, 2002 at 02:48:36PM -0200, Antonio Alberto Lobato wrote:
> 
>  # find /var/log -type f -exec echo -n > {} \;
> 
>  Why find create a file called "{}", instead to erase files contents?

Oi!

   From the find manpage:

   -exec command ;
  Execute command; true if 0 status is returned.  All
  following arguments to find are taken to  be  argu­
  ments  to  the command until an argument consisting
  of `;' is encountered.  The string `{}' is replaced
  by the current file name being processed everywhere
  it occurs in the arguments to the command, not just
  in arguments where it is alone, as in some versions
  of find.  Both of these constructions might need to
  be  escaped  (with a `\') or quoted to protect them
  from expansion by the shell.  The command  is  exe­
  cuted in the starting directory.

   Try replacing the ">" with "\>"

   Ate mais,
 Pedro



Squid - Had to "recreate" the cache...

2002-02-09 Thread Pedro Zorzenon Neto
Hi Folks,

   It installed Squid in a server three months ago and I had no problem
with it since the instalation date.

   But yesterday, it stopped working well. It only sent to clients the
first 6910 bytes of the page and then stopped. Every computer in the
localnet using it as a proxy, only could browse pages with less then
this size...

   I tried /etc/init.d/squid restart

   I tried /etc/init.d/squid stop; /etc/init.d/squid start

   They did not work...

   After some hours, I could make it work again doing:

   /etc/init.d/squid stop
   rm -rf /var/spool/squid
   squid -z
   /etc/init.d/squid start

   Did squid cache got corrupted? why? what happened?

   Did anyone had the same problem?

Thanks in advance,
Pedro



Re: Printing to HP Laserjet 1100

2001-12-13 Thread Pedro Zorzenon Neto
On Thu, Dec 13, 2001 at 04:37:01PM -0200, Michel Loos wrote:
> On Thu, 2001-12-13 at 10:31, Pedro Zorzenon Neto wrote:
> > Hi all,
> > 
> >I have a HP Laserjet 1100 printer. It works ok with magicfilter.
> >In the Debian machine with magicprinter, it prints about 2 pages
> > per minute.
> >Using the driver that came with it, in a machine with other Pseudo-OS
> > that I wont say the name here :-) it prints 8 pages per minute.
> > 
> >I am using the same 600x600 resolution in both tests.
> >
> 
> What are you printing (and how did you configure your printer)? 
> actual transformation from file format to printer language is done by a
> large variety of programs depending on the format of your file and the
> way you want to use your printer

Hi Michael,

 I am printing postscript files. Used 'magicfilterconfig' to configure it.
 Just changed the resolution from 300 to 600 in /etc/magicfilter/...

 I had another off-list answer to this question. Ben told me to check
 http://www.linuxprinting.org/show_printer.cgi?recnum=62816

 and I discovered that this printer is very slow with ghostscript
versions prior to 5.50

 "potato" gs is 5.10, so I changed this printer to another machine that
is "woody" (gs 5.50) and it worked very fast.

 I think gs 5.10 uses PCL4 to send data and gs 5.50 uses PCL5, that
supports some compactation while sending the data.

> >It seems that the faster driver implements some data compression and
> > data is sent quickly to the parallel port. (not sure about this)
> 
> Or that it does not need to be transformed (much more probable)

the time spent was not during the conversion. It was the transmition to
the printer.

  Thanks to everyone,
  Pedro

> 
> Michel.
>  
> >Is there any configuration in the parallel port that could make it
> > faster? (the bios parallel port configuration are the same in both tests)
> > 
> >Does anyone know something about this??? Any hints?
> > 
> >  Thanks,
> >  Pedro



Printing to HP Laserjet 1100

2001-12-13 Thread Pedro Zorzenon Neto
Hi all,

   I have a HP Laserjet 1100 printer. It works ok with magicfilter.
   In the Debian machine with magicprinter, it prints about 2 pages
per minute.
   Using the driver that came with it, in a machine with other Pseudo-OS
that I wont say the name here :-) it prints 8 pages per minute.

   I am using the same 600x600 resolution in both tests.
   
   It seems that the faster driver implements some data compression and
data is sent quickly to the parallel port. (not sure about this)

   Is there any configuration in the parallel port that could make it
faster? (the bios parallel port configuration are the same in both tests)

   Does anyone know something about this??? Any hints?

 Thanks,
 Pedro



Re: Serial i386 - high priority IRQ & disable FIFO

2001-09-05 Thread Pedro Zorzenon Neto
On Thu, Aug 16, 2001 at 09:31:43AM -0300, Pedro Zorzenon Neto wrote:
> Hi all,
> 
>   I need to use a special device conected to the other end in a hardware 
> installed this way:
>   PC - modem - telephoneline - modem - device.
> 
>   So.. what is the problem?
>   The device sends "messages" to the PC of 1 to 4 bytes. and the PC answer 
> these messages as a slave.
> 
>   This messages must be answered by the PC aplication as soon as possible, so 
> I used irqtune to give the highest priority to the serial port.
>   Sometimes (about once each 50 messages) that fails (takes about 8 seconds 
> to aplication receive the message) and I think that it could be the PC UART 
> FIFO.
>   Do you have any hint about disabling the FIFO? Is there any FIFO size 
> parameter that specifies how many bytes should FIFO have before IRQ is set?
> 
>   I already monitored the serial wires at the pc port and the delay is inside 
> the PC. The PC UART is 16550A. This PC has woody distribution installed.
> 
> Thanks in advance,
> Pedro

I discovered how to do it.

The best I could do to improve serial port performance was:

set it's irq priority to highest with irqtune (package hwtools).
# irqtune -s 4#example with /dev/ttyS0 io=0x3f8 irq=4

use program set_serial with low_latency mode. Add low_latency in your serial 
port line in /etc/serial.conf:
/dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 115200 spd_normal skip_test 
low_latency

use a C program to set trigger parameter in UART to 1 byte. that means that the 
irq will be set with just one bit in the uart fifo.
in this case you must use root permitions, ioperm and outb.
you should send 0x01 to io BASE_ADDRESS+2

Hope that helps someone else,
   Pedro



xserver for intel 82815

2001-08-29 Thread Pedro Zorzenon Neto
Please CC your reply to me, I'm not a subscriber of this list.

Hi all,

  I am experiencing problems with a video board that shares VideoRam with Ram.

  The computer is an HP Vectra VL400, P3-800.
  It has on-board 82815 Intel video.

  Which xserver does this chip requires?
  
  The computer has Debian "Potato" installed. Can I use this video board
with Xserver3.6?

  Has anybody successfully configured it to show 1024x768 16bpp?

  "SuperProbe", "xviddetect" and "lspci -v" do not give me any hints... they
say unknown device/unknown manufacturer.

  In the computer BIOS I have no option to config this video/ram sharing 
memory...

  Thanks in advance,
Pedro



Serial i386 - high priority IRQ & disable FIFO

2001-08-16 Thread Pedro Zorzenon Neto
Please CC your reply to me, I'm not a subscriber of this list.

Hi all,

  I need to use a special device conected to the other end in a hardware 
installed this way:
  PC - modem - telephoneline - modem - device.

  So.. what is the problem?
  The device sends "messages" to the PC of 1 to 4 bytes. and the PC answer 
these messages as a slave.

  This messages must be answered by the PC aplication as soon as possible, so I 
used irqtune to give the highest priority to the serial port.
  Sometimes (about once each 50 messages) that fails (takes about 8 seconds to 
aplication receive the message) and I think that it could be the PC UART FIFO.
  Do you have any hint about disabling the FIFO? Is there any FIFO size 
parameter that specifies how many bytes should FIFO have before IRQ is set?

  I already monitored the serial wires at the pc port and the delay is inside 
the PC. The PC UART is 16550A. This PC has woody distribution installed.

Thanks in advance,
Pedro



Re: mini HOWTO: Installing Debian on 4 MB RAM

2001-07-25 Thread Pedro Zorzenon Neto
Hi Jens,

   Congratulations! You did a good work!

On Wed, Jul 25, 2001 at 10:56:40AM +0200, Jens Scheidtmann wrote:
> * a LapLink cable (at least this howto assumes it, but you sure can
>   use other means to connect the two computers).
   I'd put a link or a apendix in the how-to about the cable:
   http://www.linuxdoc.org/HOWTO/PLIP-Install-HOWTO-7.html   
   Then the user will have the option to build the cable by him/herself.

   Also try to write this how-to in sgml format. Then you can export it's 
source to html, tex, ps, pdf, txt...

> This document is copyright (C) 2001 Jens Scheidtmann.
> You may freely distribute and alter this document under the
> GNU Public License 2 or above.
   Check http://www.fsf.org/licenses/licenses.html#FDL
   It is GNU FDL (Free Documentation License), which is more suitable for 
how-tos.

 Regards,
 Pedro



References to the mailing list archives

2001-07-07 Thread Pedro Zorzenon Neto
Please CC copies of replies to me as I'm not a subscriber of debian-user.

Hi,

   I'd like to make references in some changelog to a message in debian mailing 
list archives.

   In the header of the message I have:
   
X-Mailing-List:  archive/latest/91560

   Can I put this as reference?
   How can I get the message in the archive with this reference?

   Will this reference change when some "list-rotate" occours (monthly archive, 
as example)?

   Is this the best way of putting references to debian mail lists?

  Thanks
  Pedro



Re: HELO command in exim

2001-07-04 Thread Pedro Zorzenon Neto
Hi Tony,

 That solved the problem.

  Thanks
   Pedro

On Wed, Jul 04, 2001 at 05:54:50PM +0200, Tony Crawford wrote:
> Pedro Zorzenon Neto wrote (on 4 Jul 2001, at 9:45):
> 
> >  How can I tell exim to send my full domain in the HELO
> > instead of my hostname? 
> 
> 
> primary_hostname *option*
> -
> 
> Option: primary_hostname
> Type: string
> Default: "see below"
> 
> This specifies the name of the current host. This is used in the 
> HELO command for outgoing SMTP messages, and as the default for 
> `qualify_domain'.  If it is not set, Exim calls `uname()' to 
> find it. If this fails, Exim panics and dies.  If the name 
> returned by `uname()' contains only one component, Exim passes 
> it to `gethostbyname()' in order to obtain the fully qualified 
> version.



HELO command in exim

2001-07-04 Thread Pedro Zorzenon Neto
Please CC copies of replies to me as I'm not a subscriber of this list

Hi all,

 I have some problem with exim.
 When it contacts foreign hosts to send my mail, it starts with:

   HELO milho (milho is my hostname)

 But some servers reject the messages because they check the HELO command. That 
is wrong, but I can't do anything about other servers.
 How can I tell exim to send my full domain in the HELO instead of my hostname? 

Thanks in advance,
Pedro

more info: running Debian 2.2R3 - exim 3.12-10.1



Re: Video shutdown instead of xscreensaver

2001-06-16 Thread Pedro Zorzenon Neto
On Sat, Jun 16, 2001 at 06:55:43AM -0400, [EMAIL PROTECTED] wrote:
...
> I put this line in .xinitrc
> 
> xset dpms 300 360 480
...
> Sometimes it doesn't work and I have to go to another terminal and then back
> to terminal 7 where X is.  I don't know what that is.  I think I started
> having this problem after the upgrade in woody to X 4.0.x, but I'm not sure. 
> Usually the screen will go into standby and then suspend and then off.
> 
> If anyone knows how to do this at console, I'd like to know how.  A blank
> screen is not sufficient for me, because at night there is still light on
> the screen and I really want to not use the energy when I don't need to.
> 
> Anita
>

Anita,

  That is what I wanted. I'll put xset in a global xinit so all the users will 
have this feature enabled.

  Now I'll have to discover how to do it in a console, or enable 'gdm' or 'xdm' 
so the computer starts X and that will probably work when nobody is logged.

  What you told about go to another terminal and back to X... why dont you try:
  xset dpms 300 360 480
  xset +dpms
  Maybe it works.

 Thanks for everyone,

 Pedro



Re: Video shutdown instead of xscreensaver

2001-06-15 Thread Pedro Zorzenon Neto
Please CC reply copies as I'm not a subscriber of this list

I forgot to tell it in details. I have WindowMaker installed. No gnome panel or 
other panel installed. Just default windowmaker menus. There are several 
computers I'd like to enable this. Distribution is Debian testing in some and 
stable in others.
I'd like to enable this power saving feature in text-terminals and in X11 and 
it sould be enabled to every user and even when no one is loged in.
Any How-to or hints?

  Thanks,
  Pedro

On Fri, Jun 15, 2001 at 06:58:47AM -0700, D. Hoyem wrote:
> Pedro,
>   If you go to System --> Gnome Control Panel you will
> see screensaver.  In there you can setup what you want
> to do.  
> --- Pedro Zorzenon Neto <[EMAIL PROTECTED]> wrote:
> > Please CC reply copies as I'm not a subscriber of
> > this list.
> > 
> > Hi,
> > 
> >When I don't move the mouse or type for some
> > minutes, xscreensaver runs.
> >How can I change this? I'd like that my monitor
> > turns off or enter in sleep mode instead of
> > xscreensaver. Is there some How-To where I can find
> > some hints?



Video shutdown instead of xscreensaver

2001-06-15 Thread Pedro Zorzenon Neto
Please CC reply copies as I'm not a subscriber of this list.

Hi,

   When I don't move the mouse or type for some minutes, xscreensaver runs.
   How can I change this? I'd like that my monitor turns off or enter in sleep 
mode instead of xscreensaver. Is there some How-To where I can find some hints?

   Thanks in advance,

 Pedro



Image Aquisition Boards / Cameras

2001-02-20 Thread Pedro Zorzenon Neto
Hi all,

  Please cc a copy of the replies because I am not a subscriber of this list

I need to capture a image with a CCD camera in a i386 PC computer.

Does anybody know a manufacturer that I can buy the camera and aquisition board 
to use in my Debian GNU/Linux?

   Thanks a lot
   Pedro



clock with wrong time

2001-02-20 Thread Pedro Zorzenon Neto
Hi all,

  Please cc a copy of your replies as I am not a subscriber of this list.

  I have something strange happening in my computer, take a look:
[EMAIL PROTECTED]:~$ date
ter fev 20 10:37:24 BRT 2001
[EMAIL PROTECTED]:~$ date --rfc-822
Tue, 20 Feb 2001 10:37:25 -0300
[EMAIL PROTECTED]:~$ telnet localhost 13
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Tue Feb 20 11:37:27 2001
Connection closed by foreign host.

  What is going on??? This happens every year when the clock changes from 
"saving time" BRST (-0200) to BRT (-0300)
  If I reboot the computer, I'm quite sure it will be OK after the reboot. But 
I can't reboot this computer.
  What do I need to do? Do I need to restart some services??? The zic - 
zonetime should do it automatically???

 Thanks in advance
 Pedro

-

  More usefull information:
  The machine is running Debian/GNU Linux 2.2r2
  NTP server 4.0.99g-2--   I already tried a /etc/init.d/ntp restart

I had created a file (Brazil.zic) with

# Brazil Sao Paulo timezone information
# Rule  NAMEFROMTO  TYPEIN  ON  AT  SAVELETTER/S
- similar lines from 1994 to 1999 --- cutted here to save mail space
RuleBrazil  2000only-   Oct 08  0:001:00S
RuleBrazil  2001only-   Feb 18  0:000   -
# Zone  NAMEGMTOFF  RULES/SAVE  FORMAT  [UNTIL]
ZoneAmerica/Sao_Paulo   -3:00   Brazil  BR%sT

and executed: # zic Brazil.zic

[EMAIL PROTECTED]:~# /usr/sbin/tzconfig 
Your current time zone is set to America/Sao_Paulo

Everithing seems to be right...



configuring timezones

2000-11-08 Thread Pedro Zorzenon Neto
Hi, all

  In my country (Brazil), each year there is a diferent day for changing the
clock to daylight saving time.

  This year, the clock changed in the wrong day from BRT (GMT - 3hs) to BRST 
(GMT - 2hs).

  How can I set the date that system will change my clock?

 Thanks
 Pedro