[K12OSN]Centos+USB+local printer... and sharing it

Rob Owens rob.owens at biochemfluidics.com
Thu Jun 12 11:03:09 UTC 2008


mumbler9 wrote:
> Here's the current stage... the dhcpd.conf file is working, it is 
> assigning it an IP (and it is PCE boot)
> 
>     host ws099 {
>     hardware ethernet 00:30:18:a6:97:a9;
>     fixed-address 192.168.0.99;
>     filename      "/lts/pxe/pxelinux.0";
>     }
> 
> In lts.conf I have the terminal stated like this:
> 
> [00:30:18:a6:97:a9]
> PRINTER_0_DEVICE        =/dev/usb/lp0
> PRINTER_0_TYPE          = U
> MODULE_01          = usblp
> 
I'm pretty sure you don't need to specify MODULE_01 if you're using LTSP 
4.2 (included in K12LTSP 5.0EL).  I don't think it hurts anything, but 
you might want to take it out and see what happens.  Everything else 
looks good.

> In CUPS I added it like this, choosing HP and Laserjet 1200:
> 
> socket://192.168.0.99:9100
> 
> CUPS shows it as started, and it looks all happy:
> 
> Jun 12 00:00:11 ws099 lp_server: Started with: -n 9100 -w -d /dev/usb/lp0
> Jun 12 00:00:11 ws099 last message repeated 8 times
> Jun 12 00:00:11 ws099 init: Id "p0" respawning too fast: disabled for 5 
> minutes
> Jun 12 00:02:08 bofh2 kernel: ppdev: user-space parallel port driver
> Jun 12 00:05:12 ws099 lp_server: Started with: -n 9100 -w -d /dev/usb/lp0
> Jun 12 00:05:32 ws099 ltspinfod: Connection from 192.168.0.254 port 40283
> Jun 12 00:06:31 ws099 ltspinfod: Connection from 192.168.0.254 port 40319
> Jun 12 00:12:38 ws099 lp_server: Started with: -n 9100 -w -d /dev/usb/lp0
> 
> CUPS gives an error of:
> "/usr/lib/cups/backend/socket failed"
> 
> and the printer goes into:
> Printer State: stopped, accepting jobs, published.
> 
> While it is in this stopped state, lpstat -l -a shows this:
> lpstat -l -a
> HP accepting requests since Thu 12 Jun 2008 12:13:54 AM CDT
> 
I'm using local printers in K12LTSP 5.0EL and my configuration is the 
same as yours except that I use etherboot instead of PXE, and I assigned 
my printer using the hostname (which I have a DNS record for) instead of 
IP address.  But the way you're doing it looks like it should work.

-Rob
********************************************************

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If you are not the addressee, any disclosure, reproduction,
copying, distribution, or other dissemination or use of this transmission in
error please notify the sender immediately and then delete this e-mail.
E-mail transmission cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted lost, destroyed, arrive late or
incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard copy
version.

********************************************************





More information about the K12OSN mailing list