[gobolinux-users] Configuring CUPS ?

Hi There goboster at yahoo.com
Wed Jan 31 10:24:47 UTC 2007


Thanks Carlos!

That finally got cupsd running. Those directories
should really be part of the package/recipe!

In case anyone else wants to use CUPS, here are the
other steps I have taken (still not working though):

there were two Listen lines in my cupsd.conf,
remove the "Listen
/Programs/CUPS/Variable/run/cups/cups.sock" line if
you have it, leaving you with a "Listen localhost:631"
line.
If you don't do this, KDE looks for the print server
at "/Programs/CUPS/Variable/run/cups/cups.sock:631",
not exactly a valid net address.

you may want to change that to "Listen 127.0.0.1:631",
apparently some versions of cups have problems with
"localhost"

also added "ServerBin /System/Links/Libraries/cups" to
cupsd.conf


ran into this bug
When I open the Printing Manager, it says:

        Unable to retrieve the printer list.  Error
message received
        from manager:

        Connection to CUPS server failed.  Check that
the CUPS server
        is correctly installed and running.  Error:
connection refused.

dealt with a bug described here
http://blog.gmane.org/gmane.comp.kde.kdeprint/month=20060101
(look for kdeprint and CUPS 1.2)
basically, you get this message:
 An error occurred while retrieving the printer list:

 Connection to CUPS server failed. Check that the CUPS
server is
 correctly installed and running. Error: the IPP
request failed for an
 unknown reason.

Workaround is to install a printer via the web
interface (http://localhost:631) first, then go to the
Control Center to check up on your printers.


now deal with this bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=381743
has to do with a lack of gs-esp? (probably not)
Disabled gs, installed gs-esp, still no-go
Then uncommented the line:
application/vnd.cups-postscript
application/vnd.cups-raster	100	pstoraster

in /Programs/CUPS/Settings/cups/mime.convs, now I can
actually get CUPS to attempt to send a test page to
the printer via the web interface.


But it just keeps telling me "Printer not connected;
will retry in 30 seconds..."
Sounds very similar to this bug:
https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/80468
but /dev/usb/lp0 is owned by user/group root/lp
crw-rw---- 1 root lp 180, 0 Jan 31 00:19 /dev/usb/lp0

checked who is running what with ps

root     18862  0.8  0.1   4264  2404 ?        Ss  
00:13   0:11 /Programs/CUPS/1.2.7/sbin/cupsd

65534    19159  0.0  0.0   4368  1216 ?        S   
00:28   0:00 /bin/sh
/System/Links/Libraries/cups/filter/pstoraster 2 guest
Test Page 1 job-uuid=urn:u
65534    19160  0.0  0.5  22140 11068 ?        S   
00:28   0:00 /Programs/ESP-GhostScript/7.07.1/bin/gs
-dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH
65534    19161  0.0  0.0   4412  1360 ?        S   
00:28   0:00 EpsonC40UX 2 guest Test Page 1
job-uuid=urn:uuid:a44428b4-474c-3a43-7cf1-ce8113350c70
65534    19162  0.0  0.0   3596  1024 ?        S   
00:28   0:00 usb://EPSON/Stylus%20C40 2 guest Test
Page 1 job-uuid=urn:uuid:a44428b4-474c-3a43-7cf1-ce

are those "65534" entries normal?
I've got some files owned by 65534 now (like ppds.dat
in Variable/cache/cups/)

checked /etc/group, nobody is a member of lp
lp:x:9:

Try to add root to group lp like shown here
http://www.g-loaded.eu/2005/11/06/manage-users-from-the-command-line/
and get errors:
root at Home /Programs/CUPS/Current]usermod -a -G lp root
usermod: invalid numeric argument 'lp'
root at Home /Programs/CUPS/Current]usermod -a -G 9 root
usermod: unknown group 9

same thing if I use sudo from non-root account.
WTF?

OK, edit /etc/group directly and reboot
now root is in groups
root sys lp audio
but I still get the same problem
CUPS recognizes the printer, and says that it get
partially through the print job (~15%), then says not
connected

I've tried both "EPSON Stylus Color Series CUPS v1.2"
drivers (normal & new), same result.

Like some threads on HP printers suggested, I changed
the device URI from usb://EPSON/Stylus%20C40 to
usb:/dev/usb/lp0 to file://dev/usb/lp0 to
file://dev/usb/lp0, stopping and starting cups in
between each time, still not working.
Using file://dev/usb/lp0 actually shows the job as
completing, nothing prints though.

nothing abnormal in error_log file

So close now. Any more suggestions anyone?



------------------------------------------------
Carlos said:

On 1/20/07, Lucas C. Villa Real
<lucasvr at gobolinux.org> wrote:
>
> Do you have a /Programs/CUPS/Variable
directory/symlink? If there
> isn't an entry with that name, you can try to create
one by running
> 'ln -s /System/Kernel/Variables/
/Programs/CUPS/Variable' and re-run
> cupsd again.
>

Isn't it /System/Variable NOT /System/Kernel/Variable?

You may also need to create the Variable/run/cups,
Variable/spool/cups, Variable/log/cups dirs.

Check Variable/log/cups/error_log helpful output too.

I setup cups on 013 (for a network printer) a few days
ago and I
remember needing to do that.

-- 
Carlo J. Calica


 
____________________________________________________________________________________
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get
started!
http://mobile.yahoo.com/services?promote=mail


 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather


More information about the gobolinux-users mailing list