Aquarionics

Friday 15th April 2005

Making the Lexmark Z515 work under Debian Linux

Lexmark printers are notorious for being crapper than a crap thing on St Craps day, whilst playing Craps in a pile of crap on the planet “Crap” within the solar-system “Crap”, especially under Linux.

Nevertheless, I bought one. Because it was cheap.

(It does, I should warn potential followers in my footsteps, come with a half-filled colour cartridge and no black. Factor in another 15 (The same cost as the printer, fact fans) for a full black cartridge. Cheap printers are a false economy. Lesson ends)

Much of the work of getting this all working under Debian has already been done, and much of this article cribs liberally from the Gentoo Wiki article for the same thing.

These instructions are for Debian Sarge (That’s ‘Testing’) and so should also work with Ubuntu.

This is what you do:

Preparation:

apt-get install gs gs-esp cupsys printconf alien

(I love Debian)

Grab the Real Linux Drivers from Lexmark:

http://downloads.lexmark.com/cgi-perl/downloads.cgi?ccs=229:1:0:389:0:0&emeaframe=&fileID=1151

Installation:

Create a new directory, and put the file you downloaded above inside it. Lexmark’s drivers all extract to the current directory.

Be inside that directory

Bypass their horrible “auto install” script by running:

tail -n +143 z600cups-1.0-1.gz.sh > install.tar.gz

and then extract install.tar.gz (which also goes to the current directory)

You should now have a whole host of useless files and a couple of RPMs (Because we all know that everyone uses deadrat, don’t we? sigh) so we turn them into Debian packages using Alien:

alien *.rpm

And then “dpkg -i” on both of them to install. Make sure the printer is plugged in and turned on, and then run:

ldconfig

followed by:

/usr/lib/cups/backend/z600

Which should say something like:

direct z600:/dev/usb/lp0 "Lexmark Lexmark 510 Series" "Lexmark Printer"

Cups

Setting up cups is somewhat beyond the scope of this article, but what the hell.

Default install of cups doesn’t let anyone outside the local machine access the interface. If this is cool, great, otherwise edit the /etc/cupsd.conf file to let in anyone in 192.168.* or whatever your network’s on.

Cups interface is on http://localhost:631 (It’d be useful if the package mentioned that while it was installing, or something) the admin password is your root password (the username is ‘root’) so don’t, whatever you do, ever access CUPS admin over an Internet connection until you change that behaviour. It’s a stupid bloody default anyway.

So. Click “Administration”, “Add Printer”, Fill in stuff, “Lexmark” (Use the top one, rather than “USB #1 Lexmark” or whatever), Make is – duh – Lexmark, Model is the only one it gives you, Print a test page to make sure it’s working, if it isn’t, then “tail -f /var/log/cups/*log” to see why.

Have A Lot Of Fun.

Those who spoke on this:

gravatar image

MP:

2005-04-15 12:28 4 hrs after the Original Article

Well, yes… Lexmark printers are crap. However, they are amazingly useful when you need a printer and don’t have one to hand. We currently have about 4 of the lying around…

Comment Link Reply to MP

gravatar image

Josh:

2005-09-20 04:59 23 wks after the Original Article

You may want to say restart the cups server before trying to add printer to it.

Comment Link Reply to Josh

gravatar image

ghw:

2006-03-23 15:48 26 wks after Josh

Thanks for this advice! Now it works!!! :)
You guys rule!

Comment Link Reply to ghw

gravatar image

4996mbsve:

2005-12-27 13:22 37 wks after the Original Article

My Z515 wouldn ‘t print, it said “Cannot Process Raster”. I don’t really know what the problem was, but I fixed the problem by typing (as said in some ubuntu forum):
chmod -R +rX /usr/local/z600llpddk/
chmod -R +rX /usr/include/lexmark/

Comment Link Reply to 4996mbsve

gravatar image

Karl _johan Pelo:

2006-03-26 20:12 49 wks after the Original Article

Thank you for your helpful article on how to get Lexmark z615 working under Debian. For that price,
it is not so bad, but without your article, it would have been useless to me. afterall Lexmark do have a useful file on their support page, though rather a tricky one.

Comment Link Reply to Karl _johan Pelo


Nicholas 'Aquarion' Avenell is a web developer in London, you can find out more about him or how to get in touch.

There are more Articles, Projects, Journal Entries, Photographs and things that defy description here, too.

If you're looking for something specific, there are Calendar & Category -based lists of everything.

And if you want to follow stuff that appears here, try a Syndication Feed, or the generic Feed of everything.


Aquarion's last Twitter was: [updating]
Twitter last updated


More Articles:

[RSS Icon]
[ESF Icon]
[CDF Icon]

That which is relevant:


Explain Ads
© 2000 to 2008 inclusive Nicholas Avenell
All comments are the property of their creators, published with permission
(Unless otherwise indicated, the opinions and sentiments expressed on this site are those of the author and not of any organisation of which he is an affiliate, including his employer. Caveat Lector, E&OE. sigh)
0.013 seconds, 10 queries, 2.66Mb on Tue, 30 Sep 2008 15:01:50 +0000
Generated by Epistula Version 2.0.3