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
Next revisionBoth sides next revision
docs:guide-user:services:print_server:cups.server [2018/03/03 20:19] – ↷ Page moved from docs:user-guide:services:print_server:cups.server to docs:guide-user:services:print_server:cups.server bobafetthotmaildocs:guide-user:services:print_server:cups.server [2019/08/10 16:14] someothertime
Line 1: Line 1:
 ====== CUPS Print Server ====== ====== CUPS Print Server ======
 This HowTo provides information on installing and configuring a [[wp>Common Unix Printing System]] on OpenWrt. This HowTo provides information on installing and configuring a [[wp>Common Unix Printing System]] on OpenWrt.
 +
 +NOTE: It is recommended to use p910nd non-spooling print server instead of CUPS on a router
 +
 +
 +====Installation on LEDE/OpenWrt 17+ firmware====
 +
 +**There is no pre-built CUPS package for LEDE/OpenWrt 17+**
 +
 +==== Basic instructions to compile CUPS ====
 +
 +Obtain and configure a working currently supported buildroot
 +
 +   make menuconfig
 +   Libraries > [*] libcups
 +   make V=s
 +
 +Optionally copy ipk's to router and install with opkg.
 +
 +( see the bottom for further resources )
 +
 +Opkg methods below are for pre-17 builds and/or after compiling your own packages.
 +
  
 ===== Preparation ===== ===== Preparation =====
 ==== Prerequisites ==== ==== Prerequisites ====
-  - obtain [[doc:howto:usb.essentials]] basic USB support or ([[doc:howto:parport]] Parallel Port support)+  - obtain [[docs:guide-user:storage:usb-installing]] basic USB support or ([[doc:howto:parport]] Parallel Port support)
   - drivers   - drivers
   - kernel module for USB printers: opkg install kmod-usb-printer   - kernel module for USB printers: opkg install kmod-usb-printer
   - Firewall: open ports    tcp and   udp.   - Firewall: open ports    tcp and   udp.
 CUPS mandatory uses spooling, which means that the entire print job data gets stored in a buffer (on harddisc or in RAM) before the printing is even started. Dependent of what you want to print, your resources are probably that limited that you should not use CUPS. But of course you can add resources to your hardware, like say connect a harddisc per USB. CUPS mandatory uses spooling, which means that the entire print job data gets stored in a buffer (on harddisc or in RAM) before the printing is even started. Dependent of what you want to print, your resources are probably that limited that you should not use CUPS. But of course you can add resources to your hardware, like say connect a harddisc per USB.
-  - [[docs:user-guide:storage:usb-drives]] to mount a filesystem or a SWAP partition. This should massively upgrade your endowment.+  - [[docs:guide-user:storage:usb-drives]] to mount a filesystem or a SWAP partition. This should massively upgrade your endowment.
   - you cannot mount SWAP over network but you could mount any other filesystem over the network and park the data there, see [[doc:howto:server.overview#filesystem]]   - you cannot mount SWAP over network but you could mount any other filesystem over the network and park the data there, see [[doc:howto:server.overview#filesystem]]
  
Line 25: Line 47:
  
 ===== Installation ===== ===== Installation =====
-[[docs:user-guide:additional-software:opkg]]+[[docs:guide-user:additional-software:opkg]]
 <code bash> <code bash>
 opkg install cups opkg install cups
Line 38: Line 60:
 </code> </code>
  
-====Installation on LEDE firmware==== +
-https://github.com/Gr4ffy/lede-cups+
 ===== Configuration ===== ===== Configuration =====
 ==== CUPSD configuration ==== ==== CUPSD configuration ====
Line 89: Line 110:
  
   - use the printer with a raw queue, and set drivers (i.e. PPD) in your computer/laptop. In this case, the file conversion and preparation will be done on your computer/laptop (as opposed to on the router)   - use the printer with a raw queue, and set drivers (i.e. PPD) in your computer/laptop. In this case, the file conversion and preparation will be done on your computer/laptop (as opposed to on the router)
-  - add printing drivers to your router. Notice that the usual "Linux printing drivers/filters" stack requires more space than a normal router has. If you've [[docs:user-guide:additional-software:extroot_configuration|extended your root space]] and are willing to do some [[docs:guide-developer:crosscompile|cross compilation]], you can try these unofficial packages [[https://github.com/FranciscoBorges/openwrt-printing-packages|openwrt-printing-packages]]+  - add printing drivers to your router. Notice that the usual "Linux printing drivers/filters" stack requires more space than a normal router has. If you've [[docs:guide-user:additional-software:extroot_configuration|extended your root space]] and are willing to do some [[docs:guide-developer:crosscompile|cross compilation]], you can try these unofficial packages [[https://github.com/FranciscoBorges/openwrt-printing-packages|openwrt-printing-packages]]
  
 === MacOS X tip ===  === MacOS X tip === 
Line 99: Line 120:
 This page has good notes about configuring clients for Linux, Windows and Mac OSX: This page has good notes about configuring clients for Linux, Windows and Mac OSX:
  
-[[docs:user-guide:services:print_server:p910nd.server#configure.the.clients.for.printing]].+[[docs:guide-user:services:print_server:p910nd.server#configure.the.clients.for.printing]].
  
 The main point is that if you added printers and marked them as shared, all these operating system should be able to find it as a network printer. The main point is that if you added printers and marked them as shared, all these operating system should be able to find it as a network printer.
Line 117: Line 138:
  
 ==== Log Messages ==== ==== Log Messages ====
-Check [[docs:user-guide:troubleshooting:log.messages#cupsd]] to learn what they mean.+Check [[docs:guide-user:perf_and_log:log.messages#cupsd]] to learn what they mean.
  
  
 ===== Notes ===== ===== Notes =====
   * Project Homepage [[http://www.cups.org/]]   * Project Homepage [[http://www.cups.org/]]
 +  * Legacy Official Repo [[https://github.com/Gr4ffy/lede-cups]]
 +  * hplip-common, plip-sane 
   * [[https://forum.openwrt.org/viewtopic.php?pid=135838#p135838|Notes on possibilities of using drivers]]   * [[https://forum.openwrt.org/viewtopic.php?pid=135838#p135838|Notes on possibilities of using drivers]]
   * Package feed for cross-compiling the whole Linux printing stack for your router [[https://github.com/FranciscoBorges/openwrt-printing-packages]]   * Package feed for cross-compiling the whole Linux printing stack for your router [[https://github.com/FranciscoBorges/openwrt-printing-packages]]
Line 127: Line 150:
 === OpenWrt User posts about installing CUPS === === OpenWrt User posts about installing CUPS ===
   * [[http://mattie47.com/getting-cups-working-on-openwrt/]]   * [[http://mattie47.com/getting-cups-working-on-openwrt/]]
-  * [[http://www.newren.com.au/ibbs/forum.php?mod=viewthread&tid=392]]+  * [[http://www.newren.com.au/ibbs/forum.php?mod=viewthread&tid=392]] broken-wulfy23-040519
   * [[http://9m2tpt.blogspot.co.nz/2012/01/cups-hl-2140-usb-printer-wzr-hp-g300nh.html]]   * [[http://9m2tpt.blogspot.co.nz/2012/01/cups-hl-2140-usb-printer-wzr-hp-g300nh.html]]
  
  • Last modified: 2021/10/15 08:35
  • by bobafetthotmail