Re: Need help setting up parallel printer

2001-01-09 Thread D-Man
On Tue, Jan 09, 2001 at 08:47:22PM -0500, David Shepherd wrote:
| 'modprobe lp' gives me
|   modprobe: Can't locate module lp
| 
| This is/was a stock debian kernel from an official CD.
| 
| Anything else I can try, or do I have to recompile the kernel (I've never
| done it before).
| Can I somehow grab the stock kernel from a distribution mirror?
| 
| Please excuse my lack of kernel knowledge - I'm learning fast
| 
| Dave
| 

Compiling the kernel isn't hard.  I did it several times (before I
studied and understood how to configure modules) with older RH
systems.  Debian provides a more convenient way to build it into a
package.  I haven't done that yet, the stock one seems to have all I
need (with appropriate module configuration).

Don't be afraid to try stuff.  Just make sure you can still use your
old kernel if you make a mistake.

-D


PS.  basically :  (but read the How-To anyways)

make menuconfig
make
make deps
make install
make modules
make modules_install

# reconfigure lilo
# reboot with new kernel



Re: Need help setting up parallel printer

2001-01-09 Thread mikepolniak
On Tue, Jan 09, 2001 at 08:56:30PM -0500, David B. Harris wrote:
> To quote "David Shepherd" <[EMAIL PROTECTED]>,
> # 'modprobe lp' gives me
> # modprobe: Can't locate module lp
> # 
> # This is/was a stock debian kernel from an official CD.
> # 
> # Anything else I can try, or do I have to recompile the kernel (I've
> never
> # done it before).
> # Can I somehow grab the stock kernel from a distribution mirror?
> # 
> # Please excuse my lack of kernel knowledge - I'm learning fast
> 
> Well, your best bet would be to compile your own kernel. Many times. Or,
> at least until you get it the way you want it ;) The knowledge gained
> will be useful whenever you're having a problem of this nature.
> Explaining how to compile your own kernel is beyond the scope of this
> email, but many guides and tutorials exists, like the one I mentioned in
> my previous email.
> 
You can compile the kernel the debian way with kernel-package which
automates the compile steps.Look at the manual make-kpkg.
You'll want to set CONFIG_PRINTER=m to create the lp.o module when you 
config 
the kernel.
When checking for modules run modprobe -l to check the modules on your
system.And look at the config file for your kernel in /boot. 



Re: Need help setting up parallel printer

2001-01-09 Thread David B . Harris
To quote "David Shepherd" <[EMAIL PROTECTED]>,
# 'modprobe lp' gives me
#   modprobe: Can't locate module lp
# 
# This is/was a stock debian kernel from an official CD.
# 
# Anything else I can try, or do I have to recompile the kernel (I've
never
# done it before).
# Can I somehow grab the stock kernel from a distribution mirror?
# 
# Please excuse my lack of kernel knowledge - I'm learning fast

Well, your best bet would be to compile your own kernel. Many times. Or,
at least until you get it the way you want it ;) The knowledge gained
will be useful whenever you're having a problem of this nature.
Explaining how to compile your own kernel is beyond the scope of this
email, but many guides and tutorials exists, like the one I mentioned in
my previous email.

However, I'm sure there are pre-packaged kernels somewhere, if you want
to go that route :) Dunno where, though.

Dave



RE: Need help setting up parallel printer

2001-01-09 Thread David Shepherd
'modprobe lp' gives me
modprobe: Can't locate module lp

This is/was a stock debian kernel from an official CD.

Anything else I can try, or do I have to recompile the kernel (I've never
done it before).
Can I somehow grab the stock kernel from a distribution mirror?

Please excuse my lack of kernel knowledge - I'm learning fast

Dave

-Original Message-
From: David B. Harris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 January 2001 2:44 p.m.
To: David Shepherd
Cc: [EMAIL PROTECTED]; debian-user@lists.debian.org
Subject: Re: Need help setting up parallel printer


To quote "David Shepherd" <[EMAIL PROTECTED]>,
# Typing 'insmod lp'

'insmod' takes a real file as an argument; for instance, 'insmod
/lib/modules/2.4.0c/kernel/drivers/block/paride/paride.o'. 'modprobe',
however, doesn't need the whole file, just the name(in my example,
"paride").

# gives me
#   insmod: lp: no module by that name found
#
# typing find / -name 'lp.o'
# finds nothing

Now, that's a bit worrying. Try 'modprobe lp'. If it gives you a similar
error(ie: not found), then the module is not available. That could mean
that the functionality provided by lp.o is compiled directly into the
kernel, or that it actually hasn't been built at all. If you're using a
stock Debian kernel, I seriously doubt it wasn't included in some
form(either as a module, lp.o, or built directly into the kernel).

If it turns out that it's neither built into the kernel nor available
anywhere as a module, you'll been to compile your own kernel. Read the
Kernel HOWTO at http://linuxdocs.org .

Dave



Re: Need help setting up parallel printer

2001-01-09 Thread Matthew Dalton
David Shepherd wrote:
> 
> Typing 'insmod lp'
> gives me
> insmod: lp: no module by that name found
> 
> typing find / -name 'lp.o'
> finds nothing
> 
> How should I install this module?

It sounds like you've recompiled your kernel at some stage, since you
don't have all of the modules compiled for you (like in the generic
debian kernel).

Not to worry.

Recompile your kernel, choosing parport and lp as modules. Don't forget
to make modules and make modules_install after building the kernel.

You probably don't even have to compile the kernel, just do the make
modules etc. after running make [x|menu]config and selecting the
required modules. Lastly, run 'depmod -a' and then 'insmod lp' should
work.



Re: Need help setting up parallel printer

2001-01-09 Thread David B . Harris
To quote "David Shepherd" <[EMAIL PROTECTED]>,
# Typing 'insmod lp'

'insmod' takes a real file as an argument; for instance, 'insmod 
/lib/modules/2.4.0c/kernel/drivers/block/paride/paride.o'. 'modprobe',
however, doesn't need the whole file, just the name(in my example,
"paride").

# gives me
#   insmod: lp: no module by that name found
# 
# typing find / -name 'lp.o'
# finds nothing

Now, that's a bit worrying. Try 'modprobe lp'. If it gives you a similar
error(ie: not found), then the module is not available. That could mean
that the functionality provided by lp.o is compiled directly into the
kernel, or that it actually hasn't been built at all. If you're using a
stock Debian kernel, I seriously doubt it wasn't included in some
form(either as a module, lp.o, or built directly into the kernel).

If it turns out that it's neither built into the kernel nor available
anywhere as a module, you'll been to compile your own kernel. Read the
Kernel HOWTO at http://linuxdocs.org .

Dave



RE: Need help setting up parallel printer

2001-01-09 Thread David Shepherd
Typing 'insmod lp'
gives me
insmod: lp: no module by that name found

typing find / -name 'lp.o'
finds nothing

How should I install this module?

Dave

-Original Message-
From: Matthew Dalton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 January 2001 2:08 p.m.
To: David Shepherd
Cc: debian-user@lists.debian.org
Subject: Re: Need help setting up parallel printer


David Shepherd wrote:
>
> I've just switched from Redhat 6.2 to Debian 2.2r2 and can't get my
> DeskJet695C working.
> Everything worked fine under RH using printtool to set it up.

[cut]

> When I try
>
> echo "this is a test" > /dev/lp0
>
> I get
>
> su: /dev/lp0: No such device


Have you loaded the lp.o module?

The parport module, IIRC, is a core parallel port driver, which is
depended on by the plip and lp modules for the PLIP interface and
printers respectively.

What happens if you do an 'insmod lp' as root, and then try the echo
test above?

HTH
Matthew


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




Re: Need help setting up parallel printer

2001-01-09 Thread Matthew Dalton
David Shepherd wrote:
> 
> I've just switched from Redhat 6.2 to Debian 2.2r2 and can't get my
> DeskJet695C working.
> Everything worked fine under RH using printtool to set it up.

[cut]

> When I try
> 
> echo "this is a test" > /dev/lp0
> 
> I get
> 
> su: /dev/lp0: No such device


Have you loaded the lp.o module?

The parport module, IIRC, is a core parallel port driver, which is
depended on by the plip and lp modules for the PLIP interface and
printers respectively.

What happens if you do an 'insmod lp' as root, and then try the echo
test above?

HTH
Matthew