2 !== PRINTER_DRIVER.txt for Samba release 1.9.18 08 Jan 1998
4 ==========================================================================
5 Supporting the famous PRINTER$ share
7 Jean-Francois.Micouleau@utc.fr, 10/26/97
8 modified by herb@sgi.com 1/2/98
10 ===========================================================================
14 This ONLY works with Windows 95
15 It does NOT work with Windows NT 4
20 When you click on a samba shared printer, you can now install the driver
21 automatically onto the Windows 95 machine, as you would from an NT server.
25 It's a three step config.
27 First, create a new directory, where you will put the driver files, and
28 make a share in smb.conf pointing to it.
33 path=/usr/local/samba/printer
38 Second, you have to build the list of the drivers required for a specific
39 printer. This is the most complicated thing to do. Get the files
40 'msprint.inf' and 'msprint2.inf' from Windows 95, the easiest way is to
41 grab them from a working Windows 95 computer. They are usually located
42 in 'c:\windows\inf'. Look in them for the printer you have. Run the new
43 program 'mkprinterdef' with the file name and the printer name as
47 mkprinterdef msprint.def "Apple LaserWriter" >>/usr/local/samba/lib/printers.def
49 The program will print out a list of required files to stderr.
50 Copy all the files listed into the directory you created in step 1
52 Third, you need to add 2 new parameters in smb.conf. One is in the
53 [global] section, called 'printer driver file' pointing to the file description,
54 and the other in each printer share, called 'printer driver location' pointing
55 to where the client will get the drivers. Don't forget to set correctly
56 the printer driver parameter to the Windows printer name.
60 printer driver file=/usr/local/samba/lib/printers.def
63 comment = My old printer laser
69 printer driver=Apple LaserWriter
70 printer driver location=\\%h\PRINTER$
72 %h will expand to the computer name, and PRINTER$ is the name of the
73 share created in step one.
76 If it doesn't work for you, don't send flame ! It worked for me. In case of
77 trouble don't hesitate to send me a mail with your smb.conf file and
81 ******* added by herb@sgi.com
83 For those of you who like to know the details, and in case I have guessed
84 wrong on some of the fields - The following is the format of the entries
85 in the printers.def file: (entries are 1 single line - they are split here
88 <Long Printer Name>:<Driver File Name>:<Data File Name>:<Help File Name>:
89 <Language Monitor Name>:<Default Data Type>:<Comma Separated list of Files>
91 The <Help File Name> and the <Language Monitor Name> can be empty.
92 If no <Driver File Name> or <Data File Name> are specified in the inf file,
93 these will default to the section name for the printer.