[Samba] cups driver

Tomasz Chmielewski mangoo at mch.one.pl
Fri Sep 9 09:47:12 GMT 2005


stenon at lpmm.sciences.univ-metz.fr schrieb:
> hello 
> i think always the same problem :(
> 
> so i would like to put drivers on my samba server in $print

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


More information about the samba mailing list