PDA

View Full Version : Printing to windows computer


mars_hall
2004-04-01, 08:23 PM CST
I am having problems printing to a HP LaseJet 1000 connected to a Windows XP Pro computer. I have the printer set up in the Gnome Printer configuration tool, and I have followed the instructions given. I keep getting this error:
I [01/Apr/2004:22:17:07 -0500] Adding start banner page "none" to job 5.
I [01/Apr/2004:22:17:07 -0500] Adding end banner page "none" to job 5.
I [01/Apr/2004:22:17:07 -0500] Job 5 queued on 'printer' by 'root'.
I [01/Apr/2004:22:17:07 -0500] Started filter /usr/lib/cups/filter/texttops (PID 5798) for job 5.
I [01/Apr/2004:22:17:07 -0500] Started filter /usr/lib/cups/filter/pstops (PID 5799) for job 5.
I [01/Apr/2004:22:17:07 -0500] Started filter /usr/lib/cups/filter/foomatic-rip (PID 5800) for job 5.
I [01/Apr/2004:22:17:07 -0500] Started backend /usr/lib/cups/backend/smb (PID 5801) for job 5.
E [01/Apr/2004:22:17:07 -0500] PID 5800 stopped with status 1!

What do I need to do?

Jman
2004-04-01, 09:25 PM CST
You can see the printer from Fedora, right? Try running smbclient -L <WinXPMachine> in a terminal and see if your printer appears.

I wish that error message would be more verbose.

mars_hall
2004-04-02, 07:35 AM CST
Here is what I get when I run the command you provided:
# smbclient -L mars-hall
Password:
Domain=[MARS-HALL] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
Aud-Vid (E) Disk
E$ Disk Default share
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
SharedDocs Disk
Printer3 Printer Acrobat PDFWriter
Printer4 Printer Acrobat Distiller
Printer2 Printer hp LaserJet 1000
ADMIN$ Disk Remote Admin
C$ Disk Default share
Printer Printer hp LaserJet 1000 DOS
Domain=[MARS-HALL] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------


Marshall

Jman
2004-04-02, 09:43 PM CST
It appears that something is wrong with the samba setup, as it only quit when the smb backend started.

What share did you specify when setting it up? The printer named Printer on mars-hall has DOS on the end of it. DOS driver maybe? Try running the config tool again, editing the printer, queue type tab. Check that the share box reads something like //mars-hall/Printer2

mars_hall
2004-04-02, 09:48 PM CST
That was the one that I selected going through the printer configuration utility on linux. I showed up just like when you set up a networked printer from windows. What is confusing me is that I am set up as a workgroup, and it seems that Linux thinks my XP box is in a domain "mars-hall" which is the name of my other computer. I have double checked the indentification of my windows box and it shows it is in the workgroup "WORKGROUP"

Jman
2004-04-02, 10:17 PM CST
I think the domain is equivalent to the Windows computer name. Confusing I know.

We need debugging info. Edit /etc/foomatic/filter.conf. Uncomment debug and change to 1, so that line looks like debug: 1 Now /tmp/foomatic-rip.log will have some detailed output. Try your test again and have a look at the log.

mars_hall
2004-04-02, 10:27 PM CST
Okay did that removed and re-installed printer and checked the log. Here it is:
foomatic-rip version $Revision: 3.43.2.2 $ running...
called with arguments: '7', 'root', 'testprint.ps', '1', 'cpi=12 lpi=7 page-bottom=86 page-left=57 page-right=57 page-top=72 scaling=100 wrap'
Parsing PPD file ...
*cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
Added option ColorSpace
Added option PageSize
Added option PageRegion
Added option ImageableArea
Added option PaperDimension
Added option InputSlot
Added option MediaType
Added option Duplex
Added option Resolution
Added option ColorMode
Added option Copies
Added option PrinterType
Added option ICM
Added option Intent
Added option Nup
Added option Font

Parameter Summary
-----------------

Spooler: cups
Printer: printer2
PPD file: /etc/cups/ppd/printer2.ppd
Printer model: HP LaserJet 1000 Foomatic/foo2zjs (recommended)
Options: cpi=12 lpi=7 page-bottom=86 page-left=57 page-right=57 page-top=72 scaling=100 wrap
Job title: testprint.ps
File(s) to be printed:
<STDIN>

Pondering option 'cpi=12'
Unknown option cpi=12.
Pondering option 'lpi=7'
Unknown option lpi=7.
Pondering option 'page-bottom=86'
Unknown option page-bottom=86.
Pondering option 'page-left=57'
Unknown option page-left=57.
Pondering option 'page-right=57'
Unknown option page-right=57.
Pondering option 'page-top=72'
Unknown option page-top=72.
Pondering option 'scaling=100'
Unknown option scaling=100.
Pondering option 'wrap'
Unknown boolean option "wrap".

================================================

File: <STDIN>

================================================

Reading PostScript input ...
--> This document is DSC-conforming!

-----------
Found: %%BeginProlog
Found: %%EndProlog

-----------
Found: %%BeginSetup
Inserting PostScript code for CUPS' page accounting
Found: %%BeginFeature: *PageRegion Letter
Option: PageRegion=Letter --> Option will be set by PostScript interpreter
Found: %% FoomaticRIPOptionSetting: PageSize=Letter
Option: PageSize=Letter --> Setting option
Found: %%BeginFeature: *InputSlot Auto
Option: InputSlot=Auto --> Setting option
Found: %% FoomaticRIPOptionSetting: InputSlot=Auto
Option: InputSlot=Auto --> Setting option
Found: %%BeginFeature: *MediaType Standard
Option: MediaType=Standard --> Setting option
Found: %% FoomaticRIPOptionSetting: MediaType=Standard
Option: MediaType=Standard --> Setting option
Found: %%BeginFeature: *Nup 1-up
Option: Nup=1-up --> Setting option
Found: %% FoomaticRIPOptionSetting: Nup=1-up
Option: Nup=1-up --> Setting option
Found: %%BeginFeature: *Duplex Off
Option: Duplex=Off --> Setting option
Found: %% FoomaticRIPOptionSetting: Duplex=Off
Option: Duplex=Off --> Setting option
Found: %%BeginFeature: *Copies 1
Option: Copies=1 --> Setting option
Found: %% FoomaticRIPOptionSetting: Copies=1
Option: Copies=1 --> Setting option
Found: %%BeginFeature: *Intent Perceptual
Option: Intent=Perceptual --> Setting option
Found: %% FoomaticRIPOptionSetting: Intent=Perceptual
Option: Intent=Perceptual --> Setting option
Found: %%EndSetup

-----------
New page: 1 1
Inserting option code into "PageSetup" section.
No page header or page header not DSC-conforming
Stopping search for page header options
Found:
pageHeight sub % Move down...
--> Output goes directly to the renderer now.


Starting renderer
JCL: <job data>

renderer PID kid4=4050
renderer command: foo2zjs-wrapper -P -r600x600 -p1 -s7 -m1 -d1 -n1 -I0
sh: line 1: foo2zjs-wrapper: command not found
tee: standard output: Broken pipe

Closing renderer
tee: write error
renderer return value: 127
renderer received signal: 127
tail process done writing data to STDOUT
KID4 exited with status 0
KID4 finished
KID3 exited with status 1
Renderer exit stat: 1
Process dying with "The renderer command line returned an unrecognized error code 127.", exit stat: 1
The renderer command line returned an unrecognized error code 127.
Renderer process finished
Killing process 4049 (KID3)
Process dying with "Error closing renderer", exit stat: 1

Jman
2004-04-02, 11:04 PM CST
This is your problem:
Originally posted by mars_hall
sh: line 1: foo2zjs-wrapper: command not found

The filter to get the data to your printer is not installed. Download it from this site (http://foo2zjs.rkkda.com/) (thanks Google), extract the archive, and follow the install instructions.

I can't find an rpm package for this, so it looks like you will have to make install.

mars_hall
2004-04-03, 03:40 PM CST
RESOLVED!!!!
Thank you VERY much. Sorry you had to do my leg work for me.
I was starting to think it was something to do with the beta of service pack 2 I had installed, and then removed from my XP box. Then I checked from one of my other windows computers and I was able to print from there. I had read in the driver "Notes" that the firmware needed to be update to connect directly to my Linux (C2T2) box, but felt sure it should be able to print through the network.
Thanks again, Jman
Marshall

Jman
2004-04-07, 06:16 PM CDT
No problem.

Marked as resolved.