1 |
Hi, Arno |
2 |
|
3 |
This is what you need to correctly configure SAMBA with CUPS. |
4 |
|
5 |
You manage your printers with CUPS; either via its cute little |
6 |
http interface (http://localhost:631), by manually editing the |
7 |
files in /etc/cups, or by some other means like through the |
8 |
KDE Printer Administration applet. Either way, if you use |
9 |
the code snippets below, all printers configured in CUPS, |
10 |
will be available to SAMBA automagically, there is no need |
11 |
to individually define them. |
12 |
|
13 |
Pay close attention to the print command parameter. This is |
14 |
how you choose who has the driver, the client or the server. |
15 |
|
16 |
|
17 |
--<snip>-- |
18 |
|
19 |
[global] |
20 |
printcap name = lpstat |
21 |
load printers = yes |
22 |
printing = cups |
23 |
|
24 |
[printers] |
25 |
comment = all CUPS printers |
26 |
path = /var/spool/samba |
27 |
browseable = no |
28 |
guest ok = yes |
29 |
writable = no |
30 |
printable = yes |
31 |
create mode = 0700 |
32 |
lpq command = lpstat -o %p |
33 |
lprm command = cancel %p-%j |
34 |
# using client side printer drivers. (select from the Windows Printer Wizard) |
35 |
print command = lpr -P %p -o raw %s -r |
36 |
# using cups own drivers (pick Generic PostScript Printer in Windows) |
37 |
; print command = lpr -P %p %s |
38 |
|
39 |
--<snip>-- |
40 |
|
41 |
|
42 |
Hope that helps. |
43 |
|
44 |
Cheers! |
45 |
-- |
46 |
Donny <woodchip@g.o> |