You can create a printer definition file by using the
make_ printerdef script in the
/usr/local/samba/bin directory. In order to use this script, you need to copy over the following four files from a Windows client:[]
C:\WINDOWS\INF\MSPRINT.INF |
C:\WINDOWS\INF\MSPRINT2.INF |
C:\WINDOWS\INF\MSPRINT3.INF |
C:\WINDOWS\INF\MSPRINT4.INF |
Once you have the four files, you can create a printer definition file using the appropriate printer driver and its .INF file. If the printer driver starts with the letters A-K, use either the
MSPRINT.INF file or the
MSPRINT3.INF file. If it begins with the letters L-Z, use the
MSPRINT2.INF file or the
MSPRINT4.INF file. You may need to
grep through each of the files to see where your specific driver is. For the following example, we have located our driver in
MSPRINT3.INF and created a printer definition file for a HP DeskJet 560C printer:
$grep "HP DeskJet 560C Printer" MSPRINT.INF MSPRINT3.INF
MSPRINT3.INF: "HP DeskJet 560C Printer"=DESKJETC.DRV,HP_DeskJet_ ...
$make_printerdef MSPRINT3.INF "HP DeskJet 560C Printer" >printers.def
FOUND:DESKJETC.DRV
End of section found
CopyFiles: DESKJETC,COLOR_DESKJETC
Datasection: (null)
Datafile: DESKJETC.DRV
Driverfile: DESKJETC.DRV
Helpfile: HPVDJC.HLP
LanguageMonitor: (null)
Copy the following files to your printer$ share location:
DESKJETC.DRV
HPVCM.HPM
HPVIOL.DLL
HPVMON.DLL
HPVRES.DLL
HPCOLOR.DLL
HPVUI.DLL
HPVDJCC.HLP
color\HPDESK.ICM
Note the files that the script asks you to copy. You'll need those for the next step.