Tuesday 14 August 2012

create a basic linux printer for use with JD Edwards–OEL linux

In JD Edwards, it’s easy.  P98616, add new printer, done.

At the command line it’s a little more challenging.  What I mean is, using linux commands to get the printing working is a little more of a challenge.  If you have a gnome-session, then you can probably start the printer configuration application from System->Administration->printers.

When you add the printer, choose a decent printer name, description and location.  Use App Sockey / HPDirect (if you want to print direct to the IP address of the printer).  I decided to so this, rather than to use the windows print servers.  You could use the samba option if this is the case.  Note that my title is basic printer.

Then it’s simply choosing the machine name (make sure that you can ping it – well, at least arp it of ping is not enabled).

lpadmin is how the hardcore create the printer.

you need to find a driver that is going to work, the RAW one will not.

lpinfo –m will list all of the printers and the drivers.  You are going to need one of these PPD files to give to the command line to create the printer.

I advise to grep for something generic like

lpinfo –m |grep "HP LaserJet 5 Foomatic" | grep recommended

foomatic:HP-LaserJet_5-hpijs.ppd

Time to create your printer!

lpadmin -p myPrinter –D"Money Printer" –E –L "Lunch Room HQ" –v"socket://sydxerox53.osl.local:9100" -m"foomatic:HP-LaserJet_5-hpijs.ppd"

This will create a linux printer called myPrinter

show all printers

lpstat –a

show all outstanding jobs

lpstat –l

No comments: