Setting up remote printing with OpenSolaris – it’s really that easy!

When setting up remote printing from a Solaris system (SPARC or x86) to a printer that is attached to a print server, the /etc/printers.conf file may seem incorrectly configured after using the lpadmin command – it does not contain the remote print server name!. However, the interesting parts of the printer setup are in file /etc/lp/interfaces/<printer-name> and in other files in directory /etc/lp/printers/<printer-name>.

The steps below work fine for my setup with a LevelOne FPS-3003 print server with a HP LaserJet 1320 with PostScript option, attached to USB port 1 of the print server. I am pretty sure it will work with comparable setups.

  • hostname of printer: printserv (make sure this hostname can be resolved – e.g. an entry in /etc/hosts exists for this hostname, and /etc/nsswitch.conf has a line for hosts in which “files” is the first entry)
  • port number for the printer (TCP printing): 9100
  • printer queue name on Solaris machine: ps
  • no banner page will be printed
  • this printer will be the default printer

Setting up remote printing from a Solaris system: 4 easy steps

$ lpadmin -p ps -v /dev/null -m netstandard -o dest=printserv:9100\
-o protocol=tcp -o timeout=5 -o banner=never -I postscript -T PS \
-D "Printer on second floor"
$ lpadmin -d ps
$ accept ps
$ enable ps (*)

Be careful: When executing the enable command in the bash shell, you may get the following error:

bash: enable: ps: not a shell builtin

Workaround: start another shell and execute that command in the new shell, or use:

$ sh -c "enable ps"

More information is available here.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: