CUPS Handling: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 9: Zeile 9:
 
* '''-d''': Zeige die Systemvorgabe an
 
* '''-d''': Zeige die Systemvorgabe an
  
= Standarddrucker festlegen =
+
= Drucker finden =
 
 
* '''lpoptions -d CUPS-PDF'''
 
 
 
copies=1 device-uri=lpd://BRN30055C84EAFE/BINARY_P1 finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=1675093730 marker-colors=#000000,#00FFFF,#FF00FF,#FFFF00,none,none,none,none,none,none marker-levels=-1,-1,-1,-1,-1,56,94,94,94,94 marker-names='Black\ Toner\ Cartridge,Cyan\ Toner\ Cartridge,Magenta\ Toner\ Cartridge,Yellow\ Toner\ Cartridge,Waste\ Toner\ Box,Belt\ Unit,Black\ Drum\ Unit,Cyan\ Drum\ Unit,Magenta\ Drum\ Unit,Yellow\ Drum\ Unit' marker-types=toner,toner,toner,toner,waste-toner,other,opc,opc,opc,opc number-up=1 print-color-mode=monochrome printer-commands=none printer-info='Brother MFC-9142CDN' printer-is-accepting-jobs=true printer-is-shared=false printer-is-temporary=false printer-location='Local Printer' printer-make-and-model='Generic PDF Printer' printer-state=3 printer-state-change-time=1675093730 printer-state-reasons=none printer-type=2101276 printer-uri-supported=ipp://localhost/printers/Brother_MFC-9142CDN
 
* '''lpstat -d'''
 
 
 
systemvoreingestelltes Ziel: CUPS-PDF
 
 
 
= Druckermanagement =
 
 
 
== Drucker löschen ==
 
 
 
* '''lpadmin -x CUPS-PDF'''
 
 
 
== Drucker finden ==
 
  
 
* '''lpinfo -v'''
 
* '''lpinfo -v'''
Zeile 58: Zeile 43:
 
         Geräte-ID =  
 
         Geräte-ID =  
 
         Standort =  
 
         Standort =  
  Gerät: URI = cups-pdf:/
+
    ...
        Klasse = file
+
 
        Info = CUPS-PDF
+
= verfügbare Treiber anzeigen =
        Hersteller-und-Modell = Virtual PDF Printer
+
 
        Geräte-ID = MFG:Generic;MDL:CUPS-PDF Printer;DES:Generic CUPS-PDF Printer;CLS:PRINTER;CMD:POSTSCRIPT;
+
* Erste Spalte ist die Datei
        Standort =
+
* Danach kommt die Beschreibung
  Gerät: URI = https
+
* '''lpinfo -m'''
        Klasse = network
+
 
        Info = Internet Printing Protocol (https)
+
  '''driverless:ipp://Brother%20MFC-9142CDN._ipp._tcp.local/''' Brother MFC-9142CDN, driverless, cups-filters 1.28.17
        Hersteller-und-Modell = Unknown
+
'''drv:///sample.drv/dymo.ppd''' DYMO Label Printer
        Geräte-ID =
+
'''drv:///sample.drv/epson9.ppd''' Epson 9-Pin Series
        Standort =
+
'''drv:///sample.drv/epson24.ppd''' Epson 24-Pin Series
  Gerät: URI = lpd
+
'''lsb/usr/cupsfilters/Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd''' Fuji Xerox DocuPrint CM305 df PDF
        Klasse = network
+
'''drv:///generic-brf.drv/gen-brf.ppd''' Generic Braille embosser, 1.0
        Info = LPD/LPR-Host oder -Drucker
+
'''CUPS-PDF_noopt.ppd''' Generic CUPS-PDF Printer (no options)
        Hersteller-und-Modell = Unknown
+
'''CUPS-PDF_opt.ppd''' Generic CUPS-PDF Printer (w/ options)
        Geräte-ID =
+
'''drv:///cupsfilters.drv/pwgrast.ppd''' Generic IPP Everywhere Printer
        Standort =
+
'''drv:///sample.drv/generpcl.ppd''' Generic PCL Laser Printer
  Gerät: URI = socket
+
'''lsb/usr/cupsfilters/Generic-PDF_Printer-PDF.ppd''' Generic PDF Printer
        Klasse = network
+
  '''drv:///sample.drv/generic.ppd''' Generic PostScript Printer
        Info = AppSocket/HP JetDirect
+
'''drv:///cupsfilters.drv/textonly.ppd''' Generic Text-Only Printer
        Hersteller-und-Modell = Unknown
+
'''drv:///generic-ubrl.drv/gen-ubrl.ppd''' Generic UBRL generator, 1.0
        Geräte-ID =
+
'''lsb/usr/cupsfilters/HP-Color_LaserJet_CM3530_MFP-PDF.ppd''' HP Color LaserJet CM3530 MFP PDF
        Standort =
+
'''lsb/usr/cupsfilters/pxlcolor.ppd''' HP Color LaserJet Series PCL 6 CUPS
  Gerät: URI = ipp
+
  '''drv:///cupsfilters.drv/dsgnjt600pcl.ppd''' HP DesignJet 600 pcl, 1.0
        Klasse = network
+
'''drv:///cupsfilters.drv/dsgnjt750cpcl.ppd''' HP DesignJet 750c pcl, 1.0
        Info = Internet Printing Protocol (ipp)
+
'''drv:///cupsfilters.drv/dsgnjt1050cpcl.ppd''' HP DesignJet 1050c pcl, 1.0
        Hersteller-und-Modell = Unknown
+
'''drv:///cupsfilters.drv/dsgnjt4000pcl.ppd''' HP DesignJet 4000 pcl, 1.0
        Geräte-ID =
+
'''drv:///cupsfilters.drv/dsgnjtt790pcl.ppd''' HP DesignJet T790 pcl, 1.0
        Standort =
+
'''drv:///cupsfilters.drv/dsgnjtt1100pcl.ppd''' HP DesignJet T1100 pcl, 1.0
  Gerät: URI = http
+
  '''drv:///sample.drv/deskjet.ppd''' HP DeskJet Series
        Klasse = network
+
'''drv:///sample.drv/laserjet.ppd''' HP LaserJet Series PCL 4/5
        Info = Internet Printing Protocol (http)
+
'''lsb/usr/cupsfilters/pxlmono.ppd''' HP LaserJet Series PCL 6 CUPS
        Hersteller-und-Modell = Unknown
+
'''drv:///indexv3.drv/i4waves3.ppd''' Index 4-Waves PRO, 1.0
        Geräte-ID =
+
'''drv:///indexv3.drv/i4x4pro3.ppd''' Index 4x4 PRO V3, 1.0
        Standort =
+
'''drv:///indexv3.drv/ibasicd3.ppd''' Index Basic-D V3, 1.0
  Gerät: URI = ipps
+
'''drv:///indexv4.drv/ibasicd4.ppd''' Index Basic-D V4/V5, 1.0
        Klasse = network
+
'''drv:///indexv3.drv/ibasics3.ppd''' Index Basic-S V3, 1.0
        Info = Internet Printing Protocol (ipps)
+
  '''drv:///indexv4.drv/ibasics4.ppd''' Index Basic-S V4/V5, 1.0
        Hersteller-und-Modell = Unknown
+
'''drv:///indexv4.drv/ibrlbox4.ppd''' Index Braille Box V4/V5, 1.0
        Geräte-ID =
+
'''drv:///indexv3.drv/ieveres3.ppd''' Index Everest-D V3, 1.0
        Standort =
+
'''drv:///indexv4.drv/ieveres4.ppd''' Index Everest-D V4/V5, 1.0
Gerät: URI = smb
+
'''drv:///sample.drv/intelbar.ppd''' Intellitech IntelliBar Label Printer, 2.4
        Klasse = network
+
  '''drv:///sample.drv/okidata9.ppd''' Oki 9-Pin Series
        Info = Windows Printer via SAMBA
+
'''drv:///sample.drv/okidat24.ppd''' Oki 24-Pin Series
        Hersteller-und-Modell = Unknown
+
'''raw''' Raw Queue
        Geräte-ID =
+
'''lsb/usr/cupsfilters/Ricoh-PDF_Printer-PDF.ppd''' Ricoh PDF Printer
        Standort =
+
'''drv:///sample.drv/zebracpl.ppd''' Zebra CPCL Label Printer
  Gerät: URI = dnssd://Brother%20MFC-9142CDN._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055c84eafe
+
'''drv:///sample.drv/zebraep1.ppd''' Zebra EPL1 Label Printer
        Klasse = network
+
'''drv:///sample.drv/zebraep2.ppd''' Zebra EPL2 Label Printer
        Info = Brother MFC-9142CDN
+
  '''drv:///sample.drv/zebra.ppd''' Zebra ZPL Label Printer
        Hersteller-und-Modell = Brother MFC-9142CDN
+
'''everywhere''' IPP Everywhere
        Geräte-ID = MFG:Brother;MDL:MFC-9142CDN;CMD:PJL,PCL,PCLXL,URF;
+
 
        Standort =  
+
= Druckermanagement =
Gerät: URI = dnssd://Virtueller%20Drucker%20%40%20debian._ipp._tcp.local/cups?uuid=350ab29a-1040-39d6-41ab-494d915e42a4
+
 
        Klasse = network
+
* Kommandozeilenbefehle für die Verwaltung der Drucker
        Info = Virtueller Drucker @ debian
+
* Es gibt aber auch ein Webinterface: http://localhost:631
        Hersteller-und-Modell = CUPS CUPS v1.1
+
 
        Geräte-ID = MFG:CUPS;MDL:v1.1;CMD:PDF,PS,JPEG,PNG,PWG,URF;
+
== Standarddrucker festlegen ==
        Standort =  
+
 
Gerät: URI = ipp://Brother%20MFC-9142CDN._ipp._tcp.local/
+
* '''lpoptions -d CUPS-PDF'''
        Klasse = network
+
 
        Info = Brother MFC-9142CDN (driverless)
+
  copies=1 device-uri=lpd://BRN30055C84EAFE/BINARY_P1 finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=1675093730 marker-colors=#000000,#00FFFF,#FF00FF,#FFFF00,none,none,none,none,none,none marker-levels=-1,-1,-1,-1,-1,56,94,94,94,94 marker-names='Black\ Toner\ Cartridge,Cyan\ Toner\ Cartridge,Magenta\ Toner\ Cartridge,Yellow\ Toner\ Cartridge,Waste\ Toner\ Box,Belt\ Unit,Black\ Drum\ Unit,Cyan\ Drum\ Unit,Magenta\ Drum\ Unit,Yellow\ Drum\ Unit' marker-types=toner,toner,toner,toner,waste-toner,other,opc,opc,opc,opc number-up=1 print-color-mode=monochrome printer-commands=none printer-info='Brother MFC-9142CDN' printer-is-accepting-jobs=true printer-is-shared=false printer-is-temporary=false printer-location='Local Printer' printer-make-and-model='Generic PDF Printer' printer-state=3 printer-state-change-time=1675093730 printer-state-reasons=none printer-type=2101276 printer-uri-supported=ipp://localhost/printers/Brother_MFC-9142CDN
        Hersteller-und-Modell = Brother MFC-9142CDN
+
* '''lpstat -d'''
        Geräte-ID = MFG:Brother;MDL:MFC-9142CDN;CMD:PWGRaster,AppleRaster,URF,PWG;
+
 
        Standort =  
+
systemvoreingestelltes Ziel: CUPS-PDF
Gerät: URI = lpd://BRN30055C84EAFE/BINARY_P1
+
 
        Klasse = network
+
== Drucker löschen ==
        Info = Brother MFC-9142CDN
+
 
        Hersteller-und-Modell = Brother MFC-9142CDN
+
* '''lpadmin -x CUPS-PDF'''
        Geräte-ID = MFG:Brother;CMD:PJL,PCL,PCLXL,URF;MDL:MFC-9142CDN;CLS:PRINTER;CID:Brother Color Type4;URF:SRGB24,W8,CP1,IS1-4,MT1-3-4-5-8-11,OB10,PQ4-5,RS600,DM1;
 
        Standort =
 
  
 
== Drucker hinzufügen ==
 
== Drucker hinzufügen ==
  
* '''lpadmin -p virtual -D “Virtueller Drucker” -E -L “Virtual Box” -m lsb/usr/cups-pdf/CUPS-PDF_opt.ppd -v cups-pdf:/'''
+
* '''lpadmin -p virtual -D "Virtueller Drucker" -E -L "Dieser Rechner" -m lsb/usr/cups-pdf/CUPS-PDF_opt.ppd -v cups-pdf:/'''
  
 
= Testseite drucken =
 
= Testseite drucken =
  
* curl “https://www.cups.org/test/document-a4.ps” -o test-page.ps
+
* '''curl https://www.cups.org/test/document-a4.ps -o test-page.ps'''
* lp test-page.ps
+
* '''lp test-page.ps'''
  
 
= Bild drucken =
 
= Bild drucken =
  
* curl “https://www.cups.org/test/document-a4.ps” -o test-page.ps
+
* '''curl https://xinux.net/images/xinux-logo.png?4d304 -o logo.png'''
 +
* '''lp -o landscape -o fit-to-page -o media=A4 logo.png '''

Aktuelle Version vom 22. Februar 2023, 13:39 Uhr

Verfügbare Drucker anzeigen

  • lpstat -p -d
Drucker Brother_MFC-9142CDN ist im Leerlauf.  Aktiviert seit Mo 30 Jan 2023 16:48:50 CET
Drucker CUPS-PDF ist im Leerlauf.  Aktiviert seit Mi 22 Feb 2023 10:38:01 CET
systemvoreingestelltes Ziel: Brother_MFC-9142CDN
  • -p: Zeige nur Drucker an
  • -d: Zeige die Systemvorgabe an

Drucker finden

  • lpinfo -v
network beh
network lpd
network http
file cups-pdf:/
file cups-brf:/
network ipp
network https
network ipps
network socket
network smb
network dnssd://Brother%20MFC-9142CDN._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055c84eafe
network dnssd://Virtueller%20Drucker%20%40%20debian._ipp._tcp.local/cups?uuid=350ab29a-1040-39d6-41ab-494d915e42a4
network ipp://Brother%20MFC-9142CDN._ipp._tcp.local/
network lpd://BRN30055C84EAFE/BINARY_P1
network dnssd://Brother%20MFC-9142CDN._printer._tcp.local/?uuid=e3248000-80ce-11db-8000-30055c84eafe
  • mehr Infos
  • lpinfo -l -v
Gerät: URI = cups-brf:/
       Klasse = file
       Info = CUPS-BRF
       Hersteller-und-Modell = Virtual Braille BRF Printer
       Geräte-ID = MFG:Generic;MDL:CUPS-BRF Printer;DES:Generic CUPS-BRF Printer;CLS:PRINTER;CMD:BRF;
       Standort = 
Gerät: URI = beh
       Klasse = network
       Info = Backend Error Handler
       Hersteller-und-Modell = Unknown
       Geräte-ID = 
       Standort = 
   ...

verfügbare Treiber anzeigen

  • Erste Spalte ist die Datei
  • Danach kommt die Beschreibung
  • lpinfo -m
driverless:ipp://Brother%20MFC-9142CDN._ipp._tcp.local/ Brother MFC-9142CDN, driverless, cups-filters 1.28.17
drv:///sample.drv/dymo.ppd DYMO Label Printer
drv:///sample.drv/epson9.ppd Epson 9-Pin Series
drv:///sample.drv/epson24.ppd Epson 24-Pin Series
lsb/usr/cupsfilters/Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd Fuji Xerox DocuPrint CM305 df PDF
drv:///generic-brf.drv/gen-brf.ppd Generic Braille embosser, 1.0
CUPS-PDF_noopt.ppd Generic CUPS-PDF Printer (no options)
CUPS-PDF_opt.ppd Generic CUPS-PDF Printer (w/ options)
drv:///cupsfilters.drv/pwgrast.ppd Generic IPP Everywhere Printer
drv:///sample.drv/generpcl.ppd Generic PCL Laser Printer
lsb/usr/cupsfilters/Generic-PDF_Printer-PDF.ppd Generic PDF Printer
drv:///sample.drv/generic.ppd Generic PostScript Printer
drv:///cupsfilters.drv/textonly.ppd Generic Text-Only Printer
drv:///generic-ubrl.drv/gen-ubrl.ppd Generic UBRL generator, 1.0
lsb/usr/cupsfilters/HP-Color_LaserJet_CM3530_MFP-PDF.ppd HP Color LaserJet CM3530 MFP PDF
lsb/usr/cupsfilters/pxlcolor.ppd HP Color LaserJet Series PCL 6 CUPS
drv:///cupsfilters.drv/dsgnjt600pcl.ppd HP DesignJet 600 pcl, 1.0
drv:///cupsfilters.drv/dsgnjt750cpcl.ppd HP DesignJet 750c pcl, 1.0
drv:///cupsfilters.drv/dsgnjt1050cpcl.ppd HP DesignJet 1050c pcl, 1.0
drv:///cupsfilters.drv/dsgnjt4000pcl.ppd HP DesignJet 4000 pcl, 1.0
drv:///cupsfilters.drv/dsgnjtt790pcl.ppd HP DesignJet T790 pcl, 1.0
drv:///cupsfilters.drv/dsgnjtt1100pcl.ppd HP DesignJet T1100 pcl, 1.0
drv:///sample.drv/deskjet.ppd HP DeskJet Series
drv:///sample.drv/laserjet.ppd HP LaserJet Series PCL 4/5
lsb/usr/cupsfilters/pxlmono.ppd HP LaserJet Series PCL 6 CUPS
drv:///indexv3.drv/i4waves3.ppd Index 4-Waves PRO, 1.0
drv:///indexv3.drv/i4x4pro3.ppd Index 4x4 PRO V3, 1.0
drv:///indexv3.drv/ibasicd3.ppd Index Basic-D V3, 1.0
drv:///indexv4.drv/ibasicd4.ppd Index Basic-D V4/V5, 1.0
drv:///indexv3.drv/ibasics3.ppd Index Basic-S V3, 1.0
drv:///indexv4.drv/ibasics4.ppd Index Basic-S V4/V5, 1.0
drv:///indexv4.drv/ibrlbox4.ppd Index Braille Box V4/V5, 1.0
drv:///indexv3.drv/ieveres3.ppd Index Everest-D V3, 1.0
drv:///indexv4.drv/ieveres4.ppd Index Everest-D V4/V5, 1.0
drv:///sample.drv/intelbar.ppd Intellitech IntelliBar Label Printer, 2.4
drv:///sample.drv/okidata9.ppd Oki 9-Pin Series
drv:///sample.drv/okidat24.ppd Oki 24-Pin Series
raw Raw Queue
lsb/usr/cupsfilters/Ricoh-PDF_Printer-PDF.ppd Ricoh PDF Printer
drv:///sample.drv/zebracpl.ppd Zebra CPCL Label Printer
drv:///sample.drv/zebraep1.ppd Zebra EPL1 Label Printer
drv:///sample.drv/zebraep2.ppd Zebra EPL2 Label Printer
drv:///sample.drv/zebra.ppd Zebra ZPL Label Printer
everywhere IPP Everywhere

Druckermanagement

  • Kommandozeilenbefehle für die Verwaltung der Drucker
  • Es gibt aber auch ein Webinterface: http://localhost:631

Standarddrucker festlegen

  • lpoptions -d CUPS-PDF
copies=1 device-uri=lpd://BRN30055C84EAFE/BINARY_P1 finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=1675093730 marker-colors=#000000,#00FFFF,#FF00FF,#FFFF00,none,none,none,none,none,none marker-levels=-1,-1,-1,-1,-1,56,94,94,94,94 marker-names='Black\ Toner\ Cartridge,Cyan\ Toner\ Cartridge,Magenta\ Toner\ Cartridge,Yellow\ Toner\ Cartridge,Waste\ Toner\ Box,Belt\ Unit,Black\ Drum\ Unit,Cyan\ Drum\ Unit,Magenta\ Drum\ Unit,Yellow\ Drum\ Unit' marker-types=toner,toner,toner,toner,waste-toner,other,opc,opc,opc,opc number-up=1 print-color-mode=monochrome printer-commands=none printer-info='Brother MFC-9142CDN' printer-is-accepting-jobs=true printer-is-shared=false printer-is-temporary=false printer-location='Local Printer' printer-make-and-model='Generic PDF Printer' printer-state=3 printer-state-change-time=1675093730 printer-state-reasons=none printer-type=2101276 printer-uri-supported=ipp://localhost/printers/Brother_MFC-9142CDN
  • lpstat -d
systemvoreingestelltes Ziel: CUPS-PDF

Drucker löschen

  • lpadmin -x CUPS-PDF

Drucker hinzufügen

  • lpadmin -p virtual -D "Virtueller Drucker" -E -L "Dieser Rechner" -m lsb/usr/cups-pdf/CUPS-PDF_opt.ppd -v cups-pdf:/

Testseite drucken

Bild drucken