Operating System - HP-UX
1822142 Members
3446 Online
109640 Solutions
New Discussion юеВ

Printing from Unix to Windows

 
Radnour Acton-Page_1
Occasional Advisor

Printing from Unix to Windows

Can someone please go through with me, step-by-step, the process for allowing our HP-9000 L2000 to print to a shared Windows printer. We are running HP-UX 11i with a Cifs client.

Many Thanks
A Unix Newbie
8 REPLIES 8
Craig Rants
Honored Contributor

Re: Printing from Unix to Windows

By shared I assume you mean that the printer is on the network. If that is true see if you have the jetadmin software installed on the L2000 (/opt/hpnp/bin/jetadmin). Follow the TUI menu for installation, it is pretty easy and then see if you can print from there.

Good Luck,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Volker Borowski
Honored Contributor

Re: Printing from Unix to Windows

Hello,
Craig is right, if the printer is connected to the network, you should access it by jetadmin or LPD-service, depending on the networkconnection of the printer, because the PC does not need to be up and running then.

If the printer is connected to a physical port of the PC, you could either try to install samba on the Unix box and try to access the printer via its UNC-sharename.

Option two is to install "Microsoft TCP/IP Printservice" from the "network" options of the control-panel (NT). Do not exactly know how this beast is called on 98/ME. After this, your PC gets an NT-Service, that acts as an LPD on the network, and you can access any printer configured on this PC (even network shared ones) via LPD.
You need to configure your printer on the HP-UX side as a "remote printer" with PC-IP-address and PC-printername and a fitting model-script.

Would be of help to know, what printer you use, and how it is connected to the PC.

Hope this helps
Volker
Mark Vollmers
Esteemed Contributor

Re: Printing from Unix to Windows

Hi. If I remember right, it wasn't too tough to add the printer to the Unix box so that I could print from it. I went and added the printer to /etc/hosts, by the IP address. Then I went to SAM and in Periphrial Devices>Printers and plotters> LP spooler. I got a list (which would be blank in your case) and went to Add Network printer using Jetadmin. (You could get here with the commands as well, but I don't remember them) In here, go to add printer (option 3), and add the name (or IP) for the printer that you added to /etc/hosts. YOu can add config options if you want next, and then it is all done.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Radnour Acton-Page_1
Occasional Advisor

Re: Printing from Unix to Windows

Having read my first message I see that I didn't explain myself properly, so here I go again...

We are running HP-UX11i on a L2000 server and we have a need to add printers which are shared from Windows 95 and Windows NT machines. They are shared as in \\radnourap\generic (text only would be fine) and I need to print to them.

I have looked at Samba (the O'Reilly book) and frankly have become more confused. I am not sure whether HP-UX counts as BSD or System-V type unix so I'm not sure how to set samba up to print, where it should sit (the book says /usr/local/samba and mine's in /opt/samba) or where the configuration files should go because there is more than one way shown in the book.

HELP!
A Unix Newbie
Vincent Farrugia
Honored Contributor

Re: Printing from Unix to Windows

Hello,

We've done this howto file so that whenever we want to print to a Windows printer from Unix, we remember through this file.

It is attached to this answer.

HTH,
Vince
Tape Drives RULE!!!
Mark Vollmers
Esteemed Contributor

Re: Printing from Unix to Windows

Maybe I'm still not understanding correctly, but I don't know that you need to go through Samba to add a printer. Are you adding this as a networked printer or as a remote printer? If the printer drivers are installed on a windows machine on the network, then I don't think you need to go remote. Once it is added, printing is just like normal, and it shouldn't matter if the file is on the server or being grabbed through Samba (lp -dprintername filename).

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Radnour Acton-Page_1
Occasional Advisor

Re: Printing from Unix to Windows

Been reading and trying stuff out...

I have got smbclient to print to a pc connected printer and I've altered smbprint to print to this printer ( cat /etc/passwd | compd1print ) works! But I am unable to make the leap from these shell scripts to being able to say 'when I print to the compd1 printer using a normal print queue, use these script files instead.'

I know I'm nearly there, but still need help...
A Unix Newbie
D. Jackson_1
Honored Contributor

Re: Printing from Unix to Windows

Have you tried to set up remote printers? See if this helps some.. http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd1347b8d1de3d5118ff40090279cd0f9,00.html

Good luck