trying to make printer work...

ana ana_m at onetel.com
Thu Apr 6 00:42:22 UTC 2006



Clive Menzies wrote:

>On (03/04/06 12:58), ana wrote:
>  
>
>>I have asked about this problem on irc already but and there was some
>>help but my printer is not working with ubuntu even though it is
>>supposedly supported. It even has the driver already installed in the
>>distribution, so in theory it is not necessary to download it.
>>    
>>
>
>On Debian I use cupsys to set up printers.  When I've tried setting up
>printers using the Gnome printing configuration tool in Ubuntu, I've
>encountered problems.  So I've resorted to using the cups webrowser
>interface to set up printers.  You need to add the user 'cupsys' to the
>shadow group first.  In a browser do, go to http://localhost:631 and
>follow the instructions.  You need the following packages:
>
>cupsys
>cupsys-bsd                                 
>cupsys-client 
>foomatic-db-hpijs
>hpijs
>a2ps
>gs-esp
>
><snip>
>  
>

HI,

I reinstalled those packages... with :

sudo aptitude install cupsys cupsys-bsd cupsys-client foomatic-db-hpijs
hpijs a2ps gs-esp

looks like all is installed nicely. I go to the printer to try to print
a page and the dialogue says: Printing: job-printing. But the printer
sits there doing nothing.

I also went to the page indicated, again with some one else helping...

I went to http://localhost:631

which is the cups configuration system. I went to the printers tab and
clicked on "add printer". My hp 400 was already there, but it does not
work and no one knows what to fix so i just start off adding one from
scratch.

"add printer"

It asks for a name and password on cups

My usual user name does not work, nor does sudo nor root

(note: it appears here that I am connected to any unsecure page,
http://, but it is allegedly my own computer: localhost means i am
connected to myself)

I try with root and it doesn't work so the next few lines are about the
process of making it work with root...

====================

Usually root is not activated. To try with root it needs to be
activated. I typed in the shell:

sudo passwd

It asks for a password: "enter new unix password". It is recommended
that after configuring that page, root is deactivated again. You
deactivate it by giving the same command and leaving the password blank.

Once root is activated, i type this command..
sudo usermod -G shadow cupsys

The shell does not give back anything so in theory it has worked. Then i
need to edit this file:
/etc/cups/cupsd.conf

Which needs to be open from shell so: sudo gedit /etc/cups/cupsd.conf

There is a line with the words "User root", roughly in line 370. It
needs to be 'decommented'? I e i need to take out the "#" at the
beginning of the line (the lines that start with a # are comments).

I could not find those words so i looked for #User cupsys and #Group
lpadmin. I took the # from User cupsys and replaced the word "cupsys"
with "root". saved and closed.

Then i rebooted cupsys with this command in shell:

sudo /etc/init.d/cupsys restart

======================

I enter with root as user name and the new password on that page on my
browswer, which says as a welcome: "Printer DeskJet-400 has been
configured successfully."

I then try to print a page from gedit. IN the printer dialogue box it
says "printer stopped". I go back to the browsers page. In the section
"printer", i click on stop printer, then start printer. the screen says:

Description: DeskJet-400
Location:
Printer State: stopped, accepting jobs.
"Unable to open parallel port device file "/dev/lp0": Permission denied"
Device URI: parallel:/dev/lp0

(which copied- pasted here it looks a bit grim but on the browser, it
comes with coloured letters and background pictures, very pretty, the
whole page)

The interpretation of this is that it can not open the paralell port.

I try by changing the permission: sudo chmod a+rw /dev/lp0
and i reboot the printer. I send another page to be printed and the same
message about the printer stopped comes up again.

Thanks again...

ana

-- 
-----------
http://anap.co.nr





More information about the ubuntu-users mailing list