LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-10-2005, 09:11 AM   #1
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Rep: Reputation: 33
Trying to add local printer in sarge


Hi,
I am trying to add a local parallel port HP 812C printer using cups..I go to KDE and the control center add printer..The wizard starts,I describe my printer from the list of drivers (all seems ok up to this point) then when I click on print a test page an error pops up and says I am not authorized, then the print manager
fails to load..
How can you authorize a user to print?
Thank you,
jolphil

Edit later..I got the set up to show my printer but when I try to print a test page
...nothing happens...Just sits there

Last edited by jolphil; 03-10-2005 at 09:41 AM.
 
Old 03-10-2005, 10:23 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,248

Rep: Reputation: 79
You have to add the printer as root. Once it is added and configured, a user can print to it.

In the KDE wizard, look for and "administrator mode" button. Click on that and enter the root password. Now add the printer as root and print the test page. Once it is added, other users can print to it.

Another option is to point your web browser to: http://localhost:631/ Click on "manage printers" then "add printer". It will ask you for a name and password. The name to eneter is "root" and the password to enter is the root password.
 
Old 03-10-2005, 11:51 AM   #3
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Original Poster
Rep: Reputation: 33
Thanks_mYates

I think I got it ..I downloaded a foomatic driver and installed it as root..
It printed a test page...
Thanka again,
jolphil
 
Old 03-10-2005, 01:49 PM   #4
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Original Poster
Rep: Reputation: 33
I spoke too soon

I found it will print a test page just fine but will not print from anything else..Won't print EMail or from open office...
Any Ideas?
jolphil
 
Old 03-10-2005, 07:25 PM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
I don't know much of CUPS and the only advice that comes to my mind is that you should double-check that you've got all the needed packages installed. There's one command that can install all the packages you need to run CUPS, "aptitude -r install foomatic-bin" (run it as root).

If that doesn't help, you can change the LogLevel in /etc/cups/cupsd.conf from info to debug, then try to print something and after that check if you can find any error messages from /var/log/cups/error_log.
 
Old 03-11-2005, 04:46 AM   #6
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Theres also hpiod and something else you need to get for hp printers (at least I did.) Look for hpiod and the other one is right under it in synaptic. Dunno if it will help you, as I think I needed it even to print a test page, so it may not help in your case. Cant hurt to try though.

Last edited by short101; 03-11-2005 at 04:49 AM.
 
Old 03-11-2005, 07:49 AM   #7
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Original Poster
Rep: Reputation: 33
Hi,
I am not sure how to run that command but i tried to print an item then looked in the
/var/log/cupserror file and heres what it says...

Paste
[11/Mar/2005:07:28:29 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [11/Mar/2005:07:28:29 -0500] Configured for up to 100 clients.
I [11/Mar/2005:07:28:29 -0500] Allowing up to 100 client connections per host.
I [11/Mar/2005:07:28:29 -0500] Full reload is required.
I [11/Mar/2005:07:28:29 -0500] LoadPPDs: Read "/etc/cups/ppds.dat", 2398 PPDs...
I [11/Mar/2005:07:28:30 -0500] LoadPPDs: No new or changed PPDs...
I [11/Mar/2005:07:28:30 -0500] Full reload complete.
I [11/Mar/2005:07:40:26 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [11/Mar/2005:07:40:26 -0500] Configured for up to 100 clients.
I [11/Mar/2005:07:40:26 -0500] Allowing up to 100 client connections per host.
I [11/Mar/2005:07:40:26 -0500] Full reload is required.
I [11/Mar/2005:07:40:27 -0500] LoadPPDs: Read "/etc/cups/ppds.dat", 2398 PPDs...
I [11/Mar/2005:07:40:27 -0500] LoadPPDs: No new or changed PPDs...
I [11/Mar/2005:07:40:27 -0500] Full reload complete.
I [11/Mar/2005:07:42:16 -0500] Denying user "joelaura" access to printer "hp812c"...
End of paste
100 clients? What the heck is that all about..
jolphil
 
Old 03-11-2005, 09:07 AM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
The last line of your error_log says that CUPS has denied your user's access to printer. As I said, I don't know enough of CUPS to troubleshoot such access problems. Besides, you didn't say if you followed my advice and changed the LogLevel in /etc/cups/cupsd.conf from info to debug (in order to get verbose debug messages) before you tried to print something.

For me installing and configuring CUPS has always been a painless job -- first install all the necessary packages, then configure CUPS at http://localhost:631/admin (log in as root), and (after you've configured your printer) reboot. Because this has worked so smoothly for me, I just thought that maybe you don't have all the necessary packages installed and that might be the cause for your printing troubles.

As for how to run "aptitude -r install foomatic-bin" as root, you just open a terminal (such as Konsole or xterm), type:

su

(and type root's password when asked) to become the root user, then type:

aptitude -r install foomatic-bin

and press Enter.
 
Old 03-11-2005, 09:33 AM   #9
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Original Poster
Rep: Reputation: 33
Hi
I tried as root the command "aptitude -r install foomatic-bin" but all it did was to put me into the help
showing all the arguments..So I did not do anthing there for fear of screwing it up..
I have not finished doing the other suggestions yet but I did find that viewing the /var/log/cups/error file on the debian and comparing it to the knoppix file and mandrake file my debian lacks the "listening to 0:631 line just preceeding the sequence..
I also tried in kde removing my HP812C printer and reinstalling a HP810C printer because during boot up a line in the installer said HP810C...But it too has the same problem..
I will get back after I exhausted the other things..
Thank you,
jolphil
 
Old 03-11-2005, 09:47 AM   #10
mvandenhoeke
LQ Newbie
 
Registered: Mar 2005
Distribution: debian
Posts: 2

Rep: Reputation: 0
If it is pluged on the parallel port, try to unplug it, delete the printer on http://localhost:631, replug the cabel, recreate the printer, and try a test page.
Please reply if it solve your problem.
Best regards.
 
Old 03-11-2005, 10:10 AM   #11
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
I tried as root the command "aptitude -r install foomatic-bin" but all it did was to put me into the help showing all the arguments.
It does that if the syntax of the command you typed is incorrect. Are you sure you didn't make any typos?

Anyway, you can use Synaptic to install the foomatic-bin package and it installs all the needed packages for running CUPS just as well. If you don't have Synaptic installed, then do "apt-get install synaptic" to get it. I haven't used Synaptic in ages but I remember there's an in-built search engine for packages -- use it to find the foomatic-bin package and install it. It's possible that you already have all the needed packages and the problem is somewhere else, but troubleshooting is a process of elimination and you need to start by eliminating any obvious possible causes in order to proceed to the less obvious ones.

You can also use the "interactive" frontend of Aptitude by just typing "aptitude", but Synaptic may be more newbie-fiendly. Personally I prefer Aptitude because it's faster (once you figure out how to use it) and you can also use Aptitude when X server is not running. But newbies might appreciate Synaptic better -- and you cannot make typing errors in Synaptic because you use it just by pointing and clicking with mouse.

EDIT:
I just want to add that installing the foomatic-bin with apt-get doesn't produce the same results as installing the same package with Synaptic or Aptitude. This is because Debian sorts dependencies for packages into three groups: necessary dependencies, recommended dependencies, and suggested dependencies. Apt-get installs only necessary depends for packages while both Synaptic and Aptitude default to install also the recommended depends. (You don't usually need the suggested depends.) Due to a complex network of necessary and recommended dependencies, installing the foomatic-bin package with Synaptic or Aptitude will result that you install as dependencies all the packages that CUPS needs to work. (Except, if you have an Epson printer, you'll want to also install the cupsys-driver-gimpprint package.)

Last edited by Dead Parrot; 03-11-2005 at 10:55 AM.
 
Old 03-11-2005, 02:58 PM   #12
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Original Poster
Rep: Reputation: 33
Hi again,
You are right, i must have had a typo in the command because I re-did it and it worked A whole bunch of packages were removed.. I have not done the other stuff yet...I wont get back for a while..I found a water leak under my house that will take priority ...Yikes!!
Thanks and I will be back asap..
jolphil

mvandenhoeke, I did a similar thing and removed my local printer and re-installed it again ..Same problem..Note the test page prints fine bur no other software can use the printer..
I copied the error by hand and this is the gist of it...

Cupsdoprint-p hp810c-j fstab -h localhost 631 -u
My user name -o copies=1
Multiple-document-handeling=separate-documents-collated-copies orientation-requested=3 /tmpkde-muusername/kde print_fex7Qxsl
execution failed with message client-error-not-possible

Thats about it..
jolphil

Last edited by jolphil; 03-11-2005 at 03:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I add a local folder as a repository? akudewan Ubuntu 2 09-05-2005 02:35 AM
Cannot add a user in sarge. levicc00123 Debian 1 08-04-2004 12:47 PM
configuring local domains on sarge bro Debian 1 11-28-2003 11:23 PM
how do i add a local user that can use x window? hedich Linux - General 2 07-05-2003 08:41 AM
Want to add something to my rc.local glock19 Linux - General 1 04-25-2002 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration