Originally Published: Thursday, 24 February 2000 Author: MkIII_Supra
Published to: learn_articles_support/Articles Page: 1/1 - [Printable]

LNO: Get your printer working with Apsfilter

Linuxnewbie.org explains how to get your Printer working, by installing and using the Apsfilter utility.

   Page 1 of 1  

From Linuxnewbie.org

What is Apsfilter?

Apsfilter simplifies printing different file formats under Unix.

"user@unixhost $ lpr -P720dpi ascii-file.gz LaTeX.dvi.bz2 picture.gif xfig-file.fig.Z"

This commandline shows, that the user doesn't have to know anymore, how different file formats have to be converted with different Unix utilities, to get printed on your printer.

So you can relax and simply concentrate on the simple fact, that you want to print something, not how to pipe data through different Unix utilities.

On to the Installation

Now I am going to give credit here to the appropriate people and web sites. From Linuxnewbie.org, Sensei! He turned me onto apsfilter, a print manager. It is a lot better than the one that came with Mandrake. Below is what worked for me.

First thing you need to do is go to http://www.freebsd.org/~andreas/apsfilter/download.html and download apsfilter by Andreas Klemm.

Now to install apsfilter follow these directions: After you download. All of this has to be done as root. #mv apsfilter-5.1.3.tar.gz /usr/local/lib #tar -xvzf apsfilter-5.1.3.tar.gz #cd apsfilter #./SETUP

Follow the directions of the program from here on out. Now if your printer is still not working then the next steps are as follows: #cat /proc/devices You should see something like this: 1 mem 2 pty 3 ttyp 4 ttyS 5 cua 6 lp There are more but I think you get the idea. Now here is where it gets tricky, if you don't see lp anywhere then chances are you did not enable parallel port support or printer support or both. You will need to go back into your kernel and recompile to add those features. Once you can recognize lp after a cat call and the printer still doesn't work, then go to the next step below!

What I have found with the latest Mandrake installation is that when you configure your printer is adds the letters lp to 2 lines in your printcap file under apsfilter. I don't know what the original printcap looked like because I installed apsfilter before I solved the printer problem. That's why I tell people to use apsfilter, that and it's a better print manager than stock.

This is the current set-up for my HP DeskJet 420 in Linux-Mandrake 6.5 (RedHat 6.1), Kernel 2.2.13-22mdk. This set-up allows me to print from maxwell and StarOffice 5.1 as well as the Internet. I don't know if this matters or not, but I have no SCSI hardware or interface cards. I hope this helps! I did all my changes using VI as root. The areas that are red are the areas I removed to get it to work. In the event the red doesn't show the changed area will also be underlined. Let me know if this helps you out!

Full Article

   Page 1 of 1