File: README.Debian

package info (click to toggle)
p910nd 0.97-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 264 kB
  • sloc: ansic: 1,619; sh: 219; makefile: 102; perl: 45
file content (44 lines) | stat: -rw-r--r-- 1,324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
p910nd for Debian
-----------------

p910nd is not started by default.
On non-systemd systems,
you need to edit /etc/default/p910nd and change some options:

 * P910ND_OPTS: Use this variable to set p910nd options.
                See man p910nd(8) for all options

 * P910ND_NUM: Printer number ( use port: 9100 + P910ND_NUM )

 * P910ND_START: In Debian this variable enable or disable p910nd start.
                 p910nd exposes TCP ports and admin is responsible
                 for securing it.
                 Set to "1" to enable p910nd.

Example:
  Start p910nd in 9100 port with /dev/usb/lp1 USB printer.

    P910ND_OPTS=" -f /dev/usb/lp1"
    P910ND_NUM="0"
    P910ND_START="1"

Under systemd, P910ND_OPTS is still respected,
but P910ND_NUM/P910ND_START are replaced with "systemctl enable p910nd@0"
(equivalent to P910ND_NUM=0 P910ND_START=1)
or "systemctl enable p910nd@1"
(equivalent to P910ND_NUM=1 P910ND_START=1);
you can enable multiple at a time.

In Debian p910nd is compiled with USE_LIBWRAP.
Access control can be done with /etc/hosts.allow and /etc/hosts.deny.
The service name is p910nd.

Example (only allow local network):

  /etc/hosts.allow
    p910nd: 192.168.0.

  /etc/hosts.deny
    p910nd: ALL

 -- Mario Izquierdo (mariodebian) <mariodebian@gmail.com>  Tue, 15 Feb 2011 14:22:38 +0100