I have a Gen1 Galileo board and I use a minimal Debian image that I created with debootstrap.
CUPS package is already setup and running on the Galileo.
Printer added to cups & set to default. Also installed print driver.
I am able to print with lp command.
Here are the steps I've done so far to make CUPS a JetDirect/AppSocket print server:
1. Add the following line below to /etc/services
jetdirect 9100/tcp #
2. Install xinetd through "apt-get install xinetd"
3. 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 = root
server = /usr/bin/lp
server_args = -d <MY_CUPS_PRINTER_NAME>
groups = yes
disable = no
}
4. Restart services:
service xinetd restart
service cups restart
I send the file from another device on port 9100.
CUPS logs show that it had received the file. Job was completed & sent to the printer.
However, my printer does not start printing. CUPS logs does not show any error.
Due to frustration, I disabled the the jetdirect service and stop xinetd daemon, however my printer still does not print as it used to with the lp command.
Has anyone tried this method? Your help would be very much appreciated. Thank you.