LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Trying to add local printer in sarge (https://www.linuxquestions.org/questions/debian-26/trying-to-add-local-printer-in-sarge-299989/)

jolphil 03-10-2005 08:11 AM

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

m_yates 03-10-2005 09:23 AM

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.

jolphil 03-10-2005 10:51 AM

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

jolphil 03-10-2005 12:49 PM

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

Dead Parrot 03-10-2005 06:25 PM

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.

short101 03-11-2005 03:46 AM

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.

jolphil 03-11-2005 06:49 AM

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

Dead Parrot 03-11-2005 08:07 AM

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.

jolphil 03-11-2005 08:33 AM

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

mvandenhoeke 03-11-2005 08:47 AM

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.

Dead Parrot 03-11-2005 09:10 AM

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. :p

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.)

jolphil 03-11-2005 01:58 PM

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


All times are GMT -5. The time now is 06:54 AM.