printer:printer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
printer:printer [2016-04-23 14:50] – Add a section about the LPRng daemon nicooprinter:printer [2025-11-09 09:25] (current) – external edit 127.0.0.1
Line 1: Line 1:
-===== Printer ===== +{{tag>printing printer drucker drucken papier}} 
-The printer itself is a Lexmark E120n.+===== Printing =====
  
-It is reachable over the LAN, at ''drucker.realraum.at'', and you can print to it using JetDirect.+The printers in r3 are 
  
-===== LPRng configuration ======+^ Printer ^ Where ^ Papersize ^ Colour ^ Tech ^ cost ^ recommended connection ^ 
 +| HP LaserJet 8000          | W2 hallway | A4/A3 | no | laser | cheap        | via drucker.realraum.at | 
 +| HP Business Inkjet 2250tn | W1 CX      | A4    | yes | ink   | ~           | via USB                 | 
 +| HP Color Laserjet CP2025 | W2 hallway  | A4     | yes | laser | less cheap | via USB (LAN untested)  |
  
-You can use directly LPRng to print from your computer, no CUPS needed!+==== Printing via drucker.realraum.at ====
  
-The packages you will need (on Debian Stretch) are: +To view status of or cancel print-jobs use the [[http://drucker.realraum.at:631/jobs/|CUPS Administrative Interface]]
-  * ''printer-driver-hpijs'' +
-  * ''ghostscript'' +
-  * ''foomatic-filters'' and ''foomatic-db'' +
-  * ''lprng'' (obviously!)+
  
-==== Enabling the LPRng daemon ====+The BeagleBone drucker.realraum.at will automagically switch the big printer on and off.
  
-  sudo checkpc -f # Fix various directory permissions +  * any system (experimental): 
-  sudo systemctl enable lprng +    * goto http://drucker.realraum.at 
-  sudo systemctl start  lprng+    * upload a ''.pdf'' or ''.ps'' or ''.png'' or ''.jpg'' file with A4 paper size 
 +    * wait up to 20 seconds 
 +  * on Linux: 
 +    * CUPS will automagically list the available printers without installing it in your printing dialog. 
 +    * All you need to do is 
 +      be in the realraum Network 
 +      - select the desired printer when printing something 
 +  * on Windows: 
 +    - Browse to ''\\drucker.realraum.at\'' 
 +    - Right click on ''HP Laserjet 8000 PCL fast'' and choose ''install''
 +    - Choose to select a custom printer driver 
 +    - Select ''HP Laserjet 5200 Series PCL 5'' or ''HP LaserJet PCLm Class Driver''  or download original Driver 
 +    - Print
  
-Autostarting the LPRng daemon is relatively safe: by default, it only listens on a UNIX socket.+==== Details ====
  
-==== Creating a PPD file ====+|  Model | HP LaserJet 8000 | 
 +|  Printer url | ''[[ipp://drucker.realraum.at:631/printers/HP_LaserJet_8000_Series]]''
 +|  Location | realraum Whg2 CX | 
 +|  CUPS Driver PCL | ''hp-laserjet_8000_series-pcl3.ppd'' 
 +|  CUPS Driver PS | ''HP-LaserJet_8000-Postscript.ppd''   | 
 +|  rec. Windows Driver | ''HP Laserjet 5200 Series PCL 5''
 +| ------------ | ------------ |  
 +|  Model | HP business injket 2250tn | 
 +|  Printer url | ''[[ipp://drucker.realraum.at:631/printers/HP_BUSINESS_INKJET_2250]]''
 +|  Location | realraum Whg1 CX | 
 +|  CUPS Driver PCL | '''' 
 +|  CUPS Driver PS | ''''   | 
 +|  rec. Windows Driver | ''''
 +| ------------ | ------------ |  
 +|  Model | HP Colour Laserjet CP2025 | 
 +|  Printer url | TBD | 
 +|  Location | realraum Whg2 Gang | 
 +|  CUPS Driver PCL | '''' 
 +|  CUPS Driver PS | ''''   | 
 +|  rec. Windows Driver | '''' |
  
-The printer driver needs a PPD file, that you can create out of the foomatic database as follows:+=== known Problems with drucker.realraum.at BeagleBone ===
  
-  foomatic-ppdfile -p Lexmark-E120n | sudo tee /etc/lprng/Lexmark-E120n.ppd > /dev/null+  * Printer does not power on: Wait, the script checks for print-jobs only every 30s. Also, some <del>morron</del>well-meaning-person might have disconnected the BeagleBone, the Printer or the power or switched off the printer manually.
  
 +  * Does not print but printer powers on. (Printers displays "STANDBY" not "PROCESSING"): Check if green LEDs on Belkin USB-Hub are lit. If not, unplug USB-Hub from BeagleBone, unplug USB-Hub-Power and plug everything back in.
  
-==== Configuring LPRng ====+  * If it does not work: Check if the tiny white usb-hub has power. Disconnect and Reconnect all USB-cables and power from the tiny white usb-hub. That should be all that's needed, unless the USB-LPT cable has a loose contact inside the cable.
  
-LPRng comes with an example ''/etc/printcap'' file, that you may or may not use. +  * Printing slowrecently we switched the Laserjet from PCL driver (fast) back to PostScript-Driver (slow) since only the PostScript-Driver supports A3.
-In any case, here is the configuration you actually need:+
  
-  .common: +  * Injket Error pageThe CUPS support for the 2250TN is poorCurrently there is a choice between one driver that crashes the printer after one page or another driver that prints successfully but with one error-page after each print-job. We choose the later.
-  :sd=/var/spool/lpd/%P +
-  :sh:mx=0:mc=0 +
-  :force_localhost +
-   +
-  realraum:tc=.common:lp=drucker.realraum.at%9100 +
-  :if=/usr/bin/foomatic-rip:  +
-  :filter_options= --lprng $Z /etc/lprng/Lexmark-E120n.ppd: +
  
-==== Make GTK 2 applications use LPRng ====+  * It's printing garbage: Use the correct autodiscovered CUPS printer. Don't configure something yourself.
  
-Write ''gtk-print-backends = "file,lpr"'' in ''~/.gtkrc-2.0''.+  * on a recent testa 32 page paper printed, though on some pages only 66.6% text was printedWe assume it was the devils work, as no other possible reason or log entry came forth and plead guilty
  
-UnfortunatelyAFAIK GTK 3 has no support for LPR.+ 
 +=== Trouble shooting=== 
 + 
 +In the unlikely case that the printer does only print PS or PCL commandsabort the print job directly on the printer or you might end up with hundreds of useless pages. 
 + 
 +=== Todo === 
 + 
 +  * Test 
 +  * see if its necessary / better to use https://github.com/alberanid/httprint
  • /srv/dokuwiki/data/attic/printer/printer.1461423021.txt.gz
  • Last modified: 2025-11-09 09:24
  • (external edit)