查看完整版本: Cool How to make CUPS a JetDirect/AppSocket print server

ELM 2007/11/10 00:07

Cool How to make CUPS a JetDirect/AppSocket print server

Assuming CUPS is setup and running...

Make sure /etc/services has the following line:
jetdirect 9100/tcp laserjet hplj #


If you are using xinetd,
create the file /etc/xinetd.d/jetdirect with the following contents:

# Allow applications using the AppSocket / JetDirect protocol
# to communicate with CUPS.
service jetdirect
{
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/bin/lp
server_args = -d <CUPS_PRINTER_NAME> -o raw
groups = yes
disable = no
}


Restart your services:
service xinetd restart
service cups restart

If you are using inetd instead of xinetd,
edit the file /etc/inetd.conf so it contains the following line:

9100 stream tcp nowait lp /usr/bin/lp lp -d <CUPS_PRINTER_NAME> -o raw


Restart your services:
service inetd restart
service cups restart


Your CUPS_PRINTER_NAME can be found in the /etc/cups/printers.conf or /etc/printcap files.


-Jeff

From: [url]http://www.linuxforums.org/forum/linux-networking/53105-how-make-cups-jetdirect-appsocket-print-server.html[/url]
页: [1]
查看完整版本: Cool How to make CUPS a JetDirect/AppSocket print server