cedric_lejeune
2004-Jan-07 13:07 UTC
[Samba] PDF printer and wiidows driver auto-download.
Hello =) I got some problem configuring a pdf printer and make windows to download automagically drivers from [print$] share on my samba 3.0.1 server. Well, I've configured a pdf printer (based on this doc: http://www.linuxgazette.com/issue72/bright.html), tested it and it works pretty well =) To install the printer on windows side, I connect to the host, browse to samba server, right-click on the printer and select "connect". Windows then ask me to install appropriate drivers. I choose postscript drivers and install them. Then I test the virtual printer and it works perfectly =) But now, users want me to configure samba so when they access the printer through windows explorer, they do not have to install printer driver, they are automagically downloaded from samba server. I've seen in the doc it is possible for a real printer, so I've tried to do the same for my virtual printer. I've located files required, installed them, defined association between my virtual printer and its drivers, you know... I've just followed the doc. And everything seemed ok. But when I try to connect the the virtual printer, windows still asks me for printer drivers =( Have you got any idea? Does anyone has alredy done such thing? One thing I'm not sure is if I need to use an /etc/printcap file with a fake printer declaration. Is CUPS more appropriate? Thanks you for your help =) cedric. Here is the info you may required: ---------------------------------- - Samba version 3.0.1 self-compiled - Debian Woody, up-to-date, 2.4.23 kernel (I know 2.4.24 is out =) Command output: --------------- - /usr/local/samba-3.0.1/bin >> ./rpcclient -U linback -c 'enumdrivers 3' 192.168.111.144 Password: [Windows NT x86] Printer Driver Info 3: Version: [3] Driver Name: [PdfPrinter] Architecture: [Windows NT x86] Driver Path: [\\faierie\print$\W32X86\3\PSCRIPT5.DLL] Datafile: [\\faierie\print$\W32X86\3\HP_CLJ85.PPD] Configfile: [\\faierie\print$\W32X86\3\PS5UI.DLL] Helpfile: [\\faierie\print$\W32X86\3\PSCRIPT.HLP] Dependentfiles: [\\faierie\print$\W32X86\3\PSCRIPT5.DLL] Dependentfiles: [\\faierie\print$\W32X86\3\PSCRIPT.NTF] Dependentfiles: [\\faierie\print$\W32X86\3\PSCRIPT.HLP] Dependentfiles: [\\faierie\print$\W32X86\3\PS5UI.DLL] Dependentfiles: [\\faierie\print$\W32X86\3\HP_CLJ85.PPD] Monitorname: [] Defaultdatatype: [RAW] [Windows NT x86] Printer Driver Info 3: Version: [3] Driver Name: [PdfPrinter] Architecture: [Windows NT x86] Driver Path: [\\faierie\print$\W32X86\3\PSCRIPT5.DLL] Datafile: [\\faierie\print$\W32X86\3\HP_CLJ85.PPD] Configfile: [\\faierie\print$\W32X86\3\PS5UI.DLL] Helpfile: [\\faierie\print$\W32X86\3\PSCRIPT.HLP] Dependentfiles: [\\faierie\print$\W32X86\3\PSCRIPT5.DLL] Dependentfiles: [\\faierie\print$\W32X86\3\PSCRIPT.NTF] Dependentfiles: [\\faierie\print$\W32X86\3\PSCRIPT.HLP] Dependentfiles: [\\faierie\print$\W32X86\3\PS5UI.DLL] Dependentfiles: [\\faierie\print$\W32X86\3\HP_CLJ85.PPD] Monitorname: [] Defaultdatatype: [RAW] - /usr/local/samba-3.0.1/bin >> ./rpcclient -U linback -c 'enumprinters 2' 192.168..111.144 Password: servername:[\\faierie] printername:[\\faierie\PdfPrinter] sharename:[PdfPrinter] portname:[Samba Printer Port] drivername:[PdfPrinter] comment:[] location:[] sepfile:[] printprocessor:[winprint] datatype:[RAW] parameters:[] attributes:[0x1018] priority:[0x1] defaultpriority:[0x1] starttime:[0x0] untiltime:[0x0] status:[0x0] cjobs:[0x0] averageppm:[0x0] smb.conf -------- # Global parameters [global] workgroup = FANTASY netbios name = FAIERIE server string = PDF print server based on GNU/Linux and Samba. security = DOMAIN obey pam restrictions = Yes password server = sdc01 preferred master = No local master = No domain master = No idmap uid = 10000-20000 idmap gid = 10000-20000 template homedir = /home/samba/%U winbind separator = _ invalid users = root printer admin = @ntadmin, linback [homes] comment = %U's home directory. path = /samba/%U read only = No create mask = 0600 directory mask = 0700 root preexec = /usr/local/bin/samba_create_home %U+%D+%g [PdfPrinter] comment path = /tmp browsable = Yes printable = Yes print command = /usr/local/bin/samba_create_pdf %U %s [print$] comment = Printer Driver Download Area path = /samba/drivers browseable = no guest ok = no read only = no write list = @ntadmin, linback Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn)
> But now, users want me to configure samba so when they access > the printer through windows explorer, they do not have to > install printer driver, they are automagically downloaded from > samba server. I've seen in the doc it is possible for a real > printer, so I've tried to do the same for my virtual printer. > I've located files required, installed them, defined > association between my virtual printer and its drivers, you > know... I've just followed the doc. And everything seemed ok. > But when I try to connect the the virtual printer, windows > still asks me for printer drivers =(Have you tried browsing to the printers and faxes share on the printer server, selecting the printer, right clicking, and setting the driver that way?
cedric_lejeune
2004-Jan-07 16:11 UTC
[Samba] PDF printer and wiidows driver auto-download.
> > But now, users want me to configure samba so when they access > > the printer through windows explorer, they do not have to > > install printer driver, they are automagically downloaded from > > samba server. I've seen in the doc it is possible for a real > > printer, so I've tried to do the same for my virtual printer. > > I've located files required, installed them, defined > > association between my virtual printer and its drivers, you > > know... I've just followed the doc. And everything seemed ok. > > But when I try to connect the the virtual printer, windows > > still asks me for printer drivers =( > > Have you tried browsing to the printers and faxes share onthe printer> server, selecting the printer, right clicking, and settingthe driver> that way? > >Hello =) I just redo it to be sure. Neither "Connect..." nor "Properties" work =( If I choose "Properties", a box appears with message "Printer properties cannot be displayed. Operation could not be completed". If I choose "Connect...", windows says "The server on which the 'PdfPrinter' printer resides does not have the correct printer driver installed. If you want to install the driver on your local computer, click OK.". It does not download driver from samba server =( I wonder if the problem could occure 'cause the printer is a virtual printer? By the way, checking one more time samba doc, I can "see" driver from windows (right-click on background of folder Printers, Server Properties, Drivers) _BUT_ I cannot "see" printer properties doing a right-click on it as said above. So , from doc's point of view (Chapter 18. Classical Printing Support/Check Samba for Driver Recognition), I pass the second and third test, but not the first one. Thanks for your help =) I keep searching... See U =) Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn)
cedric_lejeune
2004-Jan-08 09:35 UTC
[Samba] PDF printer and wiidows driver auto-download.
> > If I choose "Connect...", windows says "The server on which > > the 'PdfPrinter' printer resides does not have the correct > > printer driver installed. If you want to install the driver > > on your local computer, click OK.". It does not download > > driver from samba server =( > > If you click Ok, then cancel, then go the Advanced tab, > select the driver from the "Driver" select, and click > Apply... does the setting not stick? (If you exit > properties, right click on the printer again, > and choose properties).Sorry, I cannot access the "Advanced Tab". If I choose "Connect" after a right-click on the printer in the "Printers" folder on samba server, then click "Ok", it starts "Add Printer Wizard". From here, if I choose "Cancel", I go back to "Printers" folder and nothing more. If I choose "Have Disk...", it does not work too 'cause I do not have "*.inf" file on my [print$] share. Right-click on the virtual printer on more time and choose "Properties" or "Connect..." open again the same windows =( I've thought about one thing last night. Is the user ID important when copying/installing driver from Windows to samba [print$] share? I explain. I do not have Admin password, so I've copied drivers from windows using a share as a "normal" samba user, do the "adddriver" and other stuff as this user. I only got Admin password for the "setdriver" stuff (you understand, I cannot ask admin for his password every 5 minutes =/ ). Is it important to be admin all driver installation long or samba does not care? One more thing. Do you thing the problem could come from windows (win2k, sp4)? I do not have my own windows box to do my test, so I ask users if I can use their boxes. From two different boxes, it seems windows behavior is not the same. Could the problem come from my "main" windows box?> > > I wonder if the problem could occure 'cause the printer is > > a virtual printer? > > No, Samba doesn't care. We have the exact same setup here. >You mean that you have setup a pdf printer with driver auto-download? Thanks a lot taking time to help me =) See U =) cedric. Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn)