This is a easy alternative to using a PCL printer without CUPS if you don't care for it. If you are going to use lpd printing on a PCL printer you need the right filter. If you can find out what driver works with your printer for Linux then you can use ghostscript to print the .ps file through a PCL filter and on to your printer.
I recently got a good clean Brother HL-1440 lazer printer given to me.
As you can see from here
http://www-01.ibm.com/support/docview.wss?uid=nas1d1817a5251ba1e4b862569c100799559
It is an HP PCL 4 data stream printer.
I found the Brother released Brother-HL-1440-hl1250.ppd file for Linux. In it is a line
So I looked at
Sure enough the hl1250 is listed.
So I plugged the printer in and established which port it would print on. (dmesg)
I saved a document as a .ps file. Most apps will. Firefox, AbiWord, OO, etc.
You could also use pdf2ps, a2ps,.....make the file .ps because that what gs wants.
So I then issued
And the page printed just fine. I became root because only root has perms to /dev/unlpt0 unless you do some changes. Another USB printer I use works on /dev/ulpt0.
You can also use gs to print to file, a PCL file. This takes your myfile.ps and makes a myfilePCl
Now the file is in PCl format so just cat it to the printer.
You can also set up lpd printing, make a printcap file with your ghostscript filter and use lpr. You'll have a print cue.
You can also use ggv as a front end to ghostscript8. It works good.
Then you can save a file as file.ps
Open ggv and print the file to the lpr printer. Slick.
gs()
gs -help
cat()
printf()
I recently got a good clean Brother HL-1440 lazer printer given to me.
As you can see from here
http://www-01.ibm.com/support/docview.wss?uid=nas1d1817a5251ba1e4b862569c100799559
It is an HP PCL 4 data stream printer.
I found the Brother released Brother-HL-1440-hl1250.ppd file for Linux. In it is a line
Code:
gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=hl1250 -sOutputFile=
Code:
gs -help
So I plugged the printer in and established which port it would print on. (dmesg)
I saved a document as a .ps file. Most apps will. Firefox, AbiWord, OO, etc.
You could also use pdf2ps, a2ps,.....make the file .ps because that what gs wants.
So I then issued
Code:
su
gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=hl1250 -sOutputFile=/dev/unlpt0 myfile.ps
You can also use gs to print to file, a PCL file. This takes your myfile.ps and makes a myfilePCl
Code:
gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=hl1250 -sOutputFile=myfilePCL myfile.ps
Now the file is in PCl format so just cat it to the printer.
Code:
cat myfile > /dev/unlpt0
You can also set up lpd printing, make a printcap file with your ghostscript filter and use lpr. You'll have a print cue.
Code:
printf myfilePCL | lpr
You can also use ggv as a front end to ghostscript8. It works good.
Then you can save a file as file.ps
Open ggv and print the file to the lpr printer. Slick.
gs()
gs -help
cat()
printf()