lfs-uefi: fix efivar-37 FTBFS
[linux_from_scratch_hints.git] / lexmark-printer.txt
blobbaba12fc5f206e9ea46691dad0adcf3202e868aa
1 AUTHOR: Richard A Downing <richard at linuxfromscratch dot org>
3 DATE: 2005-08-20
5 LICENSE: Creative Commons  Attribution-NonCommercial-ShareAlike 2.0
7 SYNOPSIS: How to install Lexmark's binary printer drivers.
9 DESCRIPTION:
11 Lexmark publish printer drivers for a number of their printers on their
12 website.  Unfortunately, these are binary drivers, not source code, so if
13 you have one of these printers you have no choice but to use the binary
14 driver.  This hint explains how to get the driver packages, extract the
15 binary drivers, and install them on a LFS/BLFS system.
17 ATTACHMENTS:
19 None
21 PREREQUISITES:
23 You'll need to have installed CUPS and a compatible Ghostscript using the
24 BLFS instructions.
26 The Lexmark drivers are currently compiled using libstdc++.so.5, so install
27 gcc-3.3.x from BLFS if you use gcc-3.4 or later.
29 You will also need rpm2targz, from:
30      http://downloads.linuxfromscratch.org/rpm2targz.tar.bz2.
32 HINT:
34 Get the Lexmark package from http://www.lexmark.com.  I have a Z515 so I used:
35 http://downloads.lexmark.com/cgi-perl/downloads.cgi?ccs=229:1:0:389:0:0&emeaframe=&fileID=1151
37 Unpack the tarball like this:
39 mkdir sandbox
40 cd sandbox
41 tar -xvf ../CJLZ600LE-CUPS-1.0-1.TAR.gz
43 This gets you a script, but it won't work for LFS/BLFS setups (we don't
44 have rpm for a start), so strip the script from the data with:
46 tail -n +143 z600cups-1.0-1.gz.sh > install.tar.gz
48 and unpack that tarball:
50 tar -xvf install.tar.gz
52 which gives you a lot of files, including two rpms.  These need to be 
53 converted to tarballs:
55 rpm2targz z600cups-1.0-1.i386.rpm
56 rpm2targz z600llpddk-2.0-1.i386.rpm
58 Now, providing your cups installation is standard (like BLFS), install the
59 driver with:
61 tar -xvzf z600cups-1.0-1.i386.tar.gz -C /
62 tar -xvzf z600llpddk-2.0-1.i386.tar.gz -C /
64 You can test that all is well by running the cups backend for the printer:
66 /usr/lib/cups/backend/z600
68 which should return something like:
70 direct z600:/dev/usb/lp0 "Lexmark Lexmark 510 Series" "Lexmark Printer"
72 Now restart your cups daemon:
74 /etc/rc.d/init.d/cups restart
76 You can now use either lpadmin or the web interface to set up your printer.
78 ACKNOWLEDGEMENTS:
80   * The GENTOO Wiki of this topic:
81       http://gentoo-wiki.com/HOWTO_Lexmark_Printers
83 CHANGELOG:
85 [2005-08-20]
86   * Initial hint.