[Samba] PDF printer and wiidows driver auto-download.

cedric_lejeune cedric_lejeune at laposte.net
Wed Jan 7 13:06:56 GMT 2004


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)





More information about the samba mailing list