Site map  

Installing a HP Laserjet P2015DN printer

The P2015DN is a duplex ('D') network ('N') printer.

Setting the IP address

Most jetdirects can be set to a particular IP address by means of a 'ping of life'. The build-in P2015 jedirect however, does not. It more or less expects a DHCP server. This is how to set the IP address without a DHCP server;
The printer has a default address somewhere in the 169.254.0.0 - 169.254.255.255 range. On a computer with a web browser, set a route 169.254.0.0/16 to your LAN. On your default gateway, also set a route 169.254.0.0/16 to your LAN. Switch on the printer and do a tcpdump. Look for addresses in the 169.254/16 range. Once you found your printers address, use the browser to set the printers desired IP address. Ping the new address to make sure that this actually works.
After setting the IP address, you can set all sorts of other stuff. A password for instance. And the default print quality. I set mine to 1200 DPI.

Memory

The standard amount of memory is 32 MB. This is sufficient for 600 DPI, but not for a graphics intensive 1200 print out. Kingston produces DDR2 modules for this printer;

SizePart Number
64 MBKTH-LJ2015/64
128 MBKTH-LJ2015/128
256 MBKTH-LJ2015/256

The 256 MB modules are easier to get then the 64 or 128 and cost only slightly more. Adding 256 MB extends to boot time to ca 75 s.

Installing the driver

This printer is capable of postscript; If you want to print a postscript file, just send it to the printer.

LprNg

I use the following entry in /etc/printcap;

Using BSD LPD

lp|lj|ljraw|HP Laserjet P2015DN:\
	:lp=:\
	:rm=printer.int.sput.nl:\
	:rp=lp:\
	:sd=/var/spool/lpd/lp:\
	:mx#0:\
	:sh:

'printer.int.sput.nl' is the printers name. Substitute with the name of your printer.
You may need to add a line with ':bk:' (strict BerKeley).

Using port 9100 / Jetdirect

Apparently printing via port 9100 is faster, but sometimes a bit less reliable.
If you experience slow printing, you might want to try this;

lp|HP Laserjet P2015DN:\
	:lp=printer.int.sput.nl%9100:\
	:sd=/var/spool/lpd/lp:\
	:mx#0:\
	:sh:

Most other print daemons use a slightly different printcap syntax;

lp|HP Laserjet P2015DN:\
	:lp=9100@printer.int.sput.nl:\
	:sd=/var/spool/lpd/lp:\
	:mx#0:\
	:sh:

Unicode printing

My default charset is UTF-8. The 2015 does not support UTF-8 but can be made to print UTF-8 text anyway.
See Printing UTF-8 plain text for more info.

Cups

Most drivers support 600x600 DPI. Not all support 1200x1200 DPI. Make sure you have got the right driver!
This driver does support 1200x1200 DPI; 'HP_LaserJet_P2015.ppd(.gz)'

I told cups to send the data to the postscript queue on my server;

  Device URI: lpd://192.168.1.1/lp

This seems to be more reliable.
Substitute '192.168.1.1' with the name or IP address of your server.

Upgrading from Debian Squeeze to Wheezy made printing very slow; gs run at 100% CPU for several minutes before printing!
I resolved this by switching to the Windows PPD; 'english-hpb20154.ppd(.gz)'.

cups-bsd

Cups-bsd adds some BSD LPD like functionality to CUPS. My experience is that standalone implementations are more flexible.

Using Xpdf

I put a 'psDuplex yes' in '~/.xpdfrc'. This way Xpdf will print duplex by default. As print command I simply use 'lpr'.

psDuplex yes
psFile   "|lpr"

My default queue is a postscript queue. I yours isn't, specify queue with '-P';

psDuplex yes
psFile   "|lpr -PName_Of_Postscript_Queue"

New printer

I recently replaced this printer by a Lexmark MS610DN.