User Tools

Site Tools


doc:howto:cups.server

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
doc:howto:cups.server [2013/01/10 14:32]
francisco Remove part about clients as that is covered below
doc:howto:cups.server [2013/09/04 20:41] (current)
francisco
Line 76: Line 76:
 There is a problem with the permissions on USB printers not being writable by nobody, which is what CUPS expects. ​ An alternative is to make a wrapper backend that executes a sudo script which does ''​find /​proc/​bus/​usb -type f -exec chmod +rw {} \;''​. ​ Point being, there is a permission problem between USB/udev and CUPS preventing USB-printers from working. ​ Also, CUPS is removing support or has a lot of issues currently with usblp support. There is a problem with the permissions on USB printers not being writable by nobody, which is what CUPS expects. ​ An alternative is to make a wrapper backend that executes a sudo script which does ''​find /​proc/​bus/​usb -type f -exec chmod +rw {} \;''​. ​ Point being, there is a permission problem between USB/udev and CUPS preventing USB-printers from working. ​ Also, CUPS is removing support or has a lot of issues currently with usblp support.
  
 +In Attitude Adjustment, you just need to change ACL on /​usr/​lib/​cups/​backend/​usb to 700 (''​chmod 700 /​usr/​lib/​cups/​backend/​usb''​). ​ This changes the behaviour of cups, which normally tries to execute the backend through a user account other than root.  This forces the backend to run as root from cups, the reason have been said above.
 === Printers must be Shared === === Printers must be Shared ===
  
 In order to use the printers from other clients in your network, the printers must be //shared//. In the Web GUI, when adding a printer you should mark the check box ''"​Share This Printer"''​. In order to use the printers from other clients in your network, the printers must be //shared//. In the Web GUI, when adding a printer you should mark the check box ''"​Share This Printer"''​.
  
-=== Adding ​a PPD ===+=== Adding ​drivers / PPDs ===
  
-If you have a special [[wp>​PostScript Printer Description|PostScript Printer Description (ppd)]]-file for your printer, copy it to ''/​usr/​share/​cups/​model/''​ and restart ''​cupsd''​. Cups will install it in ''/​etc/​cups/​ppd''​ and you can choose it via the web interface. ([[http://​192.168.1.1:​631]]).+If you have a special [[wp>​PostScript Printer Description|PostScript Printer Description (ppd)]]-file for your printer, copy it to ''/​usr/​share/​cups/​model/''​ and restart ''​cupsd''​. Cups will install it in ''/​etc/​cups/​ppd''​ and you can choose it via the web interface. ([[http://​192.168.1.1:​631]]). You can also upload a PPD file through the web interface. **The trick here is that without Ghostscript you are unlikely to get on-router file conversion to work**
  
-You can also upload a PPD file through the web interface.+You really get two alternatives:​
  
-Note that the PPDs often require raster programs to actually print. One alternative is to print to a raw queue. +  - use the printer with a raw queue, and set drivers (i.e. PPD) in your computer/​laptop. In this casethe 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 hasIf you've [[extroot|extended ​your root space]] and are willing to do some [[http://​wiki.openwrt.org/​doc/​devel/​crosscompile|cross compilation]],​ you can try these unofficial packages [[https://​github.com/​FranciscoBorges/​openwrt-printing-packages|openwrt-printing-packages]]
-If you have a Canon printeryou can install ''​cups-bjnp'' ​to use it as CUPS drivers. ​It also works for printer in your network.+
  
 === MacOS X tip ===  === MacOS X tip === 
Line 122: Line 122:
   * Project Homepage [[http://​www.cups.org/​]]   * Project Homepage [[http://​www.cups.org/​]]
   * [[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]]
  
 === OpenWrt User posts about installing CUPS === === OpenWrt User posts about installing CUPS ===
doc/howto/cups.server.1357824720.txt.bz2 · Last modified: 2013/01/10 14:32 by francisco