You are not logged in.

#1 2005-08-12 04:11:40

plockery
Member
Registered: 2005-04-15
Posts: 41

Can't install local printer via cups

I am trying to install a local parallel port printer (hp laserjet 5m) via the cups browser option.

I followed the arch wiki on this topic.

I am using windowmaker and dillo on an old p2 350.

Loaded cups, ghostscript gimp-print and hpijs (which also loaded foomatic filters).
Started the cups daemon and put it in rc.conf.
Rebooted and dmesg shows the printer as HP Laserjet 5M and that lp0 is on parport0 (interrupt driven).


But when I go to http://localhost:631 -> manage printers -> add printer I get an error that reads:

"Unauthorized:
This server could not verify that you are authorized to access this device."

This happens whether I su - into root or not, which seems crazy!

The wiki says it should at least ask me for a username and password.

It seems as if no users at all are being recognized by cups.

I have searched the net for the said error but have found little and nothing that makes any sense to me.

Can anyone tell me why this happening and what I need to do.

Peter

Offline

#2 2005-08-12 07:33:53

plockery
Member
Registered: 2005-04-15
Posts: 41

Re: Can't install local printer via cups

I have now been able to add the printer as root via the command line:

usr/sbin/lpadmin -p LaserJet -E -v parallel:/dev/lp0 -m HP_LaserJet_5M.ppd

Now it shows up in dillo http://localhost:631 and prints a test page ok, but I still cannot configure it or do any admin task... same error message.

For example I want to change the paper from letter to A4 etc....

Can this be done from the command line... can't find it in the cups manual?

Is the problem a cupsd.conf setting? If so which one? All the right ones for local host seem to be enabled by default.

Why can I add a printer via the command line but not add it via the web browser?

Peter

Offline

#3 2005-08-15 10:55:54

plockery
Member
Registered: 2005-04-15
Posts: 41

Re: Can't install local printer via cups

This problem is now solved.

The problem is with Dillo.

It seems Dillo can't handle the CUPS browser install.
I don't know why or if this is a bug in Dillo.
But I installed firefox and had no problems.

Everytime I opened CUPS in firefox it asked for a username and password like it supposed to.
But if I opened Dillo and did the same thing it came back with the unauthorized error noted above.

Peter

Offline

Board footer

Powered by FluxBB