After reading several sources what have to be done :
- enable cups
Query the print service and cups is enabled.
root@catalogne:~# print-service -q
active print service: cups
If cups is not enabled :
print-services -s cups
- enable your user to use the cups website(when authentication is required)
You have to be in the group "sys".
root@catalogne:~# cat /etc/group | grep sys:
sys::3:root,bin,adm,rudy
In this example, the user "rudy" is in the "sys" group.
"THIS IS TEMPORARY ! ROOT CANNOT AUTHENTICATE INTO CUPS"
please remove later your user from "sys" !
- Access the cups website and create a new usb printer
This will create the necessary configuration for a test1 printer.
- Modify the cups configuration
root@catalogne:/etc# more /etc/cups/cupsd.conf
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# RUV
FileDevice Yes
...
...
...
Modify printers.conf
root@catalogne:~# more /etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2009-04-02 20:04
Info test1
Location test1
DeviceURI file://dev/printers/0
State Idle
StateTime 1238695489
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
From DeviceURI usb://Brother/HL-2030%20series
TO file://dev/printers/0
- Access the cups website
Printers--->Print Test Page
Printed a test page !!!
That's all for today !
-Rudy-
No comments:
Post a Comment