Printing to Windows Printer from Solaris
By user12821170 on Nov 12, 2007
Robert asked me how hard it is to print to Windows from Solaris today. It couldn't be that hard from what I have been told, it is just that I have never done it. So reading up the FAQ from the OpenSolaris Printing page , I figured out I have to do the following things:
o Create a print queue on the Windows box connecting the printer to the network. I have a HP 2600N which I have already created queue connected through the USB. So I share it and use the Add Printer wizard and let it auto discovered on Windows side. From which I got the Server and Printer names (FERRARI/HPColorL, surprise, surprise).
o On the Solaris box (Nevada 76), I copied over the file /etc/sfw/smb.conf-example to /etc/sfw/smb.conf and replace the workground = WORKGROUP (as it is on Windows).
o svcadm enable samba
o lpadmin -v winprinter -v smb://FERRARI/HPColorL -m uri -n /usr/share/ppd/SFEfoo2zjs/foo2zjs/HP-Color_LaserJet_2600n.ppd.gz
o lp -p winprinter
NOTE: I have though created the package SFEfoo2zjs so that it can print.
This reminds me that I probably upload the proper patch to what was given to me by Paul Cunningham to sourceforce.