debiandude
03-24-2001, 05:15 PM
I know my printer works with Linux, I've used it before but for some reason I can't get it working right now.
It is a HP LaserJet 5L
I test my printer by making a simple filter that fixes stairsteeping text and tells the print to being the file:
#!/bin/bash
echo -ne \\0033\&k2G
cat
echo -ne \\f
and i save it as /usr/local/bin/filter
I test and it woks. Now of course that will only work for test, now I need ghostscipt to make it print out normal stuff.
I do an apt-get install gs enscript
Leaving my printcap file the same I proceede to edit the filter file to use ghostscipt as so:
#!/bin/bash
echo -ne \\033\&k2G
gs -q -dNOPAUSE -sDEVICE=ljet4 -r300 -sPAPERSIZE=letter -sOutputFile=- -
however nothing happen. I get on error when I lpr filename
I am stuck.. Any help guys. Btw I am using debian and use lprng
It is a HP LaserJet 5L
I test my printer by making a simple filter that fixes stairsteeping text and tells the print to being the file:
#!/bin/bash
echo -ne \\0033\&k2G
cat
echo -ne \\f
and i save it as /usr/local/bin/filter
I test and it woks. Now of course that will only work for test, now I need ghostscipt to make it print out normal stuff.
I do an apt-get install gs enscript
Leaving my printcap file the same I proceede to edit the filter file to use ghostscipt as so:
#!/bin/bash
echo -ne \\033\&k2G
gs -q -dNOPAUSE -sDEVICE=ljet4 -r300 -sPAPERSIZE=letter -sOutputFile=- -
however nothing happen. I get on error when I lpr filename
I am stuck.. Any help guys. Btw I am using debian and use lprng