slackhack |
06-04-2006 02:48 PM |
printer: job completed, no printout
debian etch
samsung ML-1740
parallel port
cups
lp
parport
parport_pc all built as modules and loaded
i downloaded the driver from samsung, but the print server is a headless machine with no X, so i couldn't run the gui installer. i just copied the ppd to /usr/share/cups/model (tried both ML-1740 and 1710), and some other "filter" file it was complaining about (ppmtospl2) to /usr/lib/cups/filter/, and with that configuration it says job completed, but nothing prints out (yes, there is paper in the printer :p).
the error log said it couldn't parse the XML of /etc/linuxprint.cfg, which i didn't have, so i started over following this method for another samsung printer that someone posted on linuxprinting.org (changing the ppd name in the .cfg file, etc.):
Quote:
Set up the printer without Samsung's shit setup tool!
The setup-tool that Samsung had offered doesn't work on my Debian GNU/Linux Sarge.
But I have found a Way to setup the printer without it. It's even better to do
it this way:
get the driver package from the samsung website.
unpack it:
tar zxvf 20050425144636875_lpp-1.1.7-27-i386.tar.gz
Make a directory somwhere in the system:
mkdir /usr/local/samsung
Copy the ppd directory:
cp -R image/ppd /usr/local/samsung
The directory image/bin/Linux/x86/filters contains the various
proprietary "printer drivers"
For the CLP-500 you need only ppmtosplc and pscms
You have to copy them to /usr/local/samsung/filters
and symlink them into /usr/lib/cups/filter
this quirks seems to be needed by the drivers:
mkdir /usr/local/samsung/filters
cd image/bin/Linux/x86/filters
cp ppmtosplc pscms /usr/local/samsung/filters
cd /usr/local/samsung/filters
ln -s ppmtosplc pscms /usr/lib/cups/filter
Now you have to set up a config file /etc/linuxprint.cfg needed by ppmtosplc:
write in /etc/linuxprint.cfg this:
------------------------------------------------------------
Code:
<?xml version="1.0"?>
<linux root="/usr/local/samsung" system="cups">
<option name="ghostscript" value="/usr/bin/gs"/>
<printer ppd="ppd/C/CLP-500splc.ppd" queue="colorlaser">
<option name="Resolution" value="600"/>
<option name="Duplex" value="None"/>
<option name="PageSize" value="A4"/>
<option name="InputSlot" value="AUTO"/>
<option name="MediaType" value="Normal"/>
<option name="JCLJamrecovery" value="RWJOff"/>
</printer>
</linux>
|
now it totally aborts the printing job, and besides something about needing fonts (?) there's nothing obvious that i can see in the error log. i'll post it in case i'm missing something:
Code:
I [04/Jun/2006:15:33:50 -0400] New printer 'printer' added by 'root'.
D [04/Jun/2006:15:33:50 -0400] ProcessIPPRequest: 7 status_code=0
D [04/Jun/2006:15:33:50 -0400] CloseClient: 7
D [04/Jun/2006:15:34:21 -0400] ReadClient: 5 GET /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 4363
I [04/Jun/2006:15:34:21 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436 3)
D [04/Jun/2006:15:34:21 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:21 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] CloseClient: 7
D [04/Jun/2006:15:34:23 -0400] ReadClient: 5 GET /printers/printer?op=print-test-pag e HTTP/1.1
D [04/Jun/2006:15:34:23 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 4364
I [04/Jun/2006:15:34:23 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436 4)
D [04/Jun/2006:15:34:23 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:23 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:23 -0400] ReadClient: 7 POST /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:23 -0400] print_job: request file type is application/postscrip t.
D [04/Jun/2006:15:34:23 -0400] check_quotas: requesting-user-name = 'root'
D [04/Jun/2006:15:34:23 -0400] print_job: requesting-user-name = 'root'
D [04/Jun/2006:15:34:23 -0400] Adding default job-sheets values "none,none"...
I [04/Jun/2006:15:34:23 -0400] Adding start banner page "none" to job 4.
I [04/Jun/2006:15:34:23 -0400] Adding end banner page "none" to job 4.
I [04/Jun/2006:15:34:23 -0400] Job 4 queued on 'printer' by 'root'.
D [04/Jun/2006:15:34:23 -0400] Job 4 hold_until = 0
D [04/Jun/2006:15:34:23 -0400] StartJob(4, 0x80cc0b8)
D [04/Jun/2006:15:34:23 -0400] StartJob() id = 4, file = 0/1
D [04/Jun/2006:15:34:23 -0400] job-sheets=none,none
D [04/Jun/2006:15:34:23 -0400] banner_page = 0
D [04/Jun/2006:15:34:23 -0400] StartJob: argv = "printer","4","root","Test Page","1" ,"","/var/spool/cups/d00004-001"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/us r/bin"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[2]="USER=root"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[3]="CHARSET=utf-8"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[4]="LANG=en_US"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[5]="TZ=US/Eastern"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[6]="PPD=/etc/cups/ppd/printer.ppd"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[10]="CONTENT_TYPE=application/postscri pt"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[11]="DEVICE_URI=parallel:/dev/lp0"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[12]="PRINTER=printer"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fon ts"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[15]="CUPS_SERVER=localhost"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[16]="IPP_PORT=631"
D [04/Jun/2006:15:34:23 -0400] StartJob: statusfds = [ 9 10 ]
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[1] = [ 11 -1 ]
D [04/Jun/2006:15:34:23 -0400] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[0] = [ 12 14 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/filter/pstops", 0xbf8c59 80, 0xbf8c4ef8, 11, 14, 10)
I [04/Jun/2006:15:34:23 -0400] Started filter /usr/lib/cups/filter/pstops (PID 4365) for job 4.
D [04/Jun/2006:15:34:23 -0400] StartJob: filter = "/usr/lib/cups/filter/ppmtospl2"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[1] = [ 11 15 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/filter/ppmtospl2", 0xbf8 c5980, 0xbf8c4ef8, 12, 15, 10)
I [04/Jun/2006:15:34:23 -0400] Started filter /usr/lib/cups/filter/ppmtospl2 (PID 43 66) for job 4.
D [04/Jun/2006:15:34:23 -0400] StartJob: backend = "/usr/lib/cups/backend/parallel"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[0] = [ -1 12 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/backend/parallel", 0xbf8 c5980, 0xbf8c4ef8, 11, 12, 10)
I [04/Jun/2006:15:34:23 -0400] Started backend /usr/lib/cups/backend/parallel (PID 4 367) for job 4.
D [04/Jun/2006:15:34:23 -0400] ProcessIPPRequest: 7 status_code=0
E [04/Jun/2006:15:34:23 -0400] PID 4366 stopped with status 22!
D [04/Jun/2006:15:34:23 -0400] [Job 4] /usr/lib/cups/filter/ppmtospl2: Too many leve ls of symbolic links
D [04/Jun/2006:15:34:23 -0400] [Job 4] Page = 612x792; 12,12 to 600,780
D [04/Jun/2006:15:34:23 -0400] [Job 4] slowcollate=0, slowduplex=0, sloworder=0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BoundingBox: 0 0 612 792
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Pages: 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%LanguageLevel: 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentData: Clean7Bit
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentSuppliedResources: procset testpr int/1.1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentNeededResources: font Helvetica H elvetica-Bold Times-Roman
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Creator: Michael Sweet, Easy Software Pro ducts
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%CreationDate: May 11, 1999
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Title: Test Page
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndComments
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BeginProlog
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BeginResource procset testprint 1.1 0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndResource
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndProlog
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Page: 1 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Page: 1 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] pw = 587.0, pl = 767.0
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageLeft = 12.5, PageRight = 599.5
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageTop = 779.5, PageBottom = 12.5
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageWidth = 612.0, PageLength = 792.0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EOF
D [04/Jun/2006:15:34:23 -0400] [Job 4] Saw EOF!
D [04/Jun/2006:15:34:23 -0400] UpdateJob: job 4, file 0 is complete.
D [04/Jun/2006:15:34:23 -0400] CancelJob: id = 4
D [04/Jun/2006:15:34:23 -0400] StopJob: id = 4, force = 0
D [04/Jun/2006:15:34:23 -0400] StopJob: printer state is 3
D [04/Jun/2006:15:34:23 -0400] CloseClient: 7
D [04/Jun/2006:15:34:25 -0400] ReadClient: 5 GET /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:25 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 4368
I [04/Jun/2006:15:34:25 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436 8)
D [04/Jun/2006:15:34:25 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:25 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:25 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:25 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:26 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:26 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] CloseClient: 7
D [04/Jun/2006:15:34:28 -0400] ReadClient: 5 GET /printers/printer?which_jobs=comple ted HTTP/1.1
D [04/Jun/2006:15:34:28 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 4369
I [04/Jun/2006:15:34:28 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436 9)
D [04/Jun/2006:15:34:28 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:28 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:28 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:28 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:29 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:29 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] CloseClient: 7
[code]
i've read that a lot of people have this printer working even on debian, pretty much out of the box, so i don't know what i'm doing wrong. appreciate any help, thanks.
|