[Samba] CUPS-based printing
Paul Simpson
paul at maggiandpaul.co.uk
Mon Sep 12 21:38:23 GMT 2005
> Paul Simpson schrieb:
>> Hi!
>>
>> Ok, I'm running LFS 6.0 with Samba 3.0.14a and CUPS 1.1.23. My question
>> is, how do I install the postscript drivers for automatic download when
>> a
>> windoze client connects to the printer?
>>
>> I've done everything I can think of (or find on the 'net), but still I
>> get
>> an error message saying:
>> "The server for the 'Laser' printer does not have the correct printer
>> driver installed...."
>
> I copy/paste the answer I gave a couple of days ago:
>
> try to do it like this:
>
> 2) configure your CUPS printer, make sure your server can print on that
> printer
>
> 1) put PostScript drivers into /usr/share/cups/drivers:
>
> ps5ui.dll pscript5.dll pscript.hlp pscript.ntf
>
> These four files you will find on every Windows XP workstation.
>
> 2) configure your CUPS printer, make sure your server can print on that
> printer
>
> 3) when printer works, reload (or restart) Samba - it has to be aware of
> new printers:
>
> /etc/init.d/smb reload (or restart)
>
> 4) finally, add cups drivers to a given printer:
>
> # cupsaddsmb -U Administrator -a -v
>
> where Administrator is the domain admin.
>
> You will be prompted for a password, and after supplying one, the
> drivers will be attached to a given printer.
>
> 5) right click on the printer from the server, and choose "Connect".
> the drivers will be downloaded from the workstation to the server
> automatically.
>
> You can do it also in startup scripts - so you don't even need to touch
> any workstation, and can do everything remotely:
>
> This one has to be executed as Administrator or SYSTEM - you can use
> WPKG for that :)
>
> rundll32 printui.dll,PrintUIEntry /q /y /ga /in /n \\server\kyocera
>
>
> And once again, as a user netlogon script:
>
> rundll32 printui.dll,PrintUIEntry /q /y /ga /in /n \\server\kyocera
>
> That's because the normal user has no permission to set a new printer,
> unless it's first installed on the workstation by someone with
> appropriate privileges.
>
> --
> Tomek
> http://wpkg.org
>
Sorry to repeat-post - I missed your response before!
Anyway, tried it, worked like a charm :-)
Thanks for your help.
--
Paul
More information about the samba
mailing list