Archive for April 25th, 2008

How I got my Lexmark X6170 Working on Ubuntu 8.04

Here’s the script I ended up writing once I got everything finally working. Since I was missing a few packages I ended up finding out each step the hard way but I continued to tweak the script just in case I ever have to do it again.

I take very very little if any credit for getting any of this to actually work, everything I learned came from the following:

http://ubuntuforums.org/showthread.php?t=49714

and

http://real.lithium.com/real/board/message?board.id=realplayer&thread.id=1152&view=by_date_ascending&page=2

First and foremost you need the files.

For the Z55 driver: CJLZ55LE-CUPS-1.0-1.TAR.GZ

I highly urge you to make a new folder and move the file there along with the script. If all goes well you can jsut sit back and coast.

[code lang="bash"]
# lexmark_z55_install.sh
# last modified 04-25-08

# get the two missing packages
sudo apt-get install alien
sudo apt-get install libstdc++5

# extract the driver.
tar -xvzf CJLZ55LE-CUPS-1.0-1.TAR.GZ

# fix the sh script, the sh script is broken for newer systems.
tail -n +143 lexmarkz55-CUPS-1.0-1.gz.sh > install.tar.gz

# extract the contents produced by tail
tar -xvzf install.tar.gz

# convert rpm packages to tgz. (ignore the warnings)
sudo alien -t lexmarkz55-CUPS-1.0-1.i386.rpm
sudo alien -t z55llpddk-2.0-2.i386.rpm

# extract the tgz's to / putting the files in their right place
sudo tar -xvzf z55llpddk-2.0.tgz -C /
sudo tar -xvzf lexmarkz55-CUPS-1.0.tgz -C /

# refresh ubuntu to see the new libraries
sudo ldconfig

# change to the folder for the drivers
cd /usr/share/cups/model

# unzip the ppd, which should _not_ be gzipped
sudo gunzip Lexmark-Z55-lxz55cj-cups.ppd.gz

#The driver is now installed. Restart the cups daemon.
sudo /etc/rc2.d/S19cupsys restart

# Now run and get the driver up and running
/usr/lib/cups/backend/z55
[/code]

That *should* be everything I ended up having to do to print. Not hard, just a pain because the support from manufacturers sucks when it comes to linux. Hopefully as more people switch everything gets easier.