| Lexmark Z25-z35 | |
| Color inkjet printer, max. 1200x1200 dpi, works Mostly | ![]() ![]() |
| Recommended driver: See Notes Generic instructions for: CUPS, LPD, LPRng, PPR, PDQ, no spooler | |
I found a guide on how to make the Lexmark z25 work, this should also work for z25-z35 but I only know it works with z25. Also this has only been tested by me on Ubuntu.
Note from Winter Knight: I can confirm that these instructions work for debian etch (testing). Date: March 1 2007
** NOTE: I created a simple bash script that should do most of the work for you. MAKE SURE the dependencies are met. Make sure to follow instructions exactly. If theres an error in the bash script, email the error to motstudios(AT)gmail.com so he can fix it. This script will download the official Lexmark z25-z35 driver and use it to get your printer working.
----------------------------------
PLEASE MAKE SURE DEPENDENCIES ARE MET!
This little how-to is aimed at Ubuntu, make whatever changes are needed for this to work with your distro. The script "should" work on most distros BUT I only know it works on Ubuntu Dapper.
Dependencies:
sudo apt-get install alien # rpm to deb converter
sudo apt-get install libstdc++5 # (need v5 for compatibility)
1. Make sure the dependencies are met (see above).
2. Download the bash script I made (Right Click, Save As): http://mastermonster.dnsalias.net/sta/downloads/lexmark-z25-z35-generic.sh
3. Copy the bash script to your /home/username directory
4. Open a terminal and run the following commands:
cd /home/yourusername
sudo chmod u+x lexmark-z25-z35.sh
sudo ./lexmark-z25-z35.sh
5. Once the script is finished, Set up your printer using the new z35 driver.
In UBUNTU/GNOME -- System->Administration->Printing
In XANDROS Launch-> Control Center -> Peripheral Devices-Printers
In Anywhere with cups or cupsys installed -- localhost:631 (in web browser) -> Click on Add Printer
The ppd file is located in /usr/share/cups/model/
MORE NOTES: If you don't trust the bash script, open it with a text editor and take a look. It just performs all the commands the user would have to do. It makes it much easier to get your z25-z35 printer working. If someone has the time, feel free to make a step by step tutorial from the bash script so users can do the install manually.
Below is the code for the script in case the URL is not available. Just copy and paste into a new text file and save it as lexmark-z25-z35.sh:
[*******************************************
Note for Gentoo (and other?) users from thomasp: this script creates /usr/lib/cups/filter/rastertoz35, to be used as part of the printing process. This seems NOT to be correct for Gentoo. I found that prints failed (printer did nothing). Further inspection of the cups error log (usually at /var/log/cups/error_log) showed:
Started filter /usr/libexec/cups/filter/rastertoz35 (PID 8867) for job 472.
Started backend /usr/libexec/cups/backend/usb (PID 8868) for job 472.
PID 8867 (/usr/libexec/cups/filter/rastertoz35) stopped with status 22!
You can watch this in action: start 'tail -f /var/log/cups/error_log' in a terminal, then try to print. Ctrl-C exits.
Note that its trying to find 'rastertoz35' in /usr/libexec, instead of /usr/lib.
The easiest way to fix this is (as root):
ln -s /usr/lib/cups/filter/rastertoz35 /usr/libexec/cups/filter/rastertoz35
This creates a link from where cups expects to find 'rastertoz35', to where it actually is.
You will need to perform these steps AFTER running the script.
Now try printing again :)
*******************************************]
# /bin/bash
checkforroot ()
{
ROOT_UID=0
if [ "$UID" -ne "$ROOT_UID" ]
then
echo ""
echo "**************** ERROR !! **************"
echo "You must be logged in as root to run this script"
echo "Please log in as root and re-run this script."
echo "**************** ERROR !! **************"
exit
fi
}
cat<<_EOF_
Script Starting.
Greetings $USER! This is a simple script to
take the Lexmark z25 drivers and convert them
to a useful format and install them so that
your z25 printer will work under Linux.
You agree this script is just to try to make
things easier and comes with no promise.
However it SHOULD work. Email any errors to
motstudios@gmail.com
_EOF_
read -p "Are you ready (yes or no)? " ANSWER
if [[ $ANSWER = yes ]]
then
echo "Ok, Lets proceed.";
else
echo "Too bad, exiting.";
exit
fi
echo "Prepairing drivers and installing. Please wait..."
cd $HOME
mkdir lexmark-printer-driver
cd lexmark-printer-driver
wget http://www.downloaddelivery.com/srfilecache/CJLZ35LE-CUPS-2.0-1.TAR.GZ
cp CJLZ35LE-CUPS-2.0-1.TAR.GZ lexz25z35-cups-2.0-1.tar.gz
rm CJLZ35LE-CUPS-2.0-1.TAR.GZ
tar -xvzf lexz25z35-cups-2.0-1.tar.gz
tail -n +143 lexmarkz35-CUPS-2.0-1.gz.sh > install.tar.gz
tar -xvzf install.tar.gz
alien -t lexmarkz35-CUPS-2.0-1.i386.rpm
alien -t z35llpddk-2.0-2.i386.rpm
tar xvzf lexmarkz35-CUPS-2.0.tgz -C /
tar xvzf z35llpddk-2.0.tgz -C /
ldconfig
cd /usr/share/cups/model
gunzip Lexmark-Z35-lxz35cj-cups.ppd.gz
# This line replaced by Winter Knight with one that is more portable.
# /etc/rc2.d/S19cupsys restart
# This one instead:
/etc/init.d/cupsys restart
# Alternate for Gentoo users, by thomasp
# /etc/init.d/cupsd restart
cd $HOME
echo "Cleaning Up..."
rm -r $HOME/lexmark-printer-driver
echo "Done! Now set up your printer using your"
echo "favorite printer setup program."
Look for help in our forum for printers from Lexmark and IBM.
The following driver(s) are known to drive this printer:
Recommended driver:
| ||||||||