[Samba] Adding a cups printer driver

Tomasz Chmielewski mangoo at mch.one.pl
Thu Jun 16 10:36:31 GMT 2005


stefan at st-petersen.de schrieb:
> Do you mean the quotes in my cupsaddsmb-command, or those in the rpcclient
> call?
> At the moment I'm not in front off my Linux box, so I'm not able to test.
> Can you probably give a suggestion of the right quotation, so I can test
> it in the evening?


# cupsaddsmb -U root -a -v
Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'root%password' -c 
'mkdir W32X86;put /root/tmp/42b155b07b96f W32X86/HPPSC1100.ppd;put 
/usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put 
/usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put 
/usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put 
/usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
added interface ip=192.168.3.15 bcast=192.168.3.255 nmask=255.255.255.0
Domain=[MAGISTA] OS=[Unix] Server=[Samba 3.0.14a]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /root/tmp/42b155b07b96f as \W32X86/HPPSC1100.ppd (1103.9 
kb/s) (average 1103.9 kb/s)
putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll 
(1226.0 kb/s) (average 1207.1 kb/s)
putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp 
(557.4 kb/s) (average 1035.9 kb/s)
putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf 
(1323.2 kb/s) (average 1259.4 kb/s)
putting file /usr/share/cups/drivers/pscript5.dll as 
\W32X86/pscript5.dll (1252.1 kb/s) (average 1257.1 kb/s)

Running command: rpcclient localhost -N -U'root%password' -c 'adddriver 
"Windows NT x86" 
"HPPSC1100:pscript5.dll:HPPSC1100.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript.ntf"'
added interface ip=192.168.3.15 bcast=192.168.3.255 nmask=255.255.255.0
Printer Driver HPPSC1100 successfully installed.

Running command: rpcclient localhost -N -U'root%password' -c 'setdriver 
HPPSC1100 HPPSC1100'
added interface ip=192.168.3.15 bcast=192.168.3.255 nmask=255.255.255.0
Succesfully set HPPSC1100 to driver HPPSC1100.


-- 
Tomek

WPKG - install software on your Samba clients
http://wpkg.org


More information about the samba mailing list