LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   CUPS printing, parallel port not found in lpinfo (https://www.linuxquestions.org/questions/linux-hardware-18/cups-printing-parallel-port-not-found-in-lpinfo-181509/)

movitto 05-31-2004 02:46 AM

Any solution?
 
Hey;

Im have the same problem when I try to use lpadmin (command and gui) to add a printer. I have verified that the
printer port is working but using a cat blah.txt > /dev/lp0. I am getting the dreaded "client-error-not-possible" error.
I changed permissions on the printer port to 770. Any ideas?

BTW Im new to CUPS so please go easy with the technical detail if any and I perfer to use the cmd line to the gui if
I can help it.

Thanks alot

movitto 05-31-2004 12:28 PM

Hey;

I found out what I am doing wrong, its still not perfect and needs a bit of work but Im getting closer.
I found that I could add a printer and have it work properly using the localhost:631 CUPS utility. But as I said above I alway perfer to use the command line. Every time I tried using lpadmin I would type the following:

//Note the next line is the WRONG way to do it
lpadmin -p HPLJ -E -v /dev/lp0 -m /user/share/cups/model/HP... -o PageSize=A4

After many google searches later I was looking into the lpinfo -v command and found a source of my problem. You have to specify the type of port you are using in the -v paramater as in:

//This is the 'right' way
lpadmin -p HPLJ -E -v parallel:/dev/lp0 -m /user/share/cups/model/HP... -o PageSize=A4

This time it gives me a different error, but I the test page button in CUPS gui tool works now. which is closer to where I need to be.

The error that I'm getting is:
lpadmin: add-printer (set model) failed: server-error-internal-error

I am pretty sure this has something to do with CUPS having a problem using the ppd specified with the -m parameter above because it is apparent the printer test page has the staircase problem.

Anyone got any ideas? Hope I helped.

Thx;

movitto 05-31-2004 12:59 PM

Another update;

Aggg no wonder alot of people complain about linux printing :)

Anyways, I got rid of the server internal error, but its still not working right. To get rid of the error simply navigate to /usr/share/cups/model and issue the following command:

lpadmin -p HPLJ -E -v parallel:/dev/lp0 -m blah.ppd -o PageSize=A4

where HPLJ is the name u want to use and blah.ppd is the ppd file you downloaded for your printer.
Also note i set the permissions to 770 on the ppd file with chmod.

Anyways this says the printer installs correctly, huray!!.... wait but its not working. I can't print anything using the lpr command and when i try printing the test page using the localhost:631 gui it does nothing. If I click on "show completed jobs" all the entries are "aborted" and if I try to restart any of them cups gives me the dreaded: "client-error-not-possible " error.

Back to square one.

Anyways I feel like Im really close, its just putting the final pieces in place. If you got any ideas please post, all help is appreciated, and I will continue updating so that anyone who has the same problem will hopefully find an easy solution.

Thx;

movitto 05-31-2004 04:46 PM

I have a bunch of new problems, please see my thread:

thread id=188142

qwijibow 06-29-2004 09:18 PM

as for the no parrallel port error, make sure you modprobed

parport
parport_pc
lp

movitto 06-30-2004 09:03 AM

got it thanks alot, it worked

beajedi 10-02-2004 01:07 AM

hey, I got as far as Movitto Got, but now I'm getting the infamous "client-error-not-possible" message.

Movitto, did you get it to work yet?

movitto 10-02-2004 10:59 AM

Exactly what are you doing when you get the client-error-not-possible message. I found out that I get this whenever I try to do an administrative task, but CUPS is not recognizing me as an admin. If your tying to change printer settings, goto localhost:631 and login as root. After that try setting up your printer (or make sure that its set up correctly) and printing a test page.

Also, what kind of printer you have plays an important role in this process, I have a HP LaserJet 5L, but I used the LaserJet 4L driver, because it is more compatible with my printer. You can find a ton of info on linuxprinting.org

Also make sure you have gimp-print, Im pretty sure thats a must.

beajedi 10-04-2004 03:30 PM

I'm printing stuff, from test documents to the "print test page" on the localhost:631 as an administrator.

It says its printing, but no paper comes out, and the printer does not do anything. When I look at the jobs, I see that all the jobs have been aborted. When I click "restart jobs" I get client-error-not-possible thing.

My printer is a HP DeskJet 712C

movitto 10-04-2004 04:42 PM

beajedi;

Can you tell me the driver which you are using for this printer? According to linux printing , you should be using the pnm2ppa driver. Im not sure if this comes standard or not with CUPS, but if it doesnt linuxprinting has a good complete guide to intalling printer drivers and such. If this doesnt work try using th hpijs driver (Even though the link i gave you says it might not work), which supposedly supports all hp printers. As for your error message, it seems that cups is logging you out every time your attempting to do something or another. Try logging in as root, and then immediately restart the printer. If you get the error, then you know that there's the problem (how to fix it, im not sure). Sorry, I couldnt be of more help, I started using linux a little less than a year ago. Just keep with it, cause setting up a printer is supposedly one of the harder things to do in linux.

beajedi 10-05-2004 01:30 AM

yeah, I followed the instructions from the linuxprinting website and I got as far as the DeskJet driver thing installed. now I'm at the client-error problem :mad:

beajedi 10-23-2004 04:44 PM

Ok, it prints now.

I fixed it by recompiling my kernel, and and hard compiling parallel support right into the kernel.

I suppose before, the computer probably didn't know what to do with my parallel port.

Thanks for the help, guys!


All times are GMT -5. The time now is 10:57 PM.