Andreas Pakulat
2003-Jan-08 19:09 UTC
[Samba] Problem with rpcclient and installing PS-Driver
Hi, i want to install the Adobe-PS Drivers into samba, so that the Clients can download them. I first had Samba 2.2.3 from debian woody, where the cupsaddsmb program did'nt work at all. I the upgraded to samba 2.2.7 and tried to install all the drivers by hand using rpcclient. Now I've got 2 problems: First one is that I cannot deinstall the various drivers from the servers list. When I do a 'rpcclient -U root localhost -c "deldriver HPDeskjet"' I get the following Output: | cmd = deldriver HPDeskjet | Failed to remove driver HPDeskjet for arch [Windows 4.0] - error 0xbb9! | Failed to remove driver HPDeskjet for arch [Windows NT x86] - error | 0xbb9! But the driver is in the list: | cmd = enumdrivers | | [Windows 4.0] | Printer Driver Info 1: | Driver Name: [HPDeskjet] | Printer Driver Info 1: | Driver Name: [HPDeskJet] | Printer Driver Info 1: | Driver Name: [HPDeskJetGray] | | [Windows NT x86] | Printer Driver Info 1: | Driver Name: [HPDeskjet] | Printer Driver Info 1: | Driver Name: [HPDeskJetGray] | Printer Driver Info 1: | Driver Name: [HPDeskJet] The second problem is that I also cannot use the above mentioned driver to set it to a printer with 'rpcclient -U root localhost -c "setdriver HPDeskjet HPDeskjet"'. It stops with the following error: | cmd = setdriver HPDeskjet HPDeskjet | Unable to retrieve printer information! | result was NT_STATUS_UNSUCCESSFUL But a printer with exactly that name exists under cups and works fine for local printing. BTW I use cups 1.1.15 from debian. Andreas -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20030108/2aab419b/attachment.bin
Andreas Pakulat
2003-Jan-08 22:15 UTC
[Samba] Problem with rpcclient and installing PS-Driver
On 08.Jan 2003 - 20:06:45, Andreas Pakulat wrote:> Hi, > > i want to install the Adobe-PS Drivers into samba, so that the Clients > can download them. > > I first had Samba 2.2.3 from debian woody, where the cupsaddsmb program > did'nt work at all. > > I the upgraded to samba 2.2.7 and tried to install all the drivers by > hand using rpcclient.As nobody answered yet, I'll answer by myself:> Now I've got 2 problems: First one is that I cannot deinstall the > various drivers from the servers list. When I do a 'rpcclient -U root > localhost -c "deldriver HPDeskjet"' I get the following Output: > | cmd = deldriver HPDeskjet > | Failed to remove driver HPDeskjet for arch [Windows 4.0] - error 0xbb9! > | Failed to remove driver HPDeskjet for arch [Windows NT x86] - error > | 0xbb9!Looks like the driver cannot be removed if a printer is set to it using setdriver command.> The second problem is that I also cannot use the above mentioned driver > to set it to a printer with 'rpcclient -U root localhost -c "setdriver > HPDeskjet HPDeskjet"'. It stops with the following error: > | cmd = setdriver HPDeskjet HPDeskjet > | Unable to retrieve printer information! > | result was NT_STATUS_UNSUCCESSFULSolution was to stop samba and remove the file ntdrivers.tdb and ntprinters.tdb from /var/lib/samba. Then I could restart making the drivers. One question I still got: Do I have to set the Default Data Type to RAW or to PS if the Adobe Postscript driver shall format the documents that are printed on the WinMachine to Postscript. Which then will be fed into my cups? Andreas -- Sicher ist, da? nichts sicher ist. Selbst das nicht. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20030108/4b67482d/attachment.bin