Operating System - HP-UX
1827158 Members
1940 Online
109716 Solutions
New Discussion

Adding a printer to Samba server.

 
Insu Kim
Honored Contributor

Adding a printer to Samba server.

Has anybody been successful in adding a printer to Samba server on HP-UX ?

In the manual, printcap name should be addressed but there's no that file on hp-ux unlike linux or other operating systems.
I tried several times with different ways but failed.

How can we do this in hp-ux environment?
Never say "no" first.
2 REPLIES 2
Stefan Schulz
Honored Contributor

Re: Adding a printer to Samba server.

The onlinehelp says:

On System V systems that use lpstat to list available printers you can use "printcap name = lpstat"

So you don't need a printcapfile. We have several printers set up manually with no problem. When creating a printer go to the advanced view. You will see all the necessary printercommands. If you don't see your printers in the drop down list, just create one with the name of your HP-UX printer.

For HP-UX this command should look like: print command = lp -c -d%p %s; rm %s

All you have to do then is to install the necessary printer drivers on your Windows box. (There is also a option to store the necessary drivers on the Samba-Server. But we don't use this option.)

Hope this helps. Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Insu Kim
Honored Contributor

Re: Adding a printer to Samba server.

This is what I have in smb.conf file.

[global]
......
printcap name = lpstat


[printer]
comment = Laser 5Si
path = /var/spool/lp/request/ssprt2
printer = ssprt2
printable = Yes
guest ok = Yes
printing = hpux
read only = yes
print command = /usr/bin/lp -c -d%p -o raw %s; rm %s

The printer driver has been installed properly.
but if I send a job there, it doesn't print at all.

Any thing else that I missed ?
Never say "no" first.