A father's journey into relevance. 21st Century Dad...

Thursday Jun 18, 2009

I finally took the time to figure out how to be able to print from my OpenSolaris laptop to our HP 6450 wifi printer across the room without having to stretch a USB cord and move my laptop. I kept scouring the Internet for references, but realized that a wifi printer is no different than a printer connected directly into the LAN via ethernet.


 I first started with obtaining CUPS. To quote www.cups.org:  "CUPS is the standards-based, open source printing system developed by
Apple Inc. for Mac OS® X and
other UNIX®-like operating systems." I downloaded the CUPS packages from the IPS repository (SUNWcups-manager will pull in all the right dependencies). 


 Once installed, I made sure the CUPS services were running:


online          6:53:39 svc:/application/cups/scheduler:default
online          6:53:39 svc:/application/cups/in-lpd:default


If they are not running, you would just run "pfexec svcadm enable" for the 2 services.


In my browser, I typed http://localhost:631, which brought me to the CUPS interface. I followed instructions to add a printer, selecting the socket type with the printer's IP address (it should be set to a static address). In my case, it was socket://192.168.0.102:9100. A pop-up prompted me for user name and password. This puzzled me for a while, until I figured out that it was asking for "root" as the username and my system's root password. Once that was set, I was able to connect to the printer.


If you use VPN or (internal to Sun) Punchin, you should be able to select a bypass to allow access to the printer at the LAN address.