Gentoo Archives: gentoo-dev

From: Arno Wilhelm <arno@×××.at>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Re: Bugs ? --SAMBA+CUPS mini howto
Date: Mon, 14 Jan 2002 01:20:45
Message-Id: 20020114071917.GB11545@jambalaia.OnTheRoof
In Reply to: [gentoo-dev] Re: Bugs ? --SAMBA+CUPS mini howto by woodchip@gentoo.org (Don Davies)
1 On Sun, Jan 13, 2002 at 07:42:29PM -0600, Don Davies wrote:
2 > Hi, Arno
3 >
4 > This is what you need to correctly configure SAMBA with CUPS.
5 >
6 > You manage your printers with CUPS; either via its cute little
7 > http interface (http://localhost:631), by manually editing the
8 > files in /etc/cups, or by some other means like through the
9 > KDE Printer Administration applet. Either way, if you use
10 > the code snippets below, all printers configured in CUPS,
11 > will be available to SAMBA automagically, there is no need
12 > to individually define them.
13
14
15 Thanks for the help.
16 I will try it out as soon as possible.
17 Why do you use lpstat as printcap name ?
18
19 Greetings,
20 Arno
21
22
23
24
25
26
27
28
29
30
31 >
32 > Pay close attention to the print command parameter. This is
33 > how you choose who has the driver, the client or the server.
34 >
35 >
36 > --<snip>--
37 >
38 > [global]
39 > printcap name = lpstat
40 > load printers = yes
41 > printing = cups
42 >
43 > [printers]
44 > comment = all CUPS printers
45 > path = /var/spool/samba
46 > browseable = no
47 > guest ok = yes
48 > writable = no
49 > printable = yes
50 > create mode = 0700
51 > lpq command = lpstat -o %p
52 > lprm command = cancel %p-%j
53 > # using client side printer drivers. (select from the Windows Printer Wizard)
54 > print command = lpr -P %p -o raw %s -r
55 > # using cups own drivers (pick Generic PostScript Printer in Windows)
56 > ; print command = lpr -P %p %s
57 >
58 > --<snip>--
59 >
60 >
61 > Hope that helps.
62 >
63 > Cheers!
64 > --
65 > Donny <woodchip@g.o>
66 >
67 > _______________________________________________
68 > gentoo-dev mailing list
69 > gentoo-dev@g.o
70 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
71 >