« Accessing Windows Directory from Remote | Main | Using Fedora Core 2 on ThinkPad T40 »

Using Printers from Firefox/Mozilla on Department Unix Environment

Recent versions of Firefox and Mozilla support printing via the Xprint service. When I try to print from these browsers on my department junkfood unix environment, it fails with the following message. "There was a problem printing. No Xprint server(s) could be found. Check whether the XPSERVERLIST environment variable contains any valid Xprint servers. For further information see http://xprint.mozdev.org/ or http://www.mozilla.org/projects/xprint/". If you are having the same problem, here is how to solve it.

It turns out that the solution is found not in the links above, but this page in Sun's website. In short, you need to execute the following commands on the console.


$ /usr/openwin/bin/Xprt :nnn &
$ export XPSERVERLIST=localhost:nnn

where nnn is an arbitrary free display number. (The second line should be "setenv XPSERVERLIST localhost:nnn" if you are using csh/tcsh.) After that, launch a browser from that console, and the printing will work just fine.