chrislale@users.sourceforge.net
Revision History | ||
---|---|---|
Revision 1.0 | 14th November 2002 | Revised by: CTL |
Initial draft |
Copyright ©2002 Chris Lale (chrislale@users.sourceforge.net). Permission is granted to copy, distribute and/or modify this document with no Invariant Sections, with no Front-Cover texts and with no Back-Cover Texts under the terms of the GNU Free Documentation License, version 1.1 or any later version, published by the Free Software Foundation. A copy of the license can be found at http://www.fsf.org/copyleft/fdl.html.
You can get the latest version of this document from http://newbiedoc.sourceforge.net.
If you find any errors, omissions etc, please let me know at chrislale@users.sourceforge.net.
I have written this article in standard (UK) English. I hope that this will not cause problems for users of other dialects eg American (US) English. I have used American spelling for some technical terms eg 'program' and 'disk' where this have become widely accepted. If you spot a mistake, please check with a UK dictionary or spell-checker before contacting me! You can find a summary of English punctuation and grammar at http://www.bolton.ac.uk/webpublishing/guidelines/grammatical.html.
For example, these are the prompts for user 'chris' on computer (host) 'athlon':
chris@athlon:~$ athlon:/home/chris# |
In this article they are abbreviated to:
$ # |
Enter key assumed at command prompt:
# modconf |
Enter key specifically shown within a program:
Exit enter |
# lprm - enter |
You can find out more about this command by typing man lprm followed by enter at the command prompt.
Magicfilter's input filters make use of Ghostscript's printer drivers. The filters usually have names very similar to Ghostscript's drivers. For example, the 'epsonlq' filter makes use of Ghostscript's 'lq850' driver. You should be able to recognise the filter you need if you know the Ghostscript driver for your printer. You can find out which Ghostscript driver suits your printer from a Linux printer database on the Web. You can find it at http://www.linuxprinting.org/printer_list.cgi. Using this database I found that the Ghostscript driver for my Canon BJC-4200 printer was the 'bjc600'. This enabled me to choose Magicfilter's 'bj600' filter.
Here is the list that appears when you configure Magicfilter. The filters concentrate on the printer language. If you know, that your printer uses a given printer language (e.g. ESC/P2 or PCL5) and your printer is not listed, you can use another filter which uses same language.
Table 1. Magicfilter input filters
StylusColor-1520@1440dpi | StylusColor-500@360dpi | StylusColor-500@720dpi |
StylusColor-600@1440dpi | StylusColor-600@360dpi | StylusColor-600@720dpi |
StylusColor-800@1440dpi | StylusColor-800@360dpi | StylusColor-800@720dpi |
StylusColor-II-IIs@360dpi | StylusColor-II@720dpi | StylusColor-IIs@720dpi |
StylusColor-generic | StylusColor@360dpi | StylusColor@720dpi |
bj10e | bj200 | bj600 |
bj600_draft | bj610 | bj800 |
bj800_draft | cps300 | cps400 |
cps600 | cpsonly300 | cpsonly400 |
cpsonly600 | deskjet | dj500 |
dj500c | dj550c | dj630c |
dj670c | dj670c-best | dj670c-low |
dj690c | dj690c-best | dj690c-low |
e312 | epson9 | epson9c |
epsonlq | epsonlqc | gdi |
ibmpro | jetp3852 | la50 |
la75 | laserjet | laserjetlo |
lbp8 | lj250 | ljet2p |
ljet2plo | ljet3 | ljet4 |
ljet4050 | ljet4l | ljet4m |
ljet4ml | ljetplus | ljetpluslo |
ln03 | m8510 | necp6 |
oki182 | pcl3 | pj |
pjxl | pjxl300 | ps300 |
ps400 | ps600 | psonly300 |
psonly400 | psonly600 | r4081 |
stylus800 | tek4693 | tek4696 |
Switch user using the root password:
$ su Password: # |
Return to normal user privileges at the end of the installation:
# exit $ |
# modconf Please select the category of modules misc Drivers that don't fit in the other categories. enter lp - Parallel printer support enter Install this module in the kernel? enter Enter Command-Line Arguments (leave blank) enter lp + Parallel printer support home Exit Finished return to previous menu enter Exit Finished return to previous menu enter # |
# apt-get install lpr Reading Package Lists... Building Dependency Tree... The following NEW packages will be installed: lpr Media Change: Please insert the disc labeled '...Official i386 Binary-1...' enter Unpacking lpr ... Setting up lpr ... Starting printer spooler: lpd. # |
# apt-get install magicfilter Reading Package Lists... Building Dependency Tree... The following NEW packages will be installed: magicfilter Media Change: Please insert the disc labeled '...Official i386 Binary-1...' enter Unpacking magicfilter ... Setting up magicfilter ... Run `magicfilterconfig' if you want to have your printcap automatically generated or edit it by hand. # |
You must also supply the name of the Magicfilter input filter that you chose in "Choosing an input filter" above. You can check that the input filter suits your printer by reading the first few lines of the filter file with a text editor. The files are in the /etc/magicfilter directory.
Magicfilterconfig prompts you to enter the full name for a second printer. Enter 'none' if you do not wish to set up a second printer.
# magicfilterconfig Printer #1: ------------ Full name, `done' when done [HP Laserjet 4L ]: Canon BJC-4200 enter Short name, name of the spool directory [hplj4l ]: myCanon enter Full device path (or remote machine name) [/dev/lp1 ]: /dev/lp0 enter (List of filters appears here.) The input filter to be used [ljet4l ]: bj600 enter Printer #2: ------------ Full name, `done' when done [done ]: done enter |
Magicfilterconfig now summarises the settings you have chosen, and asks you to confirm them:
Printer configuration Printer name Short name Spool dir Device Input filter ------------------------------------------------------------------------------- Canon BJC-420 myCanon /var/spool/lpd/myCan /dev/lp0 bj600 * Is this ok? (y/n) [y]: y enter |
Some messages appear here. They are summarised in the next two sections.
Press <ENTER> to continue. enter # |
Your new printcap file has been created in /var/tmp.
# /etc/init.d/lpr stop |
# mv /etc/printcap /etc/printcap.orig |
Install Magicfilter's printcap:
# mv /var/tmp/printcap /etc/printcap |
# /etc/init.d/lpr start |