JDServer

JDServer is a print server that implements HP's JetDirect protocol, sometimes known as raw.

Copyright © 2009 Dave Higton

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License version 2 along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

You may contact the author:

by e-mail as davehigton@dsl.pipex.com, or

by snail-mail at 76 Glenfield Crescent, Southampton, Hants, SO18 4RF, United Kingdom.

What it is

JDServer is a print server that implements HP's JetDirect protocol, sometimes known as raw. It allows other computers on a network to use a printer connected to a RISC OS computer, via the network and an orderly queue.

What it isn't

JDServer isn't Uniprint. It still requires each of the client computers to have a driver for the printer; it doesn't share the printer driver.

Installation

This application should work on any RISC OS computer, running any version of RISC OS from 3.1 upwards and running the Printer Manager application, !Printers. You need a printer connected in some way to the RISC OS computer - any way that works is OK.

Copy the !JDServer application into a convenient location. I recommend the $.Apps directory.

You will probably want the application to run automatically when the computer starts up. One way is to drop the app into Configure ->Boot->Run. Another way is to edit the Desktop file: on an Iyonix, for example, this is normally found in the $.!Boot.Choices.Boot directory. Add a line such as:

Filer_Run $.Apps.!JDServer

- but note that, if you decide to put the !JDServer somewhere other than in $.Apps, you'll have to modify the above line to suit.

Printer type

The "Filetype" menu item leads to a submenu where you choose the filetype that JDServer sends to the Printer Manager. If you have a PostScript-compatible printer, the files should be of type "PoScript". For all other printers, the files should be of type "Printout". JDServer defaults to "Printout" on first installation. Your choice is saved in the Choices: directory system, so, whenever JDServer starts, it uses the saved choice.

That should be it.

Port number

The standard port number for JetDirect/raw printing is 9100, and that's the way the !Run file is written. In the unlikely event that you want JDServer to listen on a different port instead, you can modify the !Run file:

• Open the !JDServer application directory by shift-double-clicking on !JDServer;

• Open !JDServer's !Run file by shift-double-clicking it;

• Find the line that says "Set JDServer$Port 9100";

• Change the port number to your chosen value and save the file;

• Close the !JDServer directory;

• If JDServer is running, quit it and re-run it.

Running

If you've added the line to the Desktop file, JDServer should run automatically whenever the computer starts. Otherwise just double-click on the !JDServer application. !JDServer will silently refuse to run a second instance of itself.

Connecting to it

When setting up a client computer to use the printer, you will need to tell the client the RISC OS machine's IP address. If you also need to tell it the port number, it's 9100, which is the standard port for the JetDirect/raw protocol - unless you've modified the !Run file as described above. Some operating systems will find which protocol is on offer, on condition that it's using the standard port, so you may not need to tell it.

Limitations

• JDServer will only print to the currently selected printer.

• JDServer will only accept 10 simultaneous print streams.

Download

You can download JDServer here.

Revision history

0.01 2009 October 17 First issue

Page last updated 2009 October 17