1833827 Members
2060 Online
110063 Solutions
New Discussion

Samba-2.2.0 printing

 
SOLVED
Go to solution
Werner Rips
Advisor

Samba-2.2.0 printing

How can I print to a HP LaserJet 5 on a HPUX11.0 box
using samba-2.2.0 from a WinNT4.0 PC?
When I try to install the printer the printer connect dialog
tells me "NO DRIVER AVAILABLE FOR THIS PRINTER"
and forces me to install the driver local.
I say ok, and what I get is a dialogbox to select a
printer driver from diskette. If I select "Search" and select a driver from diskette my PC tells me that the driver is unknown.

Is there any one who can help?

PS. Samba works fine with printing on Win98, so I
think my smb.conf is ok.
On both PC's I'm logged in as a user that has a valid
access to the HP-UX machine.

Here is the smb.conf:

# Global parameters
[global]
encrypt passwords = Yes
null passwords = Yes
printing = bsd
load printers = yes

[HP LaserJet 5]
comment = HPLJ5MP Printer
valid users = werner
path = /tmp
printer = hplj5mp
public = no
writable = no
printable = yes
2 REPLIES 2
Enno Baars
Advisor
Solution

Re: Samba-2.2.0 printing

You always need to install the driver locally - both on Win9x and WinNT/2k. So first of all you shold obtain the appropriate driver from the hp website. You might need to get different versions of the driver for Win98 and NT.

Now you have two choices:

1) Install the printer driver on your WinNT machine. Then connect to the SAMBA printserver - should work now.

2) Use the 'automatic printer driver installation' feature of SAMBA. Starting with SAMBA 2.2.0 this now works for Windows NT/2k also!

The SAMBA documentation should tell you exactly what you need to do. Personally I can recommend the O'Reilly book 'Using SAMBA' - lots of examples, recipes and detailed explanations there!

After you've placed the Windows printer driver on your SAMBA server (above mentioned docs tell you how to do this) you need to edit your smb.conf so SAMBA will offer the driver to the Windows clients.

The smb.conf entry for your printer might then look like this:

----snip----
[lj5m]
comment = HP LaserJet 5M PostScript
printer = lj5m
printable = yes
path=/var/spool/sambaprint
read only = yes
guest ok = yes
print command = lp -c -d%p -o raw %s; rm %s
printer driver = HP LaserJet 5/5M PostScript
printer driver location = \\%L\PRINTER$
----snip----

This works for me.

When you first connect the printer share from your WinNT machine the printer driver will be automagically retrieved from your SAMBA server and installed.

Hope this helps. :-)

Cheers,

Enno.
Oh God, I hate this damn machine, I wish that they would sell it! It never does that what I mean but only what I tell it.
Jeroen_D
Regular Advisor

Re: Samba-2.2.0 printing

Hi,

the answer given above seems enough to me.

Something I noticed was that you have the global variable printing set to bsd.

This should be hpux...

Jeroen.