Description for the UCI configuration file
For installations instructions and more see: 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):
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
uci show p910nd
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
To add a second printer, do this:
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
To delete the second printer, do this:
uci del p910nd.cfg2 uci commit p910nd /etc/init.d/p910nd restart
Description of the options in the p910nd config file
||device path||/dev/usb/lp0||The device your printer is connected to (e.g.
||The p910nd listening TCP port (9100 + port)|
||IP address||unknown||The IP address to listen on (typically the same as LAN)|
To start the p910nd daemon, do this:
To start it up automatically on every boot, do 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 this issue.
doc/uci/p910nd.txt · Last modified: 2014/05/14 00:03 by feka