1 |
On Sat, Dec 20, 2008 at 5:41 AM, Peter Humphrey |
2 |
<peter@××××××××××××××.org> wrote: |
3 |
> On Saturday 20 December 2008 11:37:32 Peter Humphrey wrote: |
4 |
> |
5 |
>> These are the USE flags I installed CUPS with: |
6 |
>> |
7 |
>> [ebuild R ] net-print/cups-1.3.9-r1 USE="acl dbus jpeg pam perl png |
8 |
>> python ssl tiff |
9 |
>> -X -avahi -gnutls -java -kerberos -ldap -php -ppds -samba -slp -static |
10 |
>> -xinetd -zeroconf" LINGUAS="en -de -es -et -fr -he -id -it -ja -pl -sv |
11 |
>> -zh_TW" |
12 |
> |
13 |
> Since writing that I reasoned that cups might want the ppds USE flag, so I |
14 |
> remerged it with that flag, after restoring the squeaky-clean system to a |
15 |
> new file-system. Three foomatic packages were pulled in: |
16 |
> |
17 |
> $ grep completed /var/log/emerge.log | tail -n 4 |
18 |
> 1229776693: ::: completed emerge (1 of 4) |
19 |
> net-print/foomatic-db-ppds-3.0.20060720 to / |
20 |
> 1229776708: ::: completed emerge (2 of 4) |
21 |
> net-print/foomatic-filters-3.0.20080507 to / |
22 |
> 1229776740: ::: completed emerge (3 of 4) |
23 |
> net-print/foomatic-filters-ppds-20070501 to / |
24 |
> 1229776821: ::: completed emerge (4 of 4) net-print/cups-1.3.9-r1 to / |
25 |
> |
26 |
> Then I let cups detect the printer for itself, and gave it a PPD file I got |
27 |
> from linuxprinting.org, and when I asked for a test page I |
28 |
> got "/usr/libexec/cups/filter/foomatic-rip failed" and the job list showed |
29 |
> it as Unknown Stopped. |
30 |
> |
31 |
> So I deleted the printer, let it redetect it, and this time gave it the PPD |
32 |
> file it offered me: a DJ200 file, which I wouldn't have thought to use. |
33 |
> This time on trying a test page I got "Printer is now on-line." but still |
34 |
> nothing appeared on the printer. |
35 |
> |
36 |
> I did have this printer working some months ago, both locally and over the |
37 |
> network, together with a Kyocera laser printer, but something has changed |
38 |
> and I haven't yet worked out what. |
39 |
> |
40 |
> -- |
41 |
> Rgds |
42 |
> Peter |
43 |
|
44 |
Hi Peter, |
45 |
So far I haven't used PPD files (at least by name) on any of the |
46 |
printers I've set up. All of our printers now are HP and I'm using |
47 |
hplip for them so possibly part of my luck is just that difference. |
48 |
|
49 |
My cups server here at the house has very little in the config file |
50 |
and the printer definition is very short so I'm copying them at the |
51 |
end. |
52 |
|
53 |
Upon review it does look like I have samba running and although I |
54 |
don't think it's being used it might be. It got turned on when I first |
55 |
started working on this last week and I forgot about it so it's still |
56 |
turned on. I've not done any configuration of samba so I don't see how |
57 |
it could be participating but maybe. It's possible... |
58 |
|
59 |
Sector9 cups # emerge -pv cups |
60 |
|
61 |
These are the packages that would be merged, in order: |
62 |
|
63 |
Calculating dependencies... done! |
64 |
[ebuild R ] net-print/cups-1.3.9-r1 USE="X acl dbus jpeg ldap pam |
65 |
perl png ppds python samba ssl tiff -avahi -gnutls -java -kerberos |
66 |
-php -slp -static -xinetd -zeroconf" LINGUAS="en -de -es -et -fr -he |
67 |
-id -it -ja -pl -sv -zh_TW" 0 kB |
68 |
|
69 |
Sector9 cups # rc-update show | grep samba |
70 |
samba | default |
71 |
Sector9 cups # |
72 |
|
73 |
I did uncomment lines in /etc/cups/mime.convs and mime.types as per |
74 |
the numerous wikis around on configuring cups. If you need the |
75 |
specific lines let me know but all the wikis say to do it. |
76 |
|
77 |
I can't think of what else to suggest at this point but if there's |
78 |
something you want me to look at I'll be happy to do so. Let me know. |
79 |
|
80 |
Cheers, |
81 |
Mark |
82 |
|
83 |
|
84 |
Sector9 cups # cat /etc/cups/cupsd.conf |
85 |
LogLevel info |
86 |
SystemGroup lpadmin |
87 |
# Allow remote access |
88 |
Port 631 |
89 |
Listen /var/run/cups/cups.sock |
90 |
# Enable printer sharing and shared printers. |
91 |
Browsing On |
92 |
BrowseOrder allow,deny |
93 |
BrowseAllow all |
94 |
BrowseAddress @LOCAL |
95 |
DefaultAuthType Basic |
96 |
<Location /> |
97 |
# Allow shared printing... |
98 |
Order allow,deny |
99 |
Allow @LOCAL |
100 |
</Location> |
101 |
<Location /admin> |
102 |
Encryption Required |
103 |
# Restrict access to the admin pages... |
104 |
Order allow,deny |
105 |
</Location> |
106 |
<Location /admin/conf> |
107 |
AuthType Default |
108 |
Require user @SYSTEM |
109 |
# Restrict access to the configuration files... |
110 |
Order allow,deny |
111 |
</Location> |
112 |
<Policy default> |
113 |
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job |
114 |
Purge-Jobs Set-Job-Attributes Create-Job-Subscription |
115 |
Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job |
116 |
Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job> |
117 |
Require user @OWNER @SYSTEM |
118 |
Order deny,allow |
119 |
</Limit> |
120 |
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer |
121 |
CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> |
122 |
AuthType Default |
123 |
Require user @SYSTEM |
124 |
Order deny,allow |
125 |
</Limit> |
126 |
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer |
127 |
Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs |
128 |
Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer |
129 |
Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs |
130 |
CUPS-Reject-Jobs> |
131 |
AuthType Default |
132 |
Require user @SYSTEM |
133 |
Order deny,allow |
134 |
</Limit> |
135 |
<Limit Cancel-Job CUPS-Authenticate-Job> |
136 |
Require user @OWNER @SYSTEM |
137 |
Order deny,allow |
138 |
</Limit> |
139 |
<Limit All> |
140 |
Order deny,allow |
141 |
</Limit> |
142 |
</Policy> |
143 |
Sector9 cups # |
144 |
|
145 |
|
146 |
|
147 |
|
148 |
Sector9 cups # cat printers.conf |
149 |
# Printer configuration file for CUPS v1.3.9 |
150 |
# Written by cupsd on 2008-12-16 15:14 |
151 |
<Printer HP1600> |
152 |
Info HP PSC 1600 series |
153 |
Location Local Printer |
154 |
DeviceURI hp:/usb/PSC_1600_series?serial=MY583F32PDL0 |
155 |
State Idle |
156 |
StateTime 1229469245 |
157 |
Accepting Yes |
158 |
Shared Yes |
159 |
JobSheets none none |
160 |
QuotaPeriod 0 |
161 |
PageLimit 0 |
162 |
KLimit 0 |
163 |
OpPolicy default |
164 |
ErrorPolicy stop-printer |
165 |
</Printer> |
166 |
Sector9 cups # |