Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
rechner:drucker

hp4000

Option für Kommandozeile lpr -Php4000 -o …:

  • -o Duplex=None
  • -o Duplex=DuplexNoTumble (long edge - beidseitig A4))
  • -o Duplex=DuplexTumble (short edge - booklet)

Weitere Optionen am besten über acroread→hp4000→properties. Eingestellte Optionen werden dort als Printer Command angezeigt.

spezielle Drucke

pdf auf A5 booklet

  1. in postscript wandeln: pdftops <dateiname>.pdf
  2. A5 einseitig (Rückseite leer) drucken: psbook <dateiname>.ps | psnup -2 | lpr
  3. A5 duplex drucken: psbook <dateiname>.ps | psnup -2 | pstops “2:0,1LUR(1w,1h)” | lpr

Alternativ: acroread - print - booklet

CUPS

Einrichten

Beim Client muss ssh des aufrufenden Nutzers zu s222 ohne Passwortabfrage möglich sein!

PPD's

Bei der Druckereinrichtung unter Modell ppd-files direkt wählen. Die ppd-files sind unter /usr/share/ppd

Kommandozeile

You can also simply use the command line to administer the printers. You can add a network printer enable the printer with:

# lpadmin -p hplj -v socket://192.168.0.6:9100/ -E

Another example for a LPD print server:

# lpadmin -p lp1nd -v lpd://printhost/lp1nd -E

To add information about the Location and a Description of the printer:

# lpadmin -p lp0 -L "Level 2 South" -D "HP LaserJet 4"

To specify a PPD for the printer:

# lpadmin -p lp7 -P /usr/share/postscript/ppd/HP_LaserJet_4050_Series.ppd
# lpadmin -p lp11 -P LEXC750.PPD

The PPD file is copied into /etc/cups/ppd/lp11.ppd, for example.

You can look at the printer options (assuming it has a PPD) with:

# lpoptions -p lp7 -l

And you can set options with:

# lpoptions -p lp7 -o PageSize=A4
# lpoptions -p lp1 -o PageSize=A4

And so on. These options are placed in /etc/cups/lpoptions. The same options can be set using the web interface. The web interface is indeed somewhat easier to use, and it modifies the PPD file directly (e.g., /etc/cups/ppd/lp1.ppd) rather than using the /etc/cups/lpoptions file!

You can access printer options directly from the command line when printing, if the printer's PPD supports the option. For example, the HP LaserJet 4050 driver I'm using (from hp-ppd) supports n-up printing and watermarks:

$ lp -o HPNup=TwoUpL sample.pdf
$ lp -o HPwmText=Draft odbcmine.pdf

FAQ

xpdf druckt nur die erste Seite

  • xpdf druckt mit psnup -2|lpr nur eine Seite. Grund ist nicht die hp5m.ppd sondern die eingestellten options für diesen Drucker.
  • * Abhilfe - abschalten er Optionen: psnup -2| lpr -o raw
    • oder Ändern der Optionen-Voreinstellung: $ lpoptions -php5m -oraw (als Nutzer aufgerufen nur für diesen Drucker und Nutzer. Als root für alle Nutzer dieses Druckers)
  • Drucker Optionen:
    • aktuell voreingestellte Optionen: $lpoptions -php5m
    • Verfügbare Optionen: $lpoptions -php5m -l
    • Optionen löschen: $lpoptions -php5m -r prettyprint

evince hat falschen Papertray (bb)

evince verwendet Konfigurationsdatei unter /home/ns/.cups/lpoptions. Entsprechende Zeile auskommentieren. (z.B.: #Dest bb BRInputSlot=Tray2)

Client druckt nicht

/etc/cups datei client.conf mit Inhalt: ServerName s222 anlegen. Test z.B. mit lpoptions -p hp5m -l

rechner/drucker.txt · Last modified: 2024/04/15 00:43 by 127.0.0.1