preparing for release of 1.9.18alpha10
[Samba.git] / docs / textdocs / PRINTER_DRIVER.txt
blobf5d9ade057565adda311cb1a7c1696ad1905fd4a
1 !==
2 !== PRINTER_DRIVER.txt for Samba release 1.9.18alpha10 02 Nov 1997
3 !==
4 ==========================================================================
5         Supporting the famous PRINTER$ share
6  
7         Jean-Francois.Micouleau@utc.fr, 10/26/97
9 ===========================================================================
11 Disclaimer:
13         This ONLY works with Windows 95
14         It does NOT work with Windows NT 4
17 Goal:
19         When you click on a samba shared printer, you can now install the driver
20         automatically onto the Windows 95 machine, as you would from an NT server.
21         
22 How To:
24         It's a three step config.
25         
26         First, create a new directory, where you will put the driver files, and
27         make a share in smb.conf pointing to it.
29         Example:
30         
31                 [printer$]
32                   path=/usr/local/samba/printer
33                   public=yes
34                   writable=no
35                   browseable=yes
37         Second, you have to build the list of the drivers required for a specific
38         printer. This is the most complicated thing to do. Get the files
39         'msprint.inf' and 'msprint2.inf' from Windows 95, the easiest way is to
40         grab them from a working Windows 95 computer. They are usually located
41         in 'c:\windows\inf'. Look in them for the printer you have. Run the new
42         program 'mkprinterdef' with the file name and the printer name as
43         parameters.
44         Example:
45                 
46         mkprinterdef msprint.def "Apple LaserWriter" >>/usr/local/samba/lib/printers.def
47          
48         Copy also all the files into the directory you created in step 1     
49         
50         Third, you need to add 2 new parameters in smb.conf. One is in the
51         [global] section, called 'printer driver file' pointing to the file description,
52         and the other in each printer share, called 'printer driver location' pointing
53         to where the client will get the drivers. Don't forget to set correctly
54         the printer driver parameter to the Windows printer name.
55         Example:
56         
57                 [global]
58                   printer driver file=/usr/local/samba/lib/printers.def
60                 [lp]
61                    comment = My old printer laser
62                    browseable = yes
63                    printable = yes
64                    public = yes
65                    writable = no
66                    create mode = 0700
67                    printer driver=Apple LaserWriter
68                    printer driver location=\\JOKER\PRINTER$
70         JOKER is in my case my computer name, and PRINTER$ is the name of the
71         share created in step one.
72         
73         
74 If it doesn't work for you, don't send flame ! It worked for me. In case of
75 trouble don't hesitate to send me a mail with your smb.conf file and 
76 printers.def