HP LaserJet P1006 / P1008 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
slackware 12.2 cannot print from commandline [solved]
Posted by: sycarion ()
Date: March 15, 2010 03:53PM

Compiled and Installed fontconfig per SlackBuild.

Downloaded and extracted foo2xqx
make
./getweb P1006
make install
make install-hotplug
make cups

No errors, printer seems okay.

Go into CUPS and add printer.
I am careful to use the foo2xqx driver and not the foo2zjs driver
Printer appears to be added

Run a print job which is a simple lp -d printer
CUPS sees the job as processing
After one hour, it says job completed successfully, but there is no printout.

There are no errors in the error log or access log.

Any ideas of what I missed? I probably forgot something really silly, so I am not offended by RTFM replies.



Edited 1 time(s). Last edit at 03/16/2010 10:23AM by rickrich.

Options: ReplyQuote
Re: slackware 12.2 cannot print from commandline
Posted by: rickrich ()
Date: March 15, 2010 04:10PM

$ cd foo2zjs
$ foo2xqx-wrapper testpage.ps >xxx
$ ls -l xxx
$ sudo cp xxx /dev/usb/lp0
What does that say?

Options: ReplyQuote
Re: slackware 12.2 cannot print from commandline
Posted by: sycarion ()
Date: March 15, 2010 05:04PM

At the end of it, I get /dev/usb/lp0: No such file or directory.

I was sure that I did the step to get the .dl and not the .img for the firmware.

I guess I didn't? What do you think?



Edited 1 time(s). Last edit at 03/15/2010 05:07PM by sycarion.

Options: ReplyQuote
UPDATE!
Posted by: sycarion ()
Date: March 15, 2010 06:03PM

Okay, uninstalled hplip.

Make uninstall
make clean

Rebuilt driver:

make
./getweb P1006
make install install-hotplug cups

* Powered down and up the printer.

usb_printerid /dev/usb/lp0

MFG:Hewlett-Packard;MDL:HP Laserjet P1006 (more)

Followed these steps:

$ cd foo2zjs
$ foo2xqx-wrapper testpage.ps >xxx
$ ls -l xxx
$ sudo cp xxx /dev/usb/lp0

Red Hat test page prints.

I have a program that uses lp to print the screen. When I use it, it just hangs.

lp -d printer file

Nothing happens, no printing, no anything.

Options: ReplyQuote
Re: slackware 12.2 cannot print from commandline
Posted by: rickrich ()
Date: March 15, 2010 06:49PM

Put the *Postscript* on the web for print screen.

Options: ReplyQuote
Re: slackware 12.2 cannot print from commandline
Posted by: sycarion ()
Date: March 16, 2010 12:59AM

So to print the contents of a window to the printer, I need to write a script that basically does something like this:

xwd -out /tmp/screen.wd
xpr -device ps -output /tmp/screen.ps /tmp/screen.wd
foo2xqx-wrapper screen.ps > screen.xqx
xqxdecode < screen.xqx
lpr -P raw screen.xqx

Is that right or am I missing something?

Options: ReplyQuote
Re: slackware 12.2 cannot print from commandline
Posted by: rickrich ()
Date: March 16, 2010 04:16AM

xwd -out /tmp/screen.wd
xpr -device ps -output /tmp/screen.ps /tmp/screen.wd
lpr /tmp/screen.ps

Options: ReplyQuote
Re: slackware 12.2 cannot print from commandline
Posted by: sycarion ()
Date: March 16, 2010 09:58AM

Of course! if it's postscript, no need to put it through foo2xqx before lpr.

Thanks!

Now I am off to write a script to replace lp. The rationale is that config files for this old COBOL program ask for a print command to use for print screens. As it is setup now, lp -d $Pconf (for name of printer) is essentially how it works.



Edited 1 time(s). Last edit at 03/16/2010 10:32AM by sycarion.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.