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
docs:user-guide:services:p910nd [2018/02/17 21:52] – ↷ Page moved from doc:uci:p910nd to docs:user-guide:services:p910nd bobafetthotmaildocs:guide-user:services:print_server:p910nd [2019/08/26 10:50] (current) – headers vgaetera
Line 2: Line 2:
 Description for the UCI configuration file ''/etc/config/p910nd''. Description for the UCI configuration file ''/etc/config/p910nd''.
  
-For installations instructions and more see: [[docs:user-guide:services:p910nd.server]].+For installations instructions and more see: [[docs:guide-user:services:print_server:p910nd.server]]
 +You can run more than one printer at the same time by adding additional sections.
  
 +The default configuration is (list all configured printers):
  
-TODO +<code bash
- +uci show p910nd 
-You can run more than one printer at the same time by adding additional sections. The default configuration is (list all configured printers): +</code>
- +
-Under Linux 2.4, the device name for the printer would be of the form /dev/usb/lpn, where n is usually 0 for the first printer. Under Linux 2.6, the device name for the printing would be of the form /dev/lpn +
- +
-<code> +
-uci show p910nd</code> +
- +
-<code> +
-uci set p910nd.cfg1=p910nd +
-uci set p910nd.cfg1.device=/dev/usb/lp0 +
-uci set p910nd.cfg1.port=0 +
-uci set p910nd.cfg1.bidirectional=1 +
-uci set p910nd.cfg1.enabled=1</code> +
- +
-To add a second printer, do this: +
- +
-<code> +
-uci set p910nd.cfg2=p910nd +
-uci set p910nd.cfg2.device=/dev/usb/lp1 +
-uci set p910nd.cfg2.port=1 +
-uci set p910nd.cfg2.bidirectional=1 +
-uci set p910nd.cfg2.enabled=1 +
-uci commit p910nd +
-/etc/init.d/p910nd restart</code> +
- +
-To delete the second printer, do this: +
- +
-<code> +
-uci del p910nd.cfg2 +
-uci commit p910nd +
-/etc/init.d/p910nd restart</code>+
  
 +===== Configuration =====
 Description of the options in the p910nd config file ''/etc/config/p910nd'': Description of the options in the p910nd config file ''/etc/config/p910nd'':
  
Line 48: Line 21:
 | ''bind'' | IP address | unknown | The IP address to listen on (typically the same as LAN)|  | ''bind'' | IP address | unknown | The IP address to listen on (typically the same as LAN)| 
  
-To start the p910nd daemondo this:+**Note:** Enabling the service might not work as expected (not starting the service at boot time) on current Barrier Breaker versions (as of 2014.05.13)see [[https://dev.openwrt.org/ticket/14909|this issue]].
  
-<code> +===== Example ===== 
-/etc/init.d/p910nd start</code>+<code bash> 
 +# Add a printer 
 +uci -q delete p910nd.prn1 
 +uci set p910nd.prn1=p910nd 
 +uci set p910nd.prn1.device=/dev/usb/lp1 
 +uci set p910nd.prn1.port=1 
 +uci set p910nd.prn1.bidirectional=1 
 +uci set p910nd.prn1.enabled=1 
 +uci commit p910nd 
 +/etc/init.d/p910nd restart
  
-To start it up automatically on every boot, do this:+# Delete the printer prn1 
 +uci delete p910nd.prn1 
 +uci commit p910nd 
 +/etc/init.d/p910nd restart 
 +</code>
  
-<code> +  * Under Linux 2.4, the device name for the printer would be of the form /dev/usb/lpn, where n is usually 0 for the first printer
-/etc/init.d/p910nd enable</code> +  Under Linux 2.6, the device name for the printing would be of the form /dev/lpn
- +
-**Note:** Enabling the service might not work as expected (not starting the service at boot time) on current Barrier Breaker versions (as of 2014.05.13), see [[https://dev.openwrt.org/ticket/14909|this issue]].+
  
  • Last modified: 2019/08/26 10:50
  • by vgaetera