LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-20-2006, 01:29 AM   #1
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 15
Shared printer stops printing in the middle of jobs


I thought this should go in the networking forum because the problem seems to be network or Samba related. Here is the deal. I have an HP PSC 1300 series printer that connected via usb to my Ubuntu server. I installed the server version of Ubuntu, so I do not have a GUI. I followed the steps below to set up the printer.

HP printer setup to share a printer on an ubuntu server with Windows
clients.

install hplip
http://hpinkjet.sourceforge.net/install.php
$ sudo apt-get install build-essential
$ sudo apt-get install python2.4-dev python2.4-qt3 libcupsys2-dev
libsnmp5-dev libjpeg62-dev lsb libtool automake libusb-dev cupsys gs
$ tar xvfz hplipX.X.X.tar.gz
$ cd hplipX.X.X
$ ./configure --prefix=/usr
$ make
$ sudo make install
$ sudo /etc/init.d/hplip restart
$ sudo /etc/init.d/cupsys restart
$ sudo hp-setup

install samba
$ sudo apt-get install samba smbclient
$ sudo /etc/samba/smbpasswd -a user_name

in /etc/samba/smb.conf

[global]
security = user
username map = /etc/samba/smbusers
invalid users = # no invalid users
load printers = yes
printing = cups
printcap name = cups

[homes]
comment = Home Directories
browsable = yes
writable = yes
create mask = 0700
directory mask = 0700

[printers]
comment = All Printers
path = /var/spool/samba
browsable = yes
public = no
writable = no
printable = yes
create mode = 0700

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browsable = yes
public = no
read only = yes
write list = root

$ sudo mkdir /etc/samba/drivers
$ sudo mkdir /var/spool/samba
$ sudo chmod 777 /var/spool/samba
$ sudo /etc/init.d/samba restart

copy to /usr/share/cups/drivers (or the cups data directory)
ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll

$ sudo cupsaddsmb -a -v

This all works fine. I can connect to the printer from my Windows XP clients, and I can send print jobs to the printer. When printing a test page (or any other print job for that matter) from a Windows client, the printer prints about half of it and then errors out. All the lights on the printer start flashing and the printer stop printing. If I use lp, lpr, lpq, lpadmin all work locally on the Ubuntu server, and printing works perfectly when the print job originates from the server. Here is the cups error_log for a test page that was sent to the server from a Windows XP client.

D [19/Mar/2006:20:19:21 -0800] AcceptClient: 4 from localhost:631.
D [19/Mar/2006:20:19:21 -0800] ReadClient: 4 POST / HTTP/1.1
D [19/Mar/2006:20:19:21 -0800] ProcessIPPRequest: 4 status_code=0
D [19/Mar/2006:20:19:21 -0800] ReadClient: 4 POST / HTTP/1.1
D [19/Mar/2006:20:19:21 -0800] ProcessIPPRequest: 4 status_code=0
D [19/Mar/2006:20:19:21 -0800] CloseClient: 4
D [19/Mar/2006:20:19:21 -0800] AcceptClient: 4 from localhost:631.
D [19/Mar/2006:20:19:21 -0800] ReadClient: 4 POST /printers/psc_1300 HTTP/1.1
D [19/Mar/2006:20:19:21 -0800] print_job: auto-typing file...
D [19/Mar/2006:20:19:21 -0800] print_job: request file type is application/postscript.
D [19/Mar/2006:20:19:21 -0800] check_quotas: requesting-user-name = 'Robert Frey'
D [19/Mar/2006:20:19:21 -0800] print_job: requesting-user-name = 'Robert Frey'
I [19/Mar/2006:20:19:21 -0800] Adding start banner page "none" to job 11.
I [19/Mar/2006:20:19:21 -0800] Adding end banner page "none" to job 11.
I [19/Mar/2006:20:19:21 -0800] Job 11 queued on 'psc_1300' by 'Robert Frey'.
D [19/Mar/2006:20:19:21 -0800] Job 11 hold_until = 0
D [19/Mar/2006:20:19:21 -0800] StartJob(11, 0x8096948)
D [19/Mar/2006:20:19:21 -0800] StartJob() id = 11, file = 0/1
D [19/Mar/2006:20:19:21 -0800] job-sheets=none,none
D [19/Mar/2006:20:19:21 -0800] banner_page = 0
D [19/Mar/2006:20:19:21 -0800] StartJob: argv = "psc_1300","11","Robert Frey","smbprn.00000032 Test Page","1","","/var/spool/cups/d00011-001"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[2]="USER=root"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[3]="CHARSET=utf-8"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[4]="LANG=en_US"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[5]="TZ=US/Pacific"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[6]="PPD=/etc/cups/ppd/psc_1300.ppd"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[11]="DEVICE_URI=hp:/usb/psc_1300_series?serial=MY4B5D91BQ9F"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[12]="PRINTER=psc_1300"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[15]="CUPS_SERVER=localhost"
D [19/Mar/2006:20:19:21 -0800] StartJob: envp[16]="IPP_PORT=631"
D [19/Mar/2006:20:19:21 -0800] StartJob: statusfds = [ 5 7 ]
D [19/Mar/2006:20:19:21 -0800] StartJob: filterfds[1] = [ 8 -1 ]
D [19/Mar/2006:20:19:21 -0800] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [19/Mar/2006:20:19:21 -0800] StartJob: filterfds[0] = [ 9 10 ]
D [19/Mar/2006:20:19:21 -0800] start_process("/usr/lib/cups/filter/pstops", 0xbf8c8340, 0xbf8c78b8, 8, 10, 7)
I [19/Mar/2006:20:19:21 -0800] Started filter /usr/lib/cups/filter/pstops (PID 14325) for job 11.
D [19/Mar/2006:20:19:21 -0800] StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
D [19/Mar/2006:20:19:21 -0800] StartJob: filterfds[1] = [ 8 11 ]
D [19/Mar/2006:20:19:21 -0800] start_process("/usr/lib/cups/filter/foomatic-rip", 0xbf8c8340, 0xbf8c78b8, 9, 11, 7)
I [19/Mar/2006:20:19:21 -0800] Started filter /usr/lib/cups/filter/foomatic-rip (PID 14326) for job 11.
D [19/Mar/2006:20:19:21 -0800] StartJob: backend = "/usr/lib/cups/backend/hp"
D [19/Mar/2006:20:19:21 -0800] StartJob: filterfds[0] = [ -1 9 ]
D [19/Mar/2006:20:19:21 -0800] start_process("/usr/lib/cups/backend/hp", 0xbf8c8340, 0xbf8c78b8, 8, 9, 7)
I [19/Mar/2006:20:19:21 -0800] Started backend /usr/lib/cups/backend/hp (PID 14327) for job 11.
D [19/Mar/2006:20:19:21 -0800] ProcessIPPRequest: 4 status_code=0
D [19/Mar/2006:20:19:21 -0800] [Job 11] perl: warning: Setting locale failed.
D [19/Mar/2006:20:19:21 -0800] [Job 11] perl: warning: Please check that your locale settings:
D [19/Mar/2006:20:19:21 -0800] [Job 11] LANGUAGE = (unset),
D [19/Mar/2006:20:19:21 -0800] [Job 11] LC_ALL = (unset),
D [19/Mar/2006:20:19:21 -0800] [Job 11] LANG = "en_US"
D [19/Mar/2006:20:19:21 -0800] [Job 11] are supported and installed on your system.
D [19/Mar/2006:20:19:21 -0800] [Job 11] perl: warning: Falling back to the standard locale ("C").
D [19/Mar/2006:20:19:21 -0800] CloseClient: 4
D [19/Mar/2006:20:19:21 -0800] [Job 11] Page = 612x792; 18,36 to 594,783
D [19/Mar/2006:20:19:21 -0800] [Job 11] slowcollate=0, slowduplex=0, sloworder=0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%Title: Test Page
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%Creator: PScript5.dll Version 5.2
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%CreationDate: 3/19/2006 20:19:12
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%For: Robert Frey
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BoundingBox: (atend)
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%Pages: (atend)
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%Orientation: Portrait
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%PageOrder: Special
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%DocumentNeededResources: (atend)
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%DocumentSuppliedResources: (atend)
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%DocumentData: Clean7Bit
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%TargetDevice: (psc 1300 series) (3010.000) 550
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%LanguageLevel: 3
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndComments
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginDefaults
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%PageBoundingBox: 18 36 594 783
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%ViewingOrientation: 1 0 0 1
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndDefaults
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginProlog
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginResource: file Pscript_WinNT_ErrorHandler 5.0 0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginResource: file Pscript_FatalError 5.0 0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginResource: file Pscript_Win_Basic 5.0 0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginResource: file Pscript_Win_Utils_L2 5.0 0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndProlog
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginSetup
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginNonPPDFeature: JobTimeout 0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndNonPPDFeature
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginNonPPDFeature: WaitTimeout 300
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndNonPPDFeature
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginFeature: *PrintoutMode Normal
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %% FoomaticRIPOptionSetting: PrintoutMode=Normal
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndFeature
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginFeature: *Quality FromPrintoutMode
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndFeature
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginFeature: *PageSize Letter
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %% FoomaticRIPOptionSetting: PageSize=Letter
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndFeature
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginFeature: *Resolution 600dpi
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndFeature
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndSetup
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%Page: 1 1
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%Page: 1 1
D [19/Mar/2006:20:19:21 -0800] [Job 11] pw = 576.0, pl = 747.0
D [19/Mar/2006:20:19:21 -0800] [Job 11] PageLeft = 18.0, PageRight = 594.0
D [19/Mar/2006:20:19:21 -0800] [Job 11] PageTop = 783.0, PageBottom = 36.0
D [19/Mar/2006:20:19:21 -0800] [Job 11] PageWidth = 612.0, PageLength = 792.0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%PageBoundingBox: 18 36 594 783
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndPageComments
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginPageSetup
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndPageSetup
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginResource: file Pscript_Win_GdiObject 5.0 0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginResource: file Pscript_Win_GdiObject_L3 5.0 0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginResource: file Pscript_Text 5.0 0
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:21 -0800] [Job 11] 0 %%BeginResource: file Pscript_Encoding256 5.0 0
D [19/Mar/2006:20:19:22 -0800] ReadClient: 6 POST / HTTP/1.1
D [19/Mar/2006:20:19:22 -0800] ProcessIPPRequest: 6 status_code=1
D [19/Mar/2006:20:19:22 -0800] ReadClient: 6 POST / HTTP/1.1
D [19/Mar/2006:20:19:22 -0800] ProcessIPPRequest: 6 status_code=1
D [19/Mar/2006:20:19:22 -0800] [Job 11] foomatic-rip version $Revision: 3.43.2.15 $ running...
D [19/Mar/2006:20:19:22 -0800] [Job 11] Parsing PPD file ...
D [19/Mar/2006:20:19:22 -0800] [Job 11] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option ColorSpace
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option Resolution
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option PageSize
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option PageRegion
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option Model
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option PrintoutMode
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option ImageableArea
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option PaperDimension
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option Quality
D [19/Mar/2006:20:19:22 -0800] [Job 11] Added option Font
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] Parameter Summary
D [19/Mar/2006:20:19:22 -0800] [Job 11] -----------------
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] Spooler: cups
D [19/Mar/2006:20:19:22 -0800] [Job 11] Printer: psc_1300
D [19/Mar/2006:20:19:22 -0800] [Job 11] PPD file: /etc/cups/ppd/psc_1300.ppd
D [19/Mar/2006:20:19:22 -0800] [Job 11] Printer model: HP PSC 1300 Foomatic/hpijs (recommended)
D [19/Mar/2006:20:19:22 -0800] [Job 11] Job title: smbprn.00000032 Test Page
D [19/Mar/2006:20:19:22 -0800] [Job 11] File(s) to be printed:
D [19/Mar/2006:20:19:22 -0800] [Job 11] <STDIN>
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] GhostScript extra search path ('GS_LIB'): /usr/share/cups/fonts
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] ================================================
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] File: <STDIN>
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] ================================================
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] Reading PostScript input ...
D [19/Mar/2006:20:19:22 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:22 -0800] [Job 11] 0 %%IncludeResource: font Times-Roman
D [19/Mar/2006:20:19:22 -0800] [Job 11] 0 %%BeginResource: file Pscript_Win_Euro_L2 5.0 0
D [19/Mar/2006:20:19:22 -0800] [Job 11] --> This document is DSC-conforming!
D [19/Mar/2006:20:19:22 -0800] [Job 11] Job claims to be DSC-conforming, but "%%BeginProlog" was missing before first line with another "%%Begin..." comment (is this a TeX/LaTeX/dvips-generated PostScript file?). Assuming start of "Prolog" here.
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] -----------
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginProlog
D [19/Mar/2006:20:19:22 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:22 -0800] [Job 11] 0 %%BeginResource: file Pscript_T42Hdr 5.0 0
D [19/Mar/2006:20:19:22 -0800] [Job 11] 0 %%EndResource
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%EndProlog
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] -----------
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginSetup
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginFeature: *PrintoutMode Normal
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: PrintoutMode=Normal --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: PrintoutMode=Normal --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginFeature: *Quality FromPrintoutMode
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: Quality=FromPrintoutMode --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: Quality=FromPrintoutMode --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginFeature: *PageSize Letter
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: PageSize=Letter --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %% FoomaticRIPOptionSetting: PageSize=Letter
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: PageSize=Letter --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginFeature: *PrintoutMode Normal
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: PrintoutMode=Normal --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: PrintoutMode=Normal --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginFeature: *Quality FromPrintoutMode
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: Quality=FromPrintoutMode --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: Quality=FromPrintoutMode --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginFeature: *PageSize Letter
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: PageSize=Letter --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %% FoomaticRIPOptionSetting: PageSize=Letter
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: PageSize=Letter --> Setting option
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginFeature: *Resolution 600dpi
D [19/Mar/2006:20:19:22 -0800] [Job 11] Option: Resolution=600dpi --> Correcting numerical/string option to Resolution= (Command line argument)
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%EndSetup
D [19/Mar/2006:20:19:22 -0800] [Job 11] Inserting PostScript code for CUPS' page accounting
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] -----------
D [19/Mar/2006:20:19:22 -0800] [Job 11] New page: 1 1
D [19/Mar/2006:20:19:22 -0800] [Job 11] Inserting option code into "PageSetup" section.
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%BeginPageSetup
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found: %%EndPageSetup
D [19/Mar/2006:20:19:22 -0800] [Job 11] End of page header
D [19/Mar/2006:20:19:22 -0800] [Job 11] Stopping search for page header options
D [19/Mar/2006:20:19:22 -0800] [Job 11] Found:
D [19/Mar/2006:20:19:22 -0800] [Job 11] 1 0.723 0 1 scol O N 824 569 M 825 569 I 820 569 I 794 661 I 798 660 I 824 569 I C
D [19/Mar/2006:20:19:22 -0800] [Job 11] --> Output goes directly to the renderer now.
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] Starting renderer
D [19/Mar/2006:20:19:22 -0800] [Job 11] JCL: <job data>
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] renderer PID kid4=14341
D [19/Mar/2006:20:19:22 -0800] [Job 11] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="deskjet 3600" -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=1 -dIjsUseOutputFD -sOutputFile=- -
D [19/Mar/2006:20:19:22 -0800] [Job 11] 0 %%PageTrailer
D [19/Mar/2006:20:19:22 -0800] [Job 11] 0 %%Trailer
D [19/Mar/2006:20:19:22 -0800] [Job 11] Saw Trailer!
D [19/Mar/2006:20:19:22 -0800] [Job 11] Saw EOF!
D [19/Mar/2006:20:19:22 -0800] [Job 11]
D [19/Mar/2006:20:19:22 -0800] [Job 11] Closing renderer
D [19/Mar/2006:20:19:54 -0800] [Job 11] KID3 exited with status 0
D [19/Mar/2006:20:19:54 -0800] [Job 11] tail process done writing data to STDOUT
D [19/Mar/2006:20:19:54 -0800] [Job 11] KID4 finished
D [19/Mar/2006:20:19:54 -0800] [Job 11] KID4 exited with status 0
D [19/Mar/2006:20:19:54 -0800] [Job 11] Renderer exit stat: 0
D [19/Mar/2006:20:19:54 -0800] [Job 11] KID3 finished
D [19/Mar/2006:20:19:54 -0800] [Job 11] Renderer process finished
D [19/Mar/2006:20:19:54 -0800] [Job 11]
D [19/Mar/2006:20:19:54 -0800] [Job 11] Closing foomatic-rip.
D [19/Mar/2006:20:20:10 -0800] ReadClient: 6 POST / HTTP/1.1
D [19/Mar/2006:20:20:10 -0800] ProcessIPPRequest: 6 status_code=1
D [19/Mar/2006:20:20:10 -0800] UpdateJob: job 11, file 0 is complete.
D [19/Mar/2006:20:20:10 -0800] CancelJob: id = 11
D [19/Mar/2006:20:20:10 -0800] StopJob: id = 11, force = 0
D [19/Mar/2006:20:20:10 -0800] StopJob: printer state is 3
D [19/Mar/2006:20:20:10 -0800] ReadClient: 6 POST / HTTP/1.1
D [19/Mar/2006:20:20:10 -0800] ProcessIPPRequest: 6 status_code=1

All I want to do is be able to print from my Windows XP clients. If you need any other information, let me know and I will post it.

Thanks in advance.

Robert.

Last edited by rfrey74; 03-20-2006 at 01:33 AM.
 
Old 03-20-2006, 12:12 PM   #2
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
Just wanted to add that the printer works perfectly when a print job is sent from a Linux client. Therefore the problem I am having is limited to print jobs sent from Windows XP clients.
 
Old 03-20-2006, 12:30 PM   #3
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
You're using the cups drivers for Windows, correct?

I had a similar problem; sometimes there are multiple drivers for a single printer. I had to change mine around a few times. Sometimes the printer bombed in the middle of a job, sometimes right at the end. The HPLIP driver worked for me, but the HPIJS didn't.
 
Old 03-20-2006, 12:34 PM   #4
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
FYI, I have also uncommented the lines in /etc/cups/mime.types and /etc/cups/mime.convs that start with application/octet-stream and then restarted cupsd, and this did not solve the problem either.
 
Old 03-20-2006, 12:36 PM   #5
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
I have tryed both HPIJS and HPLIP, and HPLIP is the only one that actually got the printer to do anything. Of course, HPIJS is part of the HPLIP install, so I do have them both.
 
Old 03-20-2006, 12:41 PM   #6
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Okay.

Try deleting all the printers from CUPS, then delete ALL the drivers. Get the HPLIP package and try it again, see what happens. You might also want to redo the 'cupsaddsmb' step, too, after you delete the drivers and re-install the HPLIP, as it looks like your Windows computers possibly got ahold of the wrong PPD.

Also, check and make sure your Winders computers got all the drivers. cupsaddsmb always bombed on me for whatever reason. Never could figure it out, but adding the printer(s) manually works just fine.
 
Old 03-21-2006, 12:37 AM   #7
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
OK, I tried what you said but it did not solve the problem. I'm thinking about redownloading the hplip tar and trying again. I used the same tar that I originally downloaded this time. Anyway, the files available for my Windows clients lie in the /etc/samba/drivers/W32X86/3/ directory. The contents of that directory are

ps5ui.dll
psc_1300.ppd
pscript5.dll
pscript.hlp
pscript.ntf

As far as I can tell, that is the correct ppd file. I don't know. I'm getting rather frustrated. I'll try a freshly downloaded hplip.0.9.9.tar.gz and see if that makes a difference.

If anyone else has any advice on this issue, please don't be shy.

Thanks in advance.

Robert.
 
Old 03-21-2006, 01:37 AM   #8
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
OK, even a freshly downloaded hplip0.9.9.tar.gz did not fix the problem. Its only an issue when sending a print job from a Windows XP client. I even tried redownloading and useing fresh pscript files for Windows XP. So at this point I am out of ideas.

Anyone else have any ideas?
 
Old 03-21-2006, 07:07 AM   #9
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Yeah, search for the actual CUPS drivers, not the Adobe drivers. They're CUPS 5, I think, and they work well for me.

http://public.planetmirror.com/pub/cups/windows/

Grab the 5.0rc3 files there, see if it makes any difference. I read in my Samba 3 manual that the Adobe PS drivers have been known to cause issues and the such sometimes.
 
Old 03-21-2006, 03:08 PM   #10
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
OK, I downloaded and installed the drivers. I copied the cups5.hlp cupsdrv5.dll and the cupsui5.dll files to the /usr/shares/cups/drivers directory. I performed a /etc/init.d/cupsys restart just in case. I performed a sudo cupsaddsmb -a -v to load the new drivers. The drivers did not get copied over to the /etc/samba/drivers/W32X86/3/ directory, so I manually copied them over there. Then I added the printer to my Win XP client. tried printing a test page, and the same problem occured. I tryed removing the ps* files from the samba drivers directory and re-adding the printer to the Win XP client. The same problem occurred, and even thought the ps* files were not available for the client to download, the part of the test page that did print indicated that the ps* files were indeed being used to print.

So now that I have the cups5 drivers, what do I need to do to get them working?

As per the cupsaddsmb man page, these are the files I have in the /usr/share/cups/drivers/ directory

cups5.hlp
cupsdrv5.dll
cupsui5.dll
ps5ui.dll
pscript5.dll
pscript.hlp
pscript.ntf

Thanks for all you continued help.

Robert

P.S. What should the permissions be on these driver files? 700? 755?
 
Old 03-21-2006, 04:08 PM   #11
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Perms should be 744.

Take out the "5" in all the CUPS stuff, and the cupsdrv5.dll should be cupsdrvr.dll
 
Old 03-21-2006, 06:03 PM   #12
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
This is the contents of my /etc/samba/drivers/W32X86/3/ folder, and all files their are owned by root with 744 perms.

cups.hlp
cupsdrvr.dll
cupsui.dll
ps5ui.dll
pscript5.dll
pscript.hlp
pscript.ntf

Still no love. The same problem persists. Do I need to just start over? Do I need to uninstall hplip and delete the printers from cups and then reinstall and readminister? Should I even be using the ps* files for Windows XP clients? Am I asking too many questions?

Once again, thanks for your patience and continued help.

Robert.
 
Old 03-21-2006, 06:48 PM   #13
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
IIRC, the Samba 3 How-To guide suggests using the PS drivers for 9x/ME, and the CUPS drivers for all NT based machines.

If that doesn't work, I'm at a loss.
 
Old 03-21-2006, 07:05 PM   #14
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
OK, well thanks a lot for all your suggestions. I am going to continue fiddling with this and if I find a solution, I will post to let you know what the problem was.

Thanks again,

Robert.
 
Old 04-29-2006, 11:15 PM   #15
rfrey74
LQ Newbie
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
Finally found out what the problem was! After installing a few foomatic packages, the printer works just fine when getting a print request from a Windows XP machine. Here is the final version of my notes on the subject.

HP printer setup to share a printer on an Ubuntu server with Windows
clients.

http://hpinkjet.sourceforge.net/
$ sudo apt-get install build-essential
$ sudo apt-get install python2.4-dev python2.4-qt3 libcupsys2-dev
libsnmp5-dev libjpeg62-dev lsb libtool automake libusb-dev gs-esp
cupsys-bsd cupsys foomatic-filters-ppds foomatic-db-engine
$ tar xvfz hplip0.9.10.tar.gz
$ cd hplip0.9.10
$ ./configure --prefix=/usr
$ make
$ sudo make install

in /etc/cups/mime.types uncomment
#application/octet-stream

in /etc/cups/mime.convs uncomment
#application/octet-stream application/vnd-cups.raw 0 -

$ sudo /etc/init.d/hplip restart
$ sudo /etc/init.d/cupsys restart
$ sudo hp-setup

install samba
$ sudo apt-get install samba smbclient smbfs
$ sudo /etc/samba/smbpasswd -a[n] user_name
Make sure to specify a samba password for root.

$ sudo nano /etc/samba/smbusers
in /etc/samba/smbusers
linux_username = "windows_username"

in /etc/samba/smb.conf

[global]
security = user
username map = /etc/samba/smbusers
null passwords = yes
invalid users = # no invalid users
load printers = yes
printing = cups
printcap name = cups

[printers]
comment = All Printers
path = /var/spool/samba
browsable = yes
public = no
writable = no
printable = yes
create mode = 0700

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browsable = yes
public = no
read only = yes
write list = root

$ sudo mkdir /etc/samba/drivers
$ sudo mkdir /var/spool/samba
$ sudo chmod 777 /var/spool/samba
$ sudo /etc/init.d/samba restart

Download the postscript drivers installer from www.adobe.com. Make sure you have your .ppd file for your printer handy. Install the postscript drivers on your Windows XP machine. During install, select local printer installation, and even if your printer is a USB printer, select LPT1 when the wizard asks for a printer port. When you are asked for a printer to install, browse to your printer's .ppd file and select it. Once the drivers are installed, copy the following files from C:\WINDOWS\system32\spool\drivers\w32x86\3\ to /usr/share/cups/drivers/

ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll

$ sudo cupsaddsmb -a -v
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB printer problem. Printing stops arubin Linux - Hardware 7 12-28-2005 04:10 AM
Printing to a shared XP printer nyumedic2000 Linux - Newbie 1 05-17-2005 09:46 PM
Printing to a Windows Shared printer rwillard Linux - Newbie 8 03-17-2005 10:05 AM
Help printing to a Win 98 shared printer mike8994 Linux - Newbie 1 05-02-2004 11:36 AM
Printing to a WinXP shared printer? DStar Linux - Newbie 24 04-20-2004 03:14 AM


All times are GMT -5. The time now is 09:09 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration