CUPS will nicht

Tomonage

Well-Known Member
Hi Folks,


ich probiere hier gerade CUPs mit dem Brother 5040 zum laufen zu bewegen (usb, FreeBSD-5.2.1-p4). Ich bin nach
http://www.linuxprinting.org/cups-doc.html
vorgegangen und habe auch schon fleißig hier im Forum gesucht, aber ich scheine irgendwie festzustecken.

Ich habe mir die ppd von linuxprinting.org und foomatic runtergeladen und soweit installiert (foomatic auch nach /usr/local/libexec/cups/filters gesymlinkt). Den Drucker habe ich per Weboberfläche mit der erkannten PPD eingerichtet (nach kopieren der ppd in das models-verzeichnis).

Soweit so gut, aber wenn ich eine Testseite drucke, kommt das:
------------------
D [03/Apr/2004:18:34:16 +0200] AcceptClient() 5 from 192.168.0.11:631.
D [03/Apr/2004:18:34:16 +0200] ReadClient() 5 GET /printers/Laser?op=print-test-page HTTP/1.1
D [03/Apr/2004:18:34:16 +0200] CGI /usr/local/libexec/cups/cgi-bin/printers.cgi started - PID = 962
I [03/Apr/2004:18:34:16 +0200] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=962)
D [03/Apr/2004:18:34:16 +0200] SendCommand() 5 file=8
D [03/Apr/2004:18:34:16 +0200] AcceptClient() 7 from localhost:631.
D [03/Apr/2004:18:34:16 +0200] ReadClient() 7 POST /printers/Laser HTTP/1.1
D [03/Apr/2004:18:34:16 +0200] print_job: request file type is application/postscript.
D [03/Apr/2004:18:34:16 +0200] check_quotas: requesting-user-name = 'root'
D [03/Apr/2004:18:34:16 +0200] print_job: requesting-user-name = 'root'
D [03/Apr/2004:18:34:16 +0200] Adding default job-sheets values "none,none"...
I [03/Apr/2004:18:34:16 +0200] Adding start banner page "none" to job 14.
I [03/Apr/2004:18:34:16 +0200] Adding end banner page "none" to job 14.
I [03/Apr/2004:18:34:16 +0200] Job 14 queued on 'Laser' by 'root'.
D [03/Apr/2004:18:34:16 +0200] Job 14 hold_until = 0
D [03/Apr/2004:18:34:16 +0200] StartJob(14, 0x81b2000)
D [03/Apr/2004:18:34:16 +0200] StartJob() id = 14, file = 0/1
D [03/Apr/2004:18:34:16 +0200] job-sheets=none,none
D [03/Apr/2004:18:34:16 +0200] banner_page = 0
D [03/Apr/2004:18:34:16 +0200] StartJob: argv = "Laser","14","root","Test Page","1","","/var/spool/cups/d00014-001"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[0]="PATH=/usr/local/libexec/cups/filter:/bin:/usr/bin"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[2]="USER=root"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[3]="CHARSET=utf-8"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[4]="LANG=de"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[5]="PPD=/usr/local/etc/cups/ppd/Laser.ppd"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[6]="CUPS_SERVERROOT=/usr/local/etc/cups"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[7]="RIP_MAX_CACHE=8m"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[9]="CONTENT_TYPE=application/postscript"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[10]="DEVICE_URI=usb:/dev/unlpt0"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[11]="PRINTER=Laser"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[12]="CUPS_DATADIR=/usr/local/share/cups"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[13]="CUPS_FONTPATH=/usr/local/share/cups/fonts"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[14]="CUPS_SERVER=localhost"
D [03/Apr/2004:18:34:16 +0200] StartJob: envp[15]="IPP_PORT=631"
D [03/Apr/2004:18:34:16 +0200] StartJob: statusfds = [ 9 10 ]
D [03/Apr/2004:18:34:16 +0200] StartJob: filterfds[1] = [ 11 -1 ]
D [03/Apr/2004:18:34:16 +0200] StartJob: filter = "/usr/local/libexec/cups/filter/pstops"
D [03/Apr/2004:18:34:16 +0200] StartJob: filterfds[0] = [ 12 13 ]
D [03/Apr/2004:18:34:16 +0200] start_process("/usr/local/libexec/cups/filter/pstops", 0xbfbeece0, 0xbfbee050, 11, 13, 10)
I [03/Apr/2004:18:34:16 +0200] Started filter /usr/local/libexec/cups/filter/pstops (PID 963) for job 14.
D [03/Apr/2004:18:34:16 +0200] StartJob: filter = "/usr/local/libexec/cups/filter/foomatic-rip"
D [03/Apr/2004:18:34:16 +0200] StartJob: filterfds[1] = [ 11 14 ]
D [03/Apr/2004:18:34:16 +0200] start_process("/usr/local/libexec/cups/filter/foomatic-rip", 0xbfbeece0, 0xbfbee050, 12, 14, 10)
I [03/Apr/2004:18:34:16 +0200] Started filter /usr/local/libexec/cups/filter/foomatic-rip (PID 964) for job 14.
D [03/Apr/2004:18:34:16 +0200] StartJob: backend = "/usr/local/libexec/cups/backend/usb"
D [03/Apr/2004:18:34:16 +0200] StartJob: filterfds[0] = [ -1 12 ]
D [03/Apr/2004:18:34:16 +0200] start_process("/usr/local/libexec/cups/backend/usb", 0xbfbeece0, 0xbfbee050, 11, 12, 10)
I [03/Apr/2004:18:34:16 +0200] Started backend /usr/local/libexec/cups/backend/usb (PID 965) for job 14.
D [03/Apr/2004:18:34:16 +0200] ProcessIPPRequest: 7 status_code=0
D [03/Apr/2004:18:34:16 +0200] CloseClient() 7
D [03/Apr/2004:18:34:16 +0200] [Job 14] perl: warning: Setting locale failed.
D [03/Apr/2004:18:34:16 +0200] [Job 14] perl: warning: Please check that your locale settings:
D [03/Apr/2004:18:34:16 +0200] [Job 14] LC_ALL = (unset),
D [03/Apr/2004:18:34:16 +0200] [Job 14] LANG = "de"
D [03/Apr/2004:18:34:16 +0200] [Job 14] are supported and installed on your system.
D [03/Apr/2004:18:34:16 +0200] [Job 14] perl: warning: Falling back to the standard locale ("C").
D [03/Apr/2004:18:34:16 +0200] [Job 14] Page = 595x842; 17,12 to 578,830
D [03/Apr/2004:18:34:16 +0200] [Job 14] slowcollate=0, slowduplex=0, sloworder=0
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%BoundingBox: 0 0 612 792
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%Pages: 1
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%LanguageLevel: 1
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%DocumentData: Clean7Bit
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%DocumentSuppliedResources: procset testprint/1.0
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%Creator: Michael Sweet, Easy Software Products
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%CreationDate: May 11, 1999
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%Title: Test Page
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%EndComments
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%BeginProlog
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%BeginResource procset testprint 1.1 0
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%EndResource
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%EndProlog
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%Page: 1 1
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%Page: 1 1
D [03/Apr/2004:18:34:16 +0200] [Job 14] pw = 560.9, pl = 818.2
D [03/Apr/2004:18:34:16 +0200] [Job 14] PageLeft = 17.0, PageRight = 578.0
D [03/Apr/2004:18:34:16 +0200] [Job 14] PageTop = 830.1, PageBottom = 11.9
D [03/Apr/2004:18:34:16 +0200] CloseClient() 5
D [03/Apr/2004:18:34:16 +0200] [Job 14] PageWidth = 595.0, PageLength = 842.0
D [03/Apr/2004:18:34:16 +0200] [Job 14] 0 %%EOF
D [03/Apr/2004:18:34:16 +0200] [Job 14] Saw EOF!
D [03/Apr/2004:18:34:17 +0200] [Job 14] foomatic-rip version $Revision: 3.43.2.4 $ running...
D [03/Apr/2004:18:34:17 +0200] [Job 14] Parsing PPD file ...
D [03/Apr/2004:18:34:17 +0200] [Job 14] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option ColorSpace
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option PageSize
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option PageRegion
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option ImageableArea
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option PaperDimension
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option InputSlot
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option MediaType
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option Resolution
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option EconoMode
D [03/Apr/2004:18:34:17 +0200] [Job 14] Added option Font
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] Parameter Summary
D [03/Apr/2004:18:34:17 +0200] [Job 14] -----------------
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] Spooler: cups
D [03/Apr/2004:18:34:17 +0200] [Job 14] Printer: Laser
D [03/Apr/2004:18:34:17 +0200] [Job 14] PPD file: /usr/local/etc/cups/ppd/Laser.ppd
D [03/Apr/2004:18:34:17 +0200] [Job 14] Printer model: Brother HL-5040 Foomatic/hl1250 (recommended)
D [03/Apr/2004:18:34:17 +0200] [Job 14] Job title: Test Page
D [03/Apr/2004:18:34:17 +0200] [Job 14] File(s) to be printed:
D [03/Apr/2004:18:34:17 +0200] [Job 14] <STDIN>
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] ================================================
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] File: <STDIN>
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] ================================================
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] Reading PostScript input ...
D [03/Apr/2004:18:34:17 +0200] [Job 14] --> This document is DSC-conforming!
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] -----------
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%BeginProlog
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%EndProlog
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] -----------
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%BeginSetup
D [03/Apr/2004:18:34:17 +0200] [Job 14] Inserting PostScript code for CUPS' page accounting
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%BeginFeature: *MediaType Plain
D [03/Apr/2004:18:34:17 +0200] [Job 14] Option: MediaType=Plain --> Setting option
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %% FoomaticRIPOptionSetting: MediaType=Plain
D [03/Apr/2004:18:34:17 +0200] [Job 14] Option: MediaType=Plain --> Setting option
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%BeginFeature: *PageRegion A4
D [03/Apr/2004:18:34:17 +0200] [Job 14] Option: PageRegion=A4 --> Option will be set by PostScript interpreter
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%BeginFeature: *EconoMode off
D [03/Apr/2004:18:34:17 +0200] [Job 14] Option: EconoMode=off --> Setting option
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %% FoomaticRIPOptionSetting: EconoMode=off
D [03/Apr/2004:18:34:17 +0200] [Job 14] Option: EconoMode=off --> Setting option
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%BeginFeature: *InputSlot auto
D [03/Apr/2004:18:34:17 +0200] [Job 14] Option: InputSlot=auto --> Setting option
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %% FoomaticRIPOptionSetting: InputSlot=auto
D [03/Apr/2004:18:34:17 +0200] [Job 14] Option: InputSlot=auto --> Setting option
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%BeginFeature: *Resolution 600x600dpi
D [03/Apr/2004:18:34:17 +0200] [Job 14] Option: Resolution=600x600dpi --> Option will be set by PostScript interpreter
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found: %%EndSetup
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] -----------
D [03/Apr/2004:18:34:17 +0200] [Job 14] New page: 1 1
D [03/Apr/2004:18:34:17 +0200] [Job 14] Inserting option code into "PageSetup" section.
D [03/Apr/2004:18:34:17 +0200] [Job 14] No page header or page header not DSC-conforming
D [03/Apr/2004:18:34:17 +0200] [Job 14] Stopping search for page header options
D [03/Apr/2004:18:34:17 +0200] [Job 14] Found:
D [03/Apr/2004:18:34:17 +0200] [Job 14] pageHeight sub % Move down...
D [03/Apr/2004:18:34:17 +0200] [Job 14] --> Output goes directly to the renderer now.
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] Starting renderer
D [03/Apr/2004:18:34:17 +0200] [Job 14] renderer PID kid4=967
D [03/Apr/2004:18:34:17 +0200] [Job 14] JCL: 2345X@PJL
D [03/Apr/2004:18:34:17 +0200] [Job 14] @PJL SET MEDIATYPE=REGULAR
D [03/Apr/2004:18:34:17 +0200] [Job 14] <job data>
D [03/Apr/2004:18:34:17 +0200] [Job 14] 2345X@PJL RESET
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=hl1250 -dEconoMode=0 -dSourceTray=0 -sOutputFile=- -
D [03/Apr/2004:18:34:17 +0200] [Job 14] perl: warning: Setting locale failed.
D [03/Apr/2004:18:34:17 +0200] [Job 14] perl: warning: Please check that your locale settings:
D [03/Apr/2004:18:34:17 +0200] [Job 14] LC_ALL = (unset),
D [03/Apr/2004:18:34:17 +0200] [Job 14] LANG = "de"
D [03/Apr/2004:18:34:17 +0200] [Job 14] are supported and installed on your system.
D [03/Apr/2004:18:34:17 +0200] [Job 14] perl: warning: Falling back to the standard locale ("C").
D [03/Apr/2004:18:34:17 +0200] [Job 14] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dNOPAUSE' '-sDEVICE=hl1250' '-dEconoMode=0' '-dSourceTray=0' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2
D [03/Apr/2004:18:34:17 +0200] [Job 14] GNU Ghostscript 7.07 (2003-05-17)
D [03/Apr/2004:18:34:17 +0200] [Job 14] Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
D [03/Apr/2004:18:34:17 +0200] [Job 14] This software comes with NO WARRANTY: see the file PUBLIC for details.
D [03/Apr/2004:18:34:17 +0200] [Job 14]
D [03/Apr/2004:18:34:17 +0200] [Job 14] Closing renderer
D [03/Apr/2004:18:34:17 +0200] [Job 14] Loading NimbusSanL-Bold font from /usr/local/share/ghostscript/fonts/n019004l.pfb... 2287356 882759 1702808 402705 0 done.
D [03/Apr/2004:18:34:17 +0200] [Job 14] Loading NimbusSanL-Regu font from /usr/local/share/ghostscript/fonts/n019003l.pfb... 2364308 969878 1702808 406680 0 done.
D [03/Apr/2004:18:34:17 +0200] [Job 14] Loading NimbusRomNo9L-Regu font from /usr/local/share/ghostscript/fonts/n021003l.pfb... 2521644 1078517 1722904 357547 0 done.
D [03/Apr/2004:18:34:17 +0200] [Job 14] Loading NimbusSanL-BoldItal font from /usr/local/share/ghostscript/fonts/n019024l.pfb... 2638788 1181431 1722904 372186 0 done


-----------------------------------

Ein Versuch über die Kommandozeile endet so:
$ /usr/local/bin/lp -d Laser -o PageSize=Letter /etc/motd
request id is Laser-15 (1 file(s))

----------------------------------
D [03/Apr/2004:18:42:01 +0200] [Job 15] PageWidth = 612.0, PageLength = 792.0
D [03/Apr/2004:18:42:01 +0200] [Job 15] 0 %%Trailer
D [03/Apr/2004:18:42:01 +0200] [Job 15] Saw Trailer!
D [03/Apr/2004:18:42:01 +0200] [Job 15] Saw EOF!
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %%EndProlog
D [03/Apr/2004:18:42:01 +0200] [Job 15]
D [03/Apr/2004:18:42:01 +0200] [Job 15] -----------
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %%BeginSetup
D [03/Apr/2004:18:42:01 +0200] [Job 15] Inserting PostScript code for CUPS' page accounting
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %%BeginFeature: *MediaType Plain
D [03/Apr/2004:18:42:01 +0200] [Job 15] Option: MediaType=Plain --> Setting option
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %% FoomaticRIPOptionSetting: MediaType=Plain
D [03/Apr/2004:18:42:01 +0200] [Job 15] Option: MediaType=Plain --> Setting option
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %%BeginFeature: *PageRegion Letter
D [03/Apr/2004:18:42:01 +0200] [Job 15] Option: PageRegion=Letter --> Option will be set by PostScript interpreter
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %%BeginFeature: *EconoMode off
D [03/Apr/2004:18:42:01 +0200] [Job 15] Option: EconoMode=off --> Setting option
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %% FoomaticRIPOptionSetting: EconoMode=off
D [03/Apr/2004:18:42:01 +0200] [Job 15] Option: EconoMode=off --> Setting option
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %%BeginFeature: *InputSlot auto
D [03/Apr/2004:18:42:01 +0200] [Job 15] Option: InputSlot=auto --> Setting option
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %% FoomaticRIPOptionSetting: InputSlot=auto
D [03/Apr/2004:18:42:01 +0200] [Job 15] Option: InputSlot=auto --> Setting option
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %%BeginFeature: *Resolution 600x600dpi
D [03/Apr/2004:18:42:01 +0200] [Job 15] Option: Resolution=600x600dpi --> Option will be set by PostScript interpreter
D [03/Apr/2004:18:42:01 +0200] [Job 15] Found: %%EndSetup
D [03/Apr/2004:18:42:01 +0200] [Job 15]
D [03/Apr/2004:18:42:01 +0200] [Job 15] -----------
D [03/Apr/2004:18:42:01 +0200] [Job 15] New page: 1 1
D [03/Apr/2004:18:42:01 +0200] [Job 15] Inserting option code into "PageSetup" section.
D [03/Apr/2004:18:42:01 +0200] [Job 15] No page header or page header not DSC-conforming
D [03/Apr/2004:18:42:01 +0200] [Job 15] Flushing FIFO.
D [03/Apr/2004:18:42:01 +0200] [Job 15]
D [03/Apr/2004:18:42:01 +0200] [Job 15] Starting renderer
D [03/Apr/2004:18:42:01 +0200] [Job 15] renderer PID kid4=988
D [03/Apr/2004:18:42:01 +0200] [Job 15] JCL: 2345X@PJL
D [03/Apr/2004:18:42:01 +0200] [Job 15] @PJL SET MEDIATYPE=REGULAR
D [03/Apr/2004:18:42:01 +0200] [Job 15] <job data>
D [03/Apr/2004:18:42:01 +0200] [Job 15] 2345X@PJL RESET
D [03/Apr/2004:18:42:01 +0200] [Job 15]
D [03/Apr/2004:18:42:01 +0200] [Job 15] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=hl1250 -dEconoMode=0 -dSourceTray=0 -sOutputFile=- -
D [03/Apr/2004:18:42:01 +0200] [Job 15] perl: warning: Setting locale failed.
D [03/Apr/2004:18:42:01 +0200] [Job 15] perl: warning: Please check that your locale settings:
D [03/Apr/2004:18:42:01 +0200] [Job 15] LC_ALL = (unset),
D [03/Apr/2004:18:42:01 +0200] [Job 15] LANG = "en"
D [03/Apr/2004:18:42:01 +0200] [Job 15] are supported and installed on your system.
D [03/Apr/2004:18:42:01 +0200] [Job 15] perl: warning: Falling back to the standard locale ("C").
D [03/Apr/2004:18:42:01 +0200] [Job 15] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dNOPAUSE' '-sDEVICE=hl1250' '-dEconoMode=0' '-dSourceTray=0' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2
D [03/Apr/2004:18:42:01 +0200] [Job 15] GNU Ghostscript 7.07 (2003-05-17)
D [03/Apr/2004:18:42:01 +0200] [Job 15] Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
D [03/Apr/2004:18:42:01 +0200] [Job 15] This software comes with NO WARRANTY: see the file PUBLIC for details.
D [03/Apr/2004:18:42:01 +0200] [Job 15]
D [03/Apr/2004:18:42:01 +0200] [Job 15] Closing renderer
D [03/Apr/2004:18:42:02 +0200] [Job 15] tail process done writing data to STDOUT
D [03/Apr/2004:18:42:02 +0200] [Job 15] KID4 finished
D [03/Apr/2004:18:42:02 +0200] [Job 15] KID3 exited with status 0
D [03/Apr/2004:18:42:02 +0200] [Job 15] KID3 finished
D [03/Apr/2004:18:42:02 +0200] [Job 15] KID4 exited with status 0
D [03/Apr/2004:18:42:02 +0200] [Job 15] Renderer exit stat: 0
D [03/Apr/2004:18:42:02 +0200] [Job 15] Renderer process finished
D [03/Apr/2004:18:42:02 +0200] [Job 15]
D [03/Apr/2004:18:42:02 +0200] [Job 15] Closing foomatic-rip.
------------------------------------------------------

sieht also erstmal nicht so schlecht aus.
Aber es wird nicht gedruckt!!!!

Danke,
Tomonage
 
http://www.newbie-net.de/anleitung_freebsd_cups.html

Typisch für FreeBSD erfolgt die Installation der benötigten Programme über die Ports-Sammlung http://www.FreeBSD.org/doc/de_DE.ISO8859-1/books/handbook/ports-using.html. Dazu gibt man folgende Befehle ein:

cd /usr/ports/print/cups-base/
make install
cd /usr/ports/print/ghostscript-gnu/
make install
cd /usr/ports/print/cups-pstoraster/
make install
cd /usr/ports/print/cups-lpr/
make install
cd /usr/ports/print/gimp-print/
make install
cd /usr/ports/print/hpijs/
make install

Hinweis: Wer einen HP-Tintenstrahldrucker einsetzt, kann auf das Paket gimp-print verzichten. Umgekehrt benötigen alle Nutzer von anderen Druckern das Paket hpijs nicht.

Leider enthält der CUPS-Port (zumindest in FreeBSD 5.1-RELEASE) einige Fehler, so daß nicht alle benötigten Verzeichnisse angelegt werden.

Dies kann man von Hand wie folgt nachholen:

mkdir /var/log/cups/
mkdir /var/spool/cups/
mkdir /var/spool/cups/tmp/
mkdir /usr/local/etc/cups/certs/
mkdir /usr/local/etc/cups/ppd/

Im Paket cups-lpr sind die vom LPD bekannten Kommandos wie lpr, lpq oder lprm enthalten. Damit die Befehle auf das CUPS-Backend zugreifen, muß man entsprechende symbolische Links anlegen:

ln -sf /usr/local/bin/lp* /usr/bin

Damit diese Links beim nächsten Upgrade des Systems nicht wieder überschrieben werden und der LPD das Drucken nicht stört, sind Einträge in zwei Konfigurationsdateien nötig. In der Datei /etc/make.conf muß dieser Eintrag ergänzt werden:

NO_LPR=true

Und in der Datei /etc/rc.conf paßt man diesen Eintrag an:

lpd_enable="NO"

Wer Foomatic http://www.linuxprinting.org/foomatic.html einsetzt (eigentlich jeder, der keinen Postscript-fähigen Drucker besitzt), muß noch einige Skripte herunterladen:

cd /usr/local/bin
fetch http://www.linuxprinting.org/foomatic-rip
fetch http://www.linuxprinting.org/foomatic-gswrapper
chmod 755 foomatic-rip foomatic-gswrapper
ln -s /usr/local/bin/foomatic-rip /usr/local/libexec/cups/filter/foomatic-rip

Anstelle von fetch kann man natürlich auch das unter Linux sehr verbreitete wget nutzen, wenn es installiert ist.

Bei Postscript-Druckern wird meist eine PPD-Datei mitgeliefert. Wer für seinen Drucker keine PPD-Datei (mehr) hat, wird vielleicht hier fündig: http://www.linuxprinting.org/download/PPD/

Die zu seinem Drucker passende PPD-Datei kopiert man dann in das Verzeichnis /usr/local/share/cups/model/ hinein.

Wer einen Nicht-Postscript-Drucker besitzt, für den gibt es zwei Möglichkeiten. Zum einen kann man sich unter http://www.linuxprinting.org/printer_list.cgi eine PPD-Datei für seinen Drucker erzeugen lassen. Diese Vorgehensweise empfiehlt sich inbesondere für Besitzer von HP-Tintenstrahldruckern, die mit Hilfe von hpijs drucken wollen. Am Beispiel des HP DeskJet 5550: Man wählt in den Auswahlfeldern "HP" "DeskJet 5550" aus und klickt auf "Show". Auf der nächsten Seite kann man dann unter "download PPD" die Treiberdatei herunterladen und ebenfalls ins Verzeichnis /usr/local/share/cups/model/ kopieren.

Wer einen Drucker eines anderen Herstellers nutzt, der hat mit dem Paket gimp-print wahrscheinlich schon einen Treiber für seinen Drucker installiert. Sollte sich im weiteren Verlauf der Konfiguration herausstellen, daß dies doch nicht der Fall ist, so kann man unter http://www.linuxprinting.org/printer_list.cgi herausfinden, ob und wie der eigene Drucker von CUPS unterstützt wird.

Nachdem nun alle benötigten Pakete und Dateien installiert sind, kann man darangehen, CUPS zum ersten Mal zu starten. Dazu muß man die Beispiel-Startdatei umbenennen, da nur ausführbare Dateien mit der Endung .sh im rc.d-Verzeichnis automatisch gestartet werden:

mv /usr/local/etc/rc.d/cups.sh.sample /usr/local/etc/rc.d/cupsd.sh
chmod 755 /usr/local/etc/rc.d/cupsd.sh
/usr/local/etc/rc.d/cupsd.sh start

Wichtig: Soll ein USB-Drucker eingerichtet werden, so muß dieser vor dem Starten von CUPS mit dem Computer verbunden und mit Strom versorgt sein! Andernfalls kann er im Konfigurationsdialog nicht ausgewählt werden!

Die weitere Konfiguration der Drucker kann man nun bequem über einen beliebigen Browser vornehmen. Wer keine graphische Oberfläche auf seinem Rechner installiert hat, kann dazu auch problemlos lynx oder links benutzen.

Man ruft in einem beliebigen Browser die Adresse http://localhost:631 auf. Zur Einrichtung eines neuen Druckers wählt man nun Manager Printers und dann Add Printer.

In den nachfolgenden Dialogen gibt man z. B. für die Einrichtung eines HP DeskJet 5550 an LPT1 folgendes ein:

Name: DeskJet
Location: /dev/lpt0
Description: HP DeskJet 5550
Device: Parallel Port #1 (interrupt-driven)
Make: HP
Model: HP DeskJet 5550 Foomatic/hpijs (recommended) (en)

Bei der Einrichtung eines anderen Druckers müssen diese Einträge natürlich entsprechend angepaßt werden!

Da im deutschsprachigen Raum selten mit dem Papierformat Letter gearbeitet wird, muß das unter dem Punkt Configure Printer noch umgestellt werden:

Page Size: A4

Wer möchte, kann an dieser Stelle auch noch weitere Einstellungen zu Qualität und Auflösung der Ausdrucke vornehmen.

Nach einem Klick auf Continue und Printers kann man sich dann mit einem Klick auf Print Test Page davon überzeugen, daß der Drucker richtig eingerichtet ist.
Quellen und weiterführende Links

* Das FreeBSD-Handbuch
http://www.FreeBSD.org/doc/de_DE.ISO8859-1/books/handbook/
* LinuxPrinting.org
http://www.linuxprinting.org
* LinuxPrinting.org: CUPS Quick Start
http://www.linuxprinting.org/cups-doc.html
* LinuxPrinting.org: Foomatic
http://www.linuxprinting.org/foomatic.html
* CUPS Software Administrators Manual
http://www.cups.org/sam.html
* CUPS Software Users Manual
http://www.cups.org/sum.html
 
Zurück
Oben