CUPS Handling: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 5: Zeile 5:
 
  Drucker Brother_MFC-9142CDN ist im Leerlauf.  Aktiviert seit Mo 30 Jan 2023 16:48:50 CET
 
  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
 
  Drucker CUPS-PDF ist im Leerlauf.  Aktiviert seit Mi 22 Feb 2023 10:38:01 CET
  systemvoreingestelltes Ziel: CUPS-PDF
+
  systemvoreingestelltes Ziel: Brother_MFC-9142CDN
 
* '''-p''': Zeige nur Drucker an
 
* '''-p''': Zeige nur Drucker an
 
* '''-d''': Zeige die Systemvorgabe an
 
* '''-d''': Zeige die Systemvorgabe an
Zeile 11: Zeile 11:
 
= Standarddrucker festlegen =
 
= Standarddrucker festlegen =
  
* '''lpoptions -d Brother_MFC-9142CDN'''
+
* '''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
 
  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'''
 
* '''lpstat -d'''
  
  systemvoreingestelltes Ziel: Brother_MFC-9142CDN
+
  systemvoreingestelltes Ziel: CUPS-PDF
 +
 
 +
= Druckermanagement =
 +
 
 +
== Drucker löschen ==
 +
 
 +
* '''lpadmin -x CUPS-PDF'''
 +
 
 +
== 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 =
 +
Gerät: URI = cups-pdf:/
 +
        Klasse = file
 +
        Info = CUPS-PDF
 +
        Hersteller-und-Modell = Virtual PDF Printer
 +
        Geräte-ID = MFG:Generic;MDL:CUPS-PDF Printer;DES:Generic CUPS-PDF Printer;CLS:PRINTER;CMD:POSTSCRIPT;
 +
        Standort =
 +
Gerät: URI = https
 +
        Klasse = network
 +
        Info = Internet Printing Protocol (https)
 +
        Hersteller-und-Modell = Unknown
 +
        Geräte-ID =
 +
        Standort =
 +
Gerät: URI = lpd
 +
        Klasse = network
 +
        Info = LPD/LPR-Host oder -Drucker
 +
        Hersteller-und-Modell = Unknown
 +
        Geräte-ID =
 +
        Standort =
 +
Gerät: URI = socket
 +
        Klasse = network
 +
        Info = AppSocket/HP JetDirect
 +
        Hersteller-und-Modell = Unknown
 +
        Geräte-ID =
 +
        Standort =
 +
Gerät: URI = ipp
 +
        Klasse = network
 +
        Info = Internet Printing Protocol (ipp)
 +
        Hersteller-und-Modell = Unknown
 +
        Geräte-ID =
 +
        Standort =
 +
Gerät: URI = http
 +
        Klasse = network
 +
        Info = Internet Printing Protocol (http)
 +
        Hersteller-und-Modell = Unknown
 +
        Geräte-ID =
 +
        Standort =
 +
Gerät: URI = ipps
 +
        Klasse = network
 +
        Info = Internet Printing Protocol (ipps)
 +
        Hersteller-und-Modell = Unknown
 +
        Geräte-ID =
 +
        Standort =
 +
Gerät: URI = smb
 +
        Klasse = network
 +
        Info = Windows Printer via SAMBA
 +
        Hersteller-und-Modell = Unknown
 +
        Geräte-ID =
 +
        Standort =
 +
Gerät: URI = dnssd://Brother%20MFC-9142CDN._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055c84eafe
 +
        Klasse = network
 +
        Info = Brother MFC-9142CDN
 +
        Hersteller-und-Modell = Brother MFC-9142CDN
 +
        Geräte-ID = MFG:Brother;MDL:MFC-9142CDN;CMD:PJL,PCL,PCLXL,URF;
 +
        Standort =
 +
Gerät: URI = dnssd://Virtueller%20Drucker%20%40%20debian._ipp._tcp.local/cups?uuid=350ab29a-1040-39d6-41ab-494d915e42a4
 +
        Klasse = network
 +
        Info = Virtueller Drucker @ debian
 +
        Hersteller-und-Modell = CUPS CUPS v1.1
 +
        Geräte-ID = MFG:CUPS;MDL:v1.1;CMD:PDF,PS,JPEG,PNG,PWG,URF;
 +
        Standort =
 +
Gerät: URI = ipp://Brother%20MFC-9142CDN._ipp._tcp.local/
 +
        Klasse = network
 +
        Info = Brother MFC-9142CDN (driverless)
 +
        Hersteller-und-Modell = Brother MFC-9142CDN
 +
        Geräte-ID = MFG:Brother;MDL:MFC-9142CDN;CMD:PWGRaster,AppleRaster,URF,PWG;
 +
        Standort =
 +
Gerät: URI = lpd://BRN30055C84EAFE/BINARY_P1
 +
        Klasse = network
 +
        Info = Brother MFC-9142CDN
 +
        Hersteller-und-Modell = Brother MFC-9142CDN
 +
        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 ==
 +
 
 +
* '''lpadmin -p virtual -D “Virtueller Drucker” -E -L “Virtual Box” -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
 +
* lp test-page.ps
  
 
= Bild drucken =
 
= Bild drucken =
 +
 +
* curl “https://www.cups.org/test/document-a4.ps” -o test-page.ps

Version vom 22. Februar 2023, 13:18 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

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

Druckermanagement

Drucker löschen

  • lpadmin -x CUPS-PDF

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 = 
Gerät: URI = cups-pdf:/
       Klasse = file
       Info = CUPS-PDF
       Hersteller-und-Modell = Virtual PDF Printer
       Geräte-ID = MFG:Generic;MDL:CUPS-PDF Printer;DES:Generic CUPS-PDF Printer;CLS:PRINTER;CMD:POSTSCRIPT;
       Standort = 
Gerät: URI = https
       Klasse = network
       Info = Internet Printing Protocol (https)
       Hersteller-und-Modell = Unknown
       Geräte-ID = 
       Standort = 
Gerät: URI = lpd
       Klasse = network
       Info = LPD/LPR-Host oder -Drucker
       Hersteller-und-Modell = Unknown
       Geräte-ID = 
       Standort = 
Gerät: URI = socket
       Klasse = network
       Info = AppSocket/HP JetDirect
       Hersteller-und-Modell = Unknown
       Geräte-ID = 
       Standort = 
Gerät: URI = ipp
       Klasse = network
       Info = Internet Printing Protocol (ipp)
       Hersteller-und-Modell = Unknown
       Geräte-ID = 
       Standort = 
Gerät: URI = http
       Klasse = network
       Info = Internet Printing Protocol (http)
       Hersteller-und-Modell = Unknown
       Geräte-ID = 
       Standort = 
Gerät: URI = ipps
       Klasse = network
       Info = Internet Printing Protocol (ipps)
       Hersteller-und-Modell = Unknown
       Geräte-ID = 
       Standort = 
Gerät: URI = smb
       Klasse = network
       Info = Windows Printer via SAMBA
       Hersteller-und-Modell = Unknown
       Geräte-ID = 
       Standort = 
Gerät: URI = dnssd://Brother%20MFC-9142CDN._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055c84eafe
       Klasse = network
       Info = Brother MFC-9142CDN
       Hersteller-und-Modell = Brother MFC-9142CDN
       Geräte-ID = MFG:Brother;MDL:MFC-9142CDN;CMD:PJL,PCL,PCLXL,URF;
       Standort = 
Gerät: URI = dnssd://Virtueller%20Drucker%20%40%20debian._ipp._tcp.local/cups?uuid=350ab29a-1040-39d6-41ab-494d915e42a4
       Klasse = network
       Info = Virtueller Drucker @ debian
       Hersteller-und-Modell = CUPS CUPS v1.1
       Geräte-ID = MFG:CUPS;MDL:v1.1;CMD:PDF,PS,JPEG,PNG,PWG,URF;
       Standort = 
Gerät: URI = ipp://Brother%20MFC-9142CDN._ipp._tcp.local/
       Klasse = network
       Info = Brother MFC-9142CDN (driverless)
       Hersteller-und-Modell = Brother MFC-9142CDN
       Geräte-ID = MFG:Brother;MDL:MFC-9142CDN;CMD:PWGRaster,AppleRaster,URF,PWG;
       Standort = 
Gerät: URI = lpd://BRN30055C84EAFE/BINARY_P1
       Klasse = network
       Info = Brother MFC-9142CDN
       Hersteller-und-Modell = Brother MFC-9142CDN
       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

  • lpadmin -p virtual -D “Virtueller Drucker” -E -L “Virtual Box” -m lsb/usr/cups-pdf/CUPS-PDF_opt.ppd -v cups-pdf:/

Testseite drucken

Bild drucken