Re: Printing problems

2002-02-13 Thread Johannes Franken
On Mon, Feb 11, 2002 at 12:44:58PM -0600, Ernesto Gonzalez Gomez wrote:
> coping this file to /dev/lp0, it works, but when I use lpr with the same
> file, I have again the blank page at the end.

Could be a blank banner page.
Have you tried lpr -h ?

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: 486 SX

2002-02-13 Thread Johannes Franken
On Wed, Feb 13, 2002 at 06:16:18PM +, Gerard Robin wrote:
> but my CD-ROM drive is ignored by the bios of these machines
> and so I must install linux with diskets 1.44, but I have two
> questions: is it possible to do it ? 

Installing debian from floppy disks is no problem at all.

> And if it's possible how can I do this.

Get the 6 disk-images from your local debian mirror, e.g.
ftp://ftp.debian.org/pub/debian/dists/woody/main/disks-i386/current/images-1.44/*.bin

They are 1.4MB each and get burnt to disk by
cp file.bin /dev/fd0
or
dd if=file.bin of=/dev/fd0
or
using the dos/windows program rawrite.exe.

smack the one that got rescue.bin into drive A:, reboot, and there you go.

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: Browsing workgroup from command line

2002-02-13 Thread Johannes Franken
On Wed, Feb 13, 2002 at 01:39:09PM -0800, Patrick Kirk wrote:
> There is a printer I want to be able to print to and then able to offer it
> to the LAN through LMHOSTS.

Why use lmhosts? thats troubleware. 

> Interesting ports on  (192.168.0.254):
> 21/tcp openftp
> 23/tcp opentelnet
> 80/tcp openhttp
> 280/tcpopenhttp-mgmt
> 515/tcpopenprinter
> 631/tcpopencups
> 9100/tcp   openjetdirect
> What is actually need is the netbios name that this printer appears under.

None, for port 139 is not among.
I'd recommend you
- setup a windows machine (call it "printsrv") which can access the printer
  (eg. via LPR protocol on port 515)
- install the drivers for several OS', so clients can autoinstall
- share it's printer to the other clients. Thus it will be addressed 
  by as \\PRINTSRV\LASER1.
  
But this is not debian specific anyway.

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: Browsing workgroup from command line

2002-02-13 Thread Johannes Franken
On Wed, Feb 13, 2002 at 12:27:50PM -0800, Patrick Kirk wrote:
> I need to see the list of machines on a LAN that can be seen in Network
> Neighborhood ion the Windows boxes.

Check smbclient -N -L ip_adress_of_your_PDC

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: Installation Problem with Potato

2002-02-12 Thread Johannes Franken
On Tue, Feb 12, 2002 at 11:06:10AM -0500, Wayne Byarlay wrote:
> I am attempting to install Debian Linux Potato version via CD. [...]
> The cd spins up, but then it says, "Unable to mount the rescue floppy. [...]

> Obviously, the CD can be read, otherwise I wouldn't have been able to get
> this far. What could be my problem

Don't be too sure about that. it could be a media error, just in middle of the
kernel.tgz . Can you spot any syslog messages? have a cat on /var/log/messages,
dmesg and switch to the debugging console (on alt-f4 iirc).

It's easy to have the CD tested: switch to a shell console, cp /dev/cdrom
/dev/null and watch for error messages.  (you might have to replace /dev/cdrom
with /dev/hdc etc., respectively)

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



[jfranken@jfranken.de: Re: find]

2002-02-09 Thread Johannes Franken
Tom,

sorry for the typo. should be
echo echo -n \> \$1 > /tmp/truncate &&
find /var/log -type f -exec sh /tmp/truncate {} \;

another way to do it would be
find /var/log -type -f -exec cp /dev/null {} \;

HTH
- Forwarded message from Johannes Franken <[EMAIL PROTECTED]> -
Date: Sat, 9 Feb 2002 21:58:19 +0100
From: Johannes Franken <[EMAIL PROTECTED]>
To: Antonio Alberto Lobato <[EMAIL PROTECTED]>
Cc: debian-user@lists.debian.org
Subject: Re: find

> > > # find /var/log -type f -exec echo -n > {} \;
> > > Why find create a file called "{}", instead to erase files contents
> > Try find /var/log -type f -exec cp /tmp/blankfile {} \;
> But the files permissions/owner/group would be changed.

You're right. What about
echo echo -n \> \$1 /tmp/truncate &&
find /var/log -type f -exec sh /tmp/truncate {} \;

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: find

2002-02-09 Thread Johannes Franken
> > > # find /var/log -type f -exec echo -n > {} \;
> > > Why find create a file called "{}", instead to erase files contents
> > Try find /var/log -type f -exec cp /tmp/blankfile {} \;
> But the files permissions/owner/group would be changed.

You're right. What about
echo echo -n \> \$1 /tmp/truncate &&
find /var/log -type f -exec sh /tmp/truncate {} \;

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: Problem pinging gateway

2002-02-09 Thread Johannes Franken
On Sat, Feb 09, 2002 at 11:05:13AM -0800, Jon Hughes wrote:
> The linux side appears to recognize the NIC, assigns
> the IP and so forth. Netstat looks right. THe problem
> is I can't even ping the gateway. 

You might have a broken ipchains ruleset.
What do "ipchains -L -n" and "tcpdump -n & ping 192.168.0.1" say?

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: find

2002-02-09 Thread Johannes Franken
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

That's proper behavior.

The "> {}" goes to your shell (creating that file), so the arguments
left for find are: "/var/log -type f -exec echo -n"
(yet another implementation of the NOP command).

Try 
echo >/tmp/blankfile && find /var/log -type f -exec cp /tmp/blankfile {} \;
instead.

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



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

2002-02-09 Thread Johannes Franken
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*

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: perl script to replace html login?

2002-02-08 Thread Johannes Franken
On Fri, Feb 08, 2002 at 02:01:30PM +0200, Martin Fluch wrote:
> Is there a easy way to make a perl skript to send an http post request

apt-get install libwww-perl
man 1p POST

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/



Re: aacraid.o

2002-02-07 Thread Johannes Franken
On Thu, Feb 07, 2002 at 05:55:20PM +0200, cut utter wrote:
> I am having diffuculty loading a `aacraid' module into the kernel.
> The module is compiled with 2.2.16-22 (RH7) kernel. [...]
> boot diskette with kernel 2.2.14. [...] "unresoved symbol(s)".

That's because your kernel version differs from what the module expected.

You should either
- build a new kernel containing aacraid.o or
- put debian-kernel 2.2.16 on your bootdisk (e.g. using zdisk)

-- 
Johannes Franken
 
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/