p910nd | hvkls.dyndns.org
|
![]()
|
Search · Suche
|
Version: Sat, 18 Jul 2009 10:44:30 CEST
- USE AT YOUR OWN RISK
-
- Purpose
p910nd is a small printer daemon [...] that does not spool to disk but passes the job directly to the printer.
- The printer driver itself must be installed on your workstation, the daemon passes raw data to your printer. Any job control is left to the user!
- Comes with TCP wrappers access control support (
/etc/hosts.allow ; /etc/hosts.deny).
-
- Installation
tar -C / -xvzf p910nd*binaries-ppc*.tar.gz- Copy the example configuration over first:
cp /etc/default/p9210nd.sample /etc/default/p9210nd- Enable service on demand from
inetd: grep -E "^.*9100.*$" /etc/services || echo "jetdirect 9100/tcp" >> /etc/services
grep -E "^.*jetdirect.*$" /etc/inetd.conf || echo "jetdirect stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/p910nd" >> /etc/inetd.conf
killall -HUP inetd
-
- Configuration
- Set up your worksstation according to http://www.dd-wrt.com/wiki/index.php/Printer_Sharing#Workstation_setup, and try and see if it already works for you.
- If not, edit
/etc/default/p9210ndaccording to http://p910nd.sourceforge.net/p910nd.txt, and try again. Your text editor must be able to deal with *X line breaks a.k.a. be "Linux compatible". - If it still doesn't work, try
modprobe usblp || modprobe lp
-
- Server control
- Disable
p910ndservice frominetd(optional): cat /etc/services | sed -e 's/\(^jetdirect.*\)$/#\1/' > /etc/services.tmp && cat /etc/services.tmp > /etc/services && rm /etc/services.tmp
cat /etc/inetd.conf | sed -e 's/\(^jetdirect.*\)$/#\1/' > /etc/inetd.conf.tmp && cat /etc/inetd.conf.tmp > /etc/inetd.conf && rm /etc/inetd.conf.tmp
killall -HUP inetd- Re-enable
p910ndservice frominetd(optional): cat /etc/services | sed -e 's/^#\(jetdirect.*\)$/\1/' > /etc/services.tmp && cat /etc/services.tmp > /etc/services && rm /etc/services.tmp
cat /etc/inetd.conf | sed -e 's/^#\(jetdirect.*\)$/\1/' > /etc/inetd.conf.tmp && cat /etc/inetd.conf.tmp > /etc/inetd.conf && rm /etc/inetd.conf.tmp
killall -HUP inetd
-
- Compilation (optional)
wget http://p910nd.sourceforge.net/p910nd-0.92.tar.bz2
tar -xvjf p910nd-0.92.tar.bz2
cd p910nd-0.92- The Makefile was modified as follows:
3c3
> #LIBWRAP = -lwrap
---
> LIBWRAP = -lwrap
6c6
> #CFLAGS += -DLOCKFILE_DIR=\"/var/log\"
---
> CFLAGS += -DLOCKFILE_DIR=\"/var/log\"
25,26c25,26
< BINDIR = /usr/sbin
< CONFIGDIR = /etc/sysconfig
---
> BINDIR = /usr/local/sbin
> CONFIGDIR = /etc/default
28c28
< MANDIR = /usr/share/man/man8
---
> MANDIR = /usr/local/share/man/man8make install