You are not logged in.

#1 2008-08-26 18:57:30

Hy Ginsberg
Member
From: Massachusetts
Registered: 2008-08-22
Posts: 74
Website

can't add cups printer

Hi all,

I have a pretty minimal install -- using the "awesome" window manager and no pre-packaged desktop environment -- just a handful of useful applications like opera and evince.

I am trying to set up my printer.  It's an HP that plugs into the USB port.  I installed cups, added usblp to the modules list in /etc/rc.conf and cups to the daemons list in the same file.  So far so good; I can start the browser-based cups config tool at http://localhost:631.

If I go to the Administration tab, the tool will even automatically detect my printer.  I choose as the driver for it "HP DeskJet Series, 1.3..." (I have a DeskJet 6540).  But then the darn thing asks me for a username and password, and whether I use my personal one or root, it just won't accept it -- keeps asking again and again until finally I hit "cancel" and then it reprimands me for not using a valid username and password...

Thanks for any help.

- Hy

Offline

#2 2008-08-26 19:56:15

z0phi3l
Member
From: Waterbury CT
Registered: 2007-11-26
Posts: 278

Re: can't add cups printer

Have you tried using HPLip?

Don't think I've managed to get an HP printer working without it

Offline

#3 2008-08-26 22:01:53

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Re: can't add cups printer

Yeah you need to install hplip in order to obtain the PPD file that CUPS needs in order to get your printer working.


My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! tongue, OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

#4 2008-08-26 22:03:39

Hy Ginsberg
Member
From: Massachusetts
Registered: 2008-08-22
Posts: 74
Website

Re: can't add cups printer

Thanks -- I haven't.  Started to, but if I install it I'm going to get such a barrage of software, and I'm trying to keep it simple... (there are dependencies, and then hplip itself contains support for over 1400 different HP printers -- I just have one...)  Meanwhile cups comes with some built-in HP support, I figured I'd give it a go.  I would think that I should at least be able to get it working badly, and maybe have to get a new PPD file or install a driver or some such.

Offline

#5 2008-08-26 22:58:39

Hy Ginsberg
Member
From: Massachusetts
Registered: 2008-08-22
Posts: 74
Website

Re: can't add cups printer

Okay, I installed hplip, same problem.

Suspicion: something is going wrong, and the web-based config tool is assuming it's an authorization problem, but it's not.  Any idea how I diagnose further?

Thanks - Hy


More (edit): I turned up logging in cups.  It looks like the password checks but maybe the user is not a member of one of the groups "root" or "sys"?  Can anyone tell me how to list what groups a user is in from the command line?  (can usermod do it?)

Thanks again.

Last edited by Hy Ginsberg (2008-08-27 00:06:24)

Offline

#6 2008-08-27 00:30:33

Hy Ginsberg
Member
From: Massachusetts
Registered: 2008-08-22
Posts: 74
Website

Re: can't add cups printer

Got it.

1) List the groups a user belongs to with the command "groups"....

2) Use:

usermod -a -G sys hy

(if your username happens to be "hy", which would be quite a coincidence), BUT first you have to log out and log back in as root or it won't take -- just prefixing a "sudo" to the above command will appear to work without actually adding the group.

3) Use the cups web tool to add the printer...

Thanks all. 

(I see that posts get marked "[SOLVED]" in the title -- am I supposed to do that somehow -- I don't see how...)

- Hy

Offline

Board footer

Powered by FluxBB