CUPS Problems
started by: jscho84233jscho84233
on: 1215305997|%e %b %Y, %H:%M %Z|agohover
number of posts: 22
rss icon RSS: new posts
summary:
How do I get round the "__guard" error?
CUPS Problems
jscho84233jscho84233 1215305997|%e %b %Y, %H:%M %Z|agohover

I'm sorry if this has been asked before. I followed the guide on here to install cups, and I'm getting "can't resolve symbol '__guard'" error when i try to start cups.

I've seen a few other threads where people are having the same problem, and I've also read a few threads where people have got cups working.

So, to anyone who got this problem and got around it, how did you do it?

Thanks!

PS, I also had the SSL problem, but I fixed that and have generated a key.

unfold CUPS Problems by jscho84233jscho84233, 1215305997|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
alephsmithalephsmith 1215310889|%e %b %Y, %H:%M %Z|agohover

To get around __guard error you need to compile CUPS from source.

make sure you first remove any other version of CUPS you have installed: /ipkg remove cups -recursive

unfold Re: CUPS Problems by alephsmithalephsmith, 1215310889|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
DVaderDVader 1215320421|%e %b %Y, %H:%M %Z|agohover

I've also got the same problem…can anyone please explain to a n00b how to compile CUPS from source? Any tutorials around?

unfold Re: CUPS Problems by DVaderDVader, 1215320421|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
alephsmithalephsmith 1215323444|%e %b %Y, %H:%M %Z|agohover

Install dependancies from optware

# ipkg install libtiff libjpeg libpng zlib openssl openssl-dev php php-dev openldap-libs
# ldconfig

Download cups source code

# cd /tmp
# wget http://www.cups.org/software.php?VERSION=1.4svn-r7717&FILE=cups/1.3.7/cups-1.3.7-source.tar.gz
# tar xf cups-1.3.7-source.tar.gz
# cd cups-1.3.7

Configure and Make (will take ages)

# ./configure
# make
# make install

Fix up ssl errors

# chown sys:lp /etc/cups/ssl/
# openssl req -new -x509 -keyout /etc/cups/ssl/server.key -out /etc/cups/ssl/server.crt -days 365 -nodes -config /opt/share/openssl/openssl.cnf

Unfortunately, I am getting that 403 forbidden error and cannot for the life of my remember how I fixed it last time.

Dunno if this works:
Install cups-pdf

# cd /tmp
# wget http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/cups-pdf_2.4.8.tar.gz
# tar xf cups-pdf_2.4.8.tar.gz
# cups-pdf-2.4.8/src
# gcc -O9 -s -o cups-pdf cups-pdf.c
# cp /cups-pdf /usr/lib/cups/backend/cups-pdf
# cd ../extra
# cp cups-pdf.conf  /etc/cups/cups-pdf.conf
last edited on 1215329694|%e %b %Y, %H:%M %Z|agohover by alephsmith + show more
unfold Re: CUPS Problems by alephsmithalephsmith, 1215323444|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
DVaderDVader 1215325749|%e %b %Y, %H:%M %Z|agohover

Thanks for the help … I seem to have gotten stuck on the configure and make part when typing ./configure this appears:

[root@MyBookWorld cups-1.3.7]# ./configure
checking for gawk… gawk
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: no acceptable C compiler found in $PATH
See ‘config.log’ for more details.

Any ideas how to resolve this?

unfold Re: CUPS Problems by DVaderDVader, 1215325749|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
alephsmithalephsmith 1215326571|%e %b %Y, %H:%M %Z|agohover

You need to recover gcc.

There is a post with step by step instructions here

As for the 403 error its seems that I just have to make the security options very permissive. While it isn't safe, for the moment I have set it to
Deny From None
Allow From All
While I figure out an acceptable solution.

unfold Re: CUPS Problems by alephsmithalephsmith, 1215326571|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
alephsmithalephsmith 1215328642|%e %b %Y, %H:%M %Z|agohover

You may need to install that foomatic filters:
Link to the perl interpreter so you don't need to keep editing the first line of perl scripts

# ln  -s /usr/local/bin/perl /usr/bin/perl

Download and install foomatic

# cd /usr/bin
# wget http://www.linuxprinting.org/foomatic-rip
# wget http://www.linuxprinting.org/foomatic-gswrapper
# chmod 755 foomatic-rip foomatic-gswrapper
# ln -s /usr/bin/foomatic-rip /usr/lib/cups/filter/foomatic-rip

OK- it all works. except when I try to print a test page the MBWE becomes unresponsive. I need to unplug the printer for it to start working again.
dmesg:

<4>drivers/usb/class/usblp.c: usblp0: nonzero read/write bulk status received: -32
<3>drivers/usb/class/usblp.c: usblp0: error -32 reading from printer

I have no idea/motivation to debug this one. I guess I'll give up.
last edited on 1215329755|%e %b %Y, %H:%M %Z|agohover by alephsmith + show more
unfold Re: CUPS Problems by alephsmithalephsmith, 1215328642|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
EskobastionEskobastion 1217791620|%e %b %Y, %H:%M %Z|agohover

No need to compile CUPS from the source. I tried that but failed due to some library routines which are not included in the gcc package.

export LD_LIBRARYPATH = /opt/lib should fix this problem.

I have been trying to get CUPS working for the three last days and I think I am probably going to find the final solution soon. At least I hope so ;-)
The CUPS version I am runnin on my MyBook is downloaded from the optware repository. I installed and configured also the foo2hp driver.
The cups daemon is alive, I have set up the printer, I am able to send printing jobs to queue from my laptop. Foomatic scripts, ghostscript and foo2hp seem to be running on background when I sent test pages to the printing queue.
Everything seems to be ok but my printer does not print..

I have a HP Color LaserJet 1600 printer. If you have managed to get it up and working, please let me know. Any help is very welcome!

last edited on 1217792641|%e %b %Y, %H:%M %Z|agohover by Eskobastion + show more
unfold Re: CUPS Problems by EskobastionEskobastion, 1217791620|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
jscho84233jscho84233 1215468652|%e %b %Y, %H:%M %Z|agohover

Ok, I followed alephsmith's instructions and compiled CUPS from the source. After a few hitches I managed to get it all to install. So I ran CUPS by the command # cupsd, and I think it's running, because I just get the prompt back rather than an error message, however when I try to visit CUPS in my browser (http://192.168.0.5:631) I just get "Page cannot be displayed." I tried with https too, with the same result. How do I know that CUPS is in fact running? And can anyone suggest why I can't get to the CUPS page? I can get to the MBWE page OK.

unfold Re: CUPS Problems by jscho84233jscho84233, 1215468652|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
alephsmithalephsmith 1215477409|%e %b %Y, %H:%M %Z|agohover

Check if cupsd is running:

# ps aux|grep cups

Check the error log:

tail -n 20 /var/log/cups/error_log

Check the access log:

tail -n 20 /var/log/cups/access_log

Is the "Page cannot be displayed" error originating from the browser? Is there an error code associated with it (e.g. 403-forbidden 404-no page exists)

unfold Re: CUPS Problems by alephsmithalephsmith, 1215477409|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
jscho84233jscho84233 1215537443|%e %b %Y, %H:%M %Z|agohover

Ok, here is the error log I got:

[root@MyBookWorld1 ~]# tail -n 20 /var/log/cups/error_log
I [07/Jul/2008:23:08:14 +0000] Resuming new connection processing...
I [08/Jul/2008:05:24:07 +0000] Scheduler shutting down normally.
I [08/Jul/2008:05:24:07 +0000] Saving job cache file "/var/cache/cups/job.cache"...
I [08/Jul/2008:05:24:23 +0000] Listening to 7f00:1:3ce5:9dbe:::631 (IPv6)
I [08/Jul/2008:05:24:23 +0000] Listening to 127.0.0.1:631 (IPv4)
I [08/Jul/2008:05:24:23 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [08/Jul/2008:05:24:23 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [08/Jul/2008:05:24:23 +0000] Using default TempDir of /var/spool/cups/tmp...
I [08/Jul/2008:05:24:23 +0000] Configured for up to 100 clients.
I [08/Jul/2008:05:24:23 +0000] Allowing up to 100 client connections per host.
I [08/Jul/2008:05:24:23 +0000] Using policy "default" as the default!
I [08/Jul/2008:05:24:23 +0000] Full reload is required.
I [08/Jul/2008:05:24:23 +0000] Loaded MIME database from '/etc/cups': 35 types, 37 filters...
I [08/Jul/2008:05:24:23 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [08/Jul/2008:05:24:23 +0000] Full reload complete.
I [08/Jul/2008:05:24:23 +0000] Cleaning out old temporary files in "/var/spool/cups/tmp"...
E [08/Jul/2008:05:24:23 +0000] Unable to open listen socket for address 7f00:1:3ce5:9dbe:::631 - Address family not supported by protocol.
I [08/Jul/2008:05:24:23 +0000] Listening to 127.0.0.1:631 on fd 1...
I [08/Jul/2008:05:24:23 +0000] Listening to /var/run/cups/cups.sock on fd 3...
I [08/Jul/2008:05:24:23 +0000] Resuming new connection processing...

There are 2 things I can see that might be wrong. One is the line that says "Unable to open listen socket…..", and then it says on 2 lines that it is listening on 127.0.0.1:631. That's not my MBWE's IP, it is 192.168.0.5. Could that be the problem, and any ideas on how to fix it?

I am using IE 7 and FF 3. I've tried with both of them, but for some reason, the latest versions of these browsers don't give error codes any more for some reason, I just get "Page cannot be displayed" for IE, and "Failed to connect" for FF.

Thanks for the help, I appreciate it!

unfold Re: CUPS Problems by jscho84233jscho84233, 1215537443|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
huotg01huotg01 1217345593|%e %b %Y, %H:%M %Z|agohover

Hi

I have the exact same problem.

Did you finally find the cause and the cure ?

Thanks for your help.

unfold Re: CUPS Problems by huotg01huotg01, 1217345593|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
turomanturoman 1217549836|%e %b %Y, %H:%M %Z|agohover

Hello,

I've been trying to install CUPS and have it work but i'm still stuck with a 403 forbidden error when trying to reach the web page for CUPS (http://mybookworld:631)…

My error log reads like this :

I [01/Aug/2008:02:05:17 +0200] Listening to :::631 (IPv6)
I [01/Aug/2008:02:05:17 +0200] Listening to 0.0.0.0:631 (IPv4)
I [01/Aug/2008:02:05:17 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [01/Aug/2008:02:05:17 +0200] Using default TempDir of /var/spool/cups/tmp...
I [01/Aug/2008:02:05:17 +0200] Configured for up to 10 clients.
I [01/Aug/2008:02:05:17 +0200] Allowing up to 10 client connections per host.
I [01/Aug/2008:02:05:17 +0200] Creating CUPS default administrative policy:
I [01/Aug/2008:02:05:17 +0200] <Policy default>
I [01/Aug/2008:02:05:17 +0200] <Limit Send-Document Send-URI Cancel-Job Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Authenticate-Job>
I [01/Aug/2008:02:05:17 +0200] Order Deny,Allow
I [01/Aug/2008:02:05:17 +0200] Require user @OWNER @SYSTEM
I [01/Aug/2008:02:05:17 +0200] </Limit>
I [01/Aug/2008:02:05:17 +0200] <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
I [01/Aug/2008:02:05:17 +0200] Order Deny,Allow
I [01/Aug/2008:02:05:17 +0200] AuthType Default
I [01/Aug/2008:02:05:17 +0200] Require user @SYSTEM
I [01/Aug/2008:02:05:17 +0200] </Limit>
I [01/Aug/2008:02:05:17 +0200] <Limit All>
I [01/Aug/2008:02:05:17 +0200] Order Deny,Allow
I [01/Aug/2008:02:05:17 +0200] </Limit>
I [01/Aug/2008:02:05:17 +0200] </Policy>
I [01/Aug/2008:02:05:17 +0200] Full reload is required.
I [01/Aug/2008:02:05:17 +0200] Loaded MIME database from '/etc/cups': 35 types, 37 filters...
I [01/Aug/2008:02:05:18 +0200] Full reload complete.
I [01/Aug/2008:02:05:18 +0200] Cleaning out old temporary files in "/var/spool/cups/tmp"...
E [01/Aug/2008:02:05:18 +0200] Unable to open listen socket for address :::631 - Address family not supported by protocol.
E [01/Aug/2008:02:05:18 +0200] Unable to bind socket for address 0.0.0.0:631 - Address already in use.
X [01/Aug/2008:02:05:18 +0200] No Listen or Port lines were found to allow access via localhost!

I'm really new to linux, ssh and general hacking but I have the feeling alephsmith can help…

Can you figure out what's wrong in my config, knowing that i successfully repaired the "__guard" error following your advice and that my only problem is that i cannot reach the CUPS configuration page…?

Thanks in advance for your help,

last edited on 1217549892|%e %b %Y, %H:%M %Z|agohover by turoman + show more
unfold Re: CUPS Problems by turomanturoman, 1217549836|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
alephsmithalephsmith 1217552308|%e %b %Y, %H:%M %Z|agohover

What is your cups.conf file like? Please post it here. It is listening on 0.0.0.0 which doesn't seem right.

I copied the optware version and made the changes listed in the original CUPS howto page. make sure that you set the access permissions to "allow all" to check if it works. You can make it more secure later on when you have made sure it actually works.

unfold Re: CUPS Problems by alephsmithalephsmith, 1217552308|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
turomanturoman 1217586137|%e %b %Y, %H:%M %Z|agohover

Hi, thanks for this answer, here's my cups.conf file: i admit i'm not sure whether i made the right changes…

#
# "$Id: cupsd.conf 1016 2005-02-03 17:29:32Z ingeba $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.
#
#   Copyright 1997-2005 by Easy Software Products, all rights reserved.
#
#   These coded instructions, statements, and computer programs are the
#   property of Easy Software Products and are protected by Federal
#   copyright law.  Distribution and use rights are outlined in the file
#   "LICENSE.txt" which should have been included with this file.  If this
#   file is missing or damaged please contact Easy Software Products
#   at:
#
#       Attn: CUPS Licensing Information
#       Easy Software Products
#       44141 Airport View Drive, Suite 204
#       Hollywood, Maryland 20636 USA
#
#       Voice: (301) 373-9600
#       EMail: cups-info@cups.org
#         WWW: http://www.cups.org
#

########################################################################
#                                                                      #
# This is the CUPS configuration file.  If you are familiar with       #
# Apache or any of the other popular web servers, we've followed the   #
# same format.  Any configuration variable used here has the same      #
# semantics as the corresponding variable in Apache.  If we need       #
# different functionality then a different name is used to avoid       #
# confusion...                                                         #
#                                                                      #
########################################################################

########
######## Server Identity
########

#
# ServerName: the hostname of your server, as advertised to the world.
# By default CUPS will use the hostname of the system.
#
# To set the default server used by clients, see the client.conf file.
#

#ServerName myhost.domain.com

#
# ServerAdmin: the email address to send all complaints/problems to.
# By default CUPS will use "root@hostname".
#

#ServerAdmin root@your.domain.com

########
######## Server Options
########

#
# AccessLog: the access log file; if this does not start with a leading /
# then it is assumed to be relative to ServerRoot.  By default set to
# "/opt/var/log/cups/access_log"
#
# You can also use the special name "syslog" to send the output to the
# syslog file or daemon.
#

#AccessLog /opt/var/log/cups/access_log

#
# Classification: the classification level of the server.  If set, this
# classification is displayed on all pages, and raw printing is disabled.
# The default is the empty string.
#

#Classification classified
#Classification confidential
#Classification secret
#Classification topsecret
#Classification unclassified

#
# ClassifyOverride: whether to allow users to override the classification
# on printouts. If enabled, users can limit banner pages to before or
# after the job, and can change the classification of a job, but cannot
# completely eliminate the classification or banners.
#
# The default is off.
#

#ClassifyOverride off

#
# DataDir: the root directory for the CUPS data files.
# By default "/opt/share/cups".
#

#DataDir /opt/share/cups

#
# DefaultCharset: the default character set to use. If not specified,
# defaults to "utf-8".  Note that this can also be overridden in
# HTML documents...
#

#DefaultCharset utf-8

#
# DefaultLanguage: the default language if not specified by the browser.
# If not specified, the current locale is used.
#

#DefaultLanguage en

#
# DocumentRoot: the root directory for HTTP documents that are served.
# By default "/opt/share/doc/cups".
#

#DocumentRoot /opt/share/doc/cups

#
# ErrorLog: the error log file; if this does not start with a leading /
# then it is assumed to be relative to ServerRoot.  By default set to
# "/opt/var/log/cups/error_log"
#
# You can also use the special name "syslog" to send the output to the
# syslog file or daemon.
#

#ErrorLog /opt/var/log/cups/error_log

#
# FileDevice: determines whether the scheduler will allow new printers
# to be added using device URIs of the form "file:/foo/bar". The default
# is not to allow file devices due to the potential security vulnerability
# and due to the fact that file devices do not support raw printing.
#

#FileDevice No

#
# FontPath: the path to locate all font files (currently only for pstoraster)
# By default "/opt/share/cups/fonts".
#

#FontPath /opt/share/cups/fonts

#
# LogLevel: controls the number of messages logged to the ErrorLog
# file and can be one of the following:
#
#     debug2    Log everything.
#     debug    Log almost everything.
#     info      Log all requests and state changes.
#     warn      Log errors and warnings.
#     error     Log only errors.
#     none      Log nothing.
#

LogLevel info

#
# MaxLogSize: controls the maximum size of each log file before they are
# rotated.  Defaults to 1048576 (1MB).  Set to 0 to disable log rotating.
#

#MaxLogSize 0

#
# PageLog: the page log file; if this does not start with a leading /
# then it is assumed to be relative to ServerRoot.  By default set to
# "/opt/var/log/cups/page_log"
#
# You can also use the special name "syslog" to send the output to the
# syslog file or daemon.
#

#PageLog /opt/var/log/cups/page_log

#
# PreserveJobHistory: whether or not to preserve the job history after a
# job is completed, cancelled, or stopped.  Default is Yes.
#

#PreserveJobHistory Yes

#
# PreserveJobFiles: whether or not to preserve the job files after a
# job is completed, cancelled, or stopped.  Default is No.
#

#PreserveJobFiles No

#
# AutoPurgeJobs: automatically purge jobs when not needed for quotas.
# Default is No.
#

#AutoPurgeJobs No

#
# MaxCopies: maximum number of copies that a user can request. Default is
# 100.
#

#MaxCopies 100

#
# MaxJobs: maximum number of jobs to keep in memory (active and completed.)
# Default is 500; the value 0 is used for no limit.
#

MaxJobs 50

#
# MaxJobsPerPrinter: maximum number of active jobs per printer. The default
# is 0 for no limit.
#

#MaxJobsPerPrinter 0

#
# MaxJobsPerUser: maximum number of active jobs per user. The default
# is 0 for no limit.
#

#MaxJobsPerUser 0

#
# MaxPrinterHistory: controls the maximum number of history collections
# in the printer-state-history attribute.  Set to 0 to disable history
# data.
#

#MaxPrinterHistory 10

#
# Printcap: the name of the printcap file.  Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#

#Printcap /etc/printcap

#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris.  The default is "BSD".
#

#PrintcapFormat BSD
#PrintcapFormat Solaris

#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX.  The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#

#PrintcapGUI /usr/bin/glpoptions

#
# RequestRoot: the directory where request files are stored.
# By default "/opt/var/spool/cups".
#

#RequestRoot /opt/var/spool/cups

#
# RemoteRoot: the name of the user assigned to unauthenticated accesses
# from remote systems.  By default "remroot".
#

#RemoteRoot remroot

#
# ServerBin: the root directory for the scheduler executables.
# By default "/opt/lib/cups".
#

#ServerBin /opt/lib/cups

#
# ServerRoot: the root directory for the scheduler.
# By default "/opt/etc/cups".
#

#ServerRoot /opt/etc/cups

#
# ServerTokens: specifies what information in provided in the Server
# header of HTTP responses. The default is Minor.
#
# ServerTokens None
# ServerTokens ProductOnly       CUPS
# ServerTokens Major             CUPS/1
# ServerTokens Minor             CUPS/1.1
# ServerTokens Minimal           CUPS/1.1.23
# ServerTokens OS                CUPS/1.1.23 (uname)
# ServerTokens Full              CUPS/1.1.23 (uname) IPP/1.1
#

#ServerTokens Minor

########
######## Fax Support
########

#
# FaxRetryLimit: the number of times a fax job is retried.
# The default is 5 times.
#

#FaxRetryLimit 5

#
# FaxRetryInterval: the number of seconds between fax job retries.
# The default is 300 seconds/5 minutes.
#

#FaxRetryInterval 300

########
######## Encryption Support
########

#
# ServerCertificate: the file to read containing the server's certificate.
# Defaults to "/opt/etc/cups/ssl/server.crt".
#

#ServerCertificate /opt/etc/cups/ssl/server.crt

#
# ServerKey: the file to read containing the server's key.
# Defaults to "/opt/etc/cups/ssl/server.key".
#

#ServerKey /opt/etc/cups/ssl/server.key

########
######## Filter Options
########

#
# User/Group: the user and group the server runs under.  Normally this
# must be lp and sys, however you can configure things for another
# user or group as needed.
#
# Note: the server must be run initially as root to support the
# default IPP port of 631.  It changes users whenever an external
# program is run, or if the RunAsUser directive is specified...
#

User sys
Group lp

#
# RIPCache: the amount of memory that each RIP should use to cache
# bitmaps.  The value can be any real number followed by "k" for
# kilobytes, "m" for megabytes, "g" for gigabytes, or "t" for tiles
# (1 tile = 256x256 pixels.)  Defaults to "8m" (8 megabytes).
#

#RIPCache 8m

#
# TempDir: the directory to put temporary files in.  This directory must be
# writable by the user defined above!  Defaults to "/opt/var/spool/cups/tmp" or
# the value of the TMPDIR environment variable.
#

#TempDir /opt/var/spool/cups/tmp

#
# FilterLimit: sets the maximum cost of all job filters that can be run
# at the same time.  A limit of 0 means no limit.  A typical job may need
# a filter limit of at least 200; limits less than the minimum required
# by a job force a single job to be printed at any time.
#
# The default limit is 0 (unlimited).
#

#FilterLimit 0

########
######## Network Options
########

#
# Ports/addresses that we listen to.  The default port 631 is reserved
# for the Internet Printing Protocol (IPP) and is what we use here.
#
# You can have multiple Port/Listen lines to listen to more than one
# port or address, or to restrict access:
#
#    Port 80
#    Port 631
#    Listen hostname
#    Listen hostname:80
#    Listen hostname:631
#    Listen 1.2.3.4
#    Listen 1.2.3.4:631
# 
# NOTE: Unfortunately, most web browsers don't support TLS or HTTP Upgrades
# for encryption.  If you want to support web-based encryption you'll
# probably need to listen on port 443 (the "https" port...)
#
# NOTE 2: In order for the command-line and web interfaces to work, you
# must have at least one Port or Listen line that allows access from the
# local loopback address (localhost).
#

#Port 80
#Port 443
Port 631

#
# HostNameLookups: whether or not to do lookups on IP addresses to get a
# fully-qualified hostname.  This defaults to Off for performance reasons...
#

#HostNameLookups On

#
# KeepAlive: whether or not to support the Keep-Alive connection
# option.  Default is on.
#

#KeepAlive On

#
# KeepAliveTimeout: the timeout before Keep-Alive connections are
# automatically closed.  Default is 60 seconds.
#

#KeepAliveTimeout 60

#
# MaxClients: controls the maximum number of simultaneous clients that
# will be handled.  Defaults to 100.
#

MaxClients 10

#
# MaxClientsPerHost: controls the maximum number of simultaneous clients that
# will be handled from a specific host.  Defaults to 10 or 1/10th of the
# MaxClients setting, whichever is larger.  A value of 0 specifies the
# automatic (10 or 1/10th) setting.
#

#MaxClientsPerHost 0

#
# MaxRequestSize: controls the maximum size of HTTP requests and print files.
# Set to 0 to disable this feature (defaults to 0.)
#

#MaxRequestSize 0

#
# Timeout: the timeout before requests time out.  Default is 300 seconds.
#

#Timeout 300

########
######## Browsing Options
########

#
# Browsing: whether or not to broadcast and/or listen for CUPS printer
# information on the network.  Enabled by default.
#

#Browsing On

#
# BrowseProtocols: which protocols to use for browsing.  Can be
# any of the following separated by whitespace and/or commas:
#
#     all  - Use all supported protocols.
#     cups - Use the CUPS browse protocol.
#     slp  - Use the SLPv2 protocol.
#
# The default is "cups".
#
# NOTE: If you choose to use SLPv2, it is *strongly* recommended that
#       you have at least one SLP Directory Agent (DA) on your
#       network.  Otherwise, browse updates can take several seconds,
#       during which the scheduler will not respond to client
#       requests.
#

#BrowseProtocols cups

#
# BrowseAddress: specifies a broadcast address to be used.  By
# default browsing information is not sent!
#
# Note: HP-UX does not properly handle broadcast unless you have a
# Class A, B, C, or D netmask (i.e. no CIDR support).
#
# Note: Using the "global" broadcast address (255.255.255.255) will
# activate a Linux demand-dial link with the default configuration.
# If you have a LAN as well as the dial-up link, use the LAN's
# broadcast address.
#
# The @LOCAL address broadcasts to all non point-to-point interfaces.
# For example, if you have a LAN and a dial-up link, @LOCAL would
# send printer updates to the LAN but not to the dial-up link.
# Similarly, the @IF(name) address sends to the named network
# interface, e.g. @IF(eth0) under Linux.  Interfaces are refreshed
# automatically (no more than once every 60 seconds), so they can
# be used on dynamically-configured interfaces, e.g. PPP, 802.11, etc.
#

#BrowseAddress x.y.z.255
#BrowseAddress x.y.255.255
#BrowseAddress x.255.255.255
#BrowseAddress 255.255.255.255
#BrowseAddress @LOCAL
#BrowseAddress @IF(name)

#
# BrowseShortNames: whether or not to use "short" names for remote printers
# when possible (e.g. "printer" instead of "printer@host".)  Enabled by
# default.
#

#BrowseShortNames Yes

#
# BrowseAllow: specifies an address mask to allow for incoming browser
# packets. The default is to allow packets from all addresses.
#
# BrowseDeny: specifies an address mask to deny for incoming browser
# packets. The default is to deny packets from no addresses.
#
# Both "BrowseAllow" and "BrowseDeny" accept the following notations for
# addresses:
#
#     All
#     None
#     *.domain.com
#     .domain.com
#     host.domain.com
#     nnn.*
#     nnn.nnn.*
#     nnn.nnn.nnn.*
#     nnn.nnn.nnn.nnn
#     nnn.nnn.nnn.nnn/mm
#     nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
#     @LOCAL
#     @IF(name)
#
# The hostname/domainname restrictions only work if you have turned hostname
# lookups on!
#

#BrowseAllow address
#BrowseDeny address

#
# BrowseInterval: the time between browsing updates in seconds.  Default
# is 30 seconds.
#
# Note that browsing information is sent whenever a printer's state changes
# as well, so this represents the maximum time between updates.
#
# Set this to 0 to disable outgoing broadcasts so your local printers are
# not advertised but you can still see printers on other hosts.
#

#BrowseInterval 30

#
# BrowseOrder: specifies the order of BrowseAllow/BrowseDeny comparisons.
#

#BrowseOrder allow,deny
#BrowseOrder deny,allow

#
# BrowsePoll: poll the named server(s) for printers
#

#BrowsePoll address:port

#
# BrowsePort: the port used for UDP broadcasts.  By default this is
# the IPP port; if you change this you need to do it on all servers.
# Only one BrowsePort is recognized.
#

#BrowsePort 631

#
# BrowseRelay: relay browser packets from one address/network to another.
#

#BrowseRelay source-address destination-address
#BrowseRelay @IF(src) @IF(dst)

#
# BrowseTimeout: the timeout for network printers - if we don't
# get an update within this time the printer will be removed
# from the printer list.  This number definitely should not be
# less the BrowseInterval value for obvious reasons.  Defaults
# to 300 seconds.
#

#BrowseTimeout 300

#
# ImplicitClasses: whether or not to use implicit classes.
#
# Printer classes can be specified explicitly in the classes.conf
# file, implicitly based upon the printers available on the LAN, or
# both.
#
# When ImplicitClasses is On, printers on the LAN with the same name
# (e.g. Acme-LaserPrint-1000) will be put into a class with the same
# name. This allows you to setup multiple redundant queues on a LAN
# without a lot of administrative difficulties.  If a user sends a
# job to Acme-LaserPrint-1000, the job will go to the first available
# queue.
#
# Enabled by default.
#

#ImplicitClasses On

#
# ImplicitAnyClasses: whether or not to create "AnyPrinter" implicit
# classes.
#
# When ImplicitAnyClasses is On and a local queue of the same name
# exists, e.g. "printer", "printer@server1", "printer@server1", then
# an implicit class called "Anyprinter" is created instead.
#
# When ImplicitAnyClasses is Off, implicit classes are not created
# when there is a local queue of the same name.
#
# Disabled by default.
#

#ImplicitAnyCLasses Off

#
# HideImplicitMembers: whether or not to show the members of an
# implicit class.
#
# When HideImplicitMembers is On, any remote printers that are
# part of an implicit class are hidden from the user, who will
# then only see a single queue even though many queues will be
# supporting the implicit class.
#
# Enabled by default.
#

#HideImplicitMembers On

########
######## Security Options
########

#
# SystemGroup: the group name for "System" (printer administration)
# access.  The default varies depending on the operating system, but
# will be "sys", "system", or "root" (checked for in that order.)
#

#SystemGroup sys

#
# RootCertDuration: How frequently the root certificate is regenerated.
# Defaults to 300 seconds.
#

#RootCertDuration 300

#
# Access permissions for each directory served by the scheduler.
# Locations are relative to DocumentRoot...
#
# AuthType: the authorization to use:
#
#    None   - Perform no authentication
#    Basic  - Perform authentication using the HTTP Basic method.
#    Digest - Perform authentication using the HTTP Digest method.
#
#    (Note: local certificate authentication can be substituted by
#           the client for Basic or Digest when connecting to the
#           localhost interface)
#
# AuthClass: the authorization class; currently only "Anonymous", "User",
# "System" (valid user belonging to group SystemGroup), and "Group"
# (valid user belonging to the specified group) are supported.
#
# AuthGroupName: the group name for "Group" authorization.
#
# Order: the order of Allow/Deny processing.
#
# Allow: allows access from the specified hostname, domain, IP address,
# network, or interface.
#
# Deny: denies access from the specified hostname, domain, IP address,
# network, or interface.
#
# Both "Allow" and "Deny" accept the following notations for addresses:
#
#     All
#     None
#     *.domain.com
#     .domain.com
#     host.domain.com
#     nnn.*
#     nnn.nnn.*
#     nnn.nnn.nnn.*
#     nnn.nnn.nnn.nnn
#     nnn.nnn.nnn.nnn/mm
#     nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
#     @LOCAL
#     @IF(name)
#
# The host and domain address require that you enable hostname lookups
# with "HostNameLookups On" above.
#
# The @LOCAL address allows or denies from all non point-to-point
# interfaces.  For example, if you have a LAN and a dial-up link,
# @LOCAL could allow connections from the LAN but not from the dial-up
# link.  Similarly, the @IF(name) address allows or denies from the
# named network interface, e.g. @IF(eth0) under Linux.  Interfaces are
# refreshed automatically (no more than once every 60 seconds), so
# they can be used on dynamically-configured interfaces, e.g. PPP,
# 802.11, etc.
#
# Encryption: whether or not to use encryption; this depends on having
# the OpenSSL library linked into the CUPS library and scheduler.
#
# Possible values:
#
#     Always       - Always use encryption (SSL)
#     Never        - Never use encryption
#     Required     - Use TLS encryption upgrade
#     IfRequested  - Use encryption if the server requests it
#
# The default value is "IfRequested".
#

<Location />
Order Deny,Allow
Deny From None
Allow From All
Allow From 192.168.1.0/24
</Location>

#<Location /classes>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

#<Location /classes/name>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

#<Location /jobs>
#
# You may wish to limit access to job operations, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

<Location /printers>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
 AuthType None
 Order Deny,Allow
 Deny From None
 Allow From All
</Location>

#<Location /printers/name>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#

## Anonymous access (default)
#AuthType None

## Require a username and password (Basic authentication)
#AuthType Basic
#AuthClass User

## Require a username and password (Digest/MD5 authentication)
#AuthType Digest
#AuthClass User

## Restrict access to local domain
#Order Deny,Allow
#Deny From None
#Allow From All
#</Location>

<Location /admin>
#
# You definitely will want to limit access to the administration functions.
# The default configuration requires a local connection from a user who
# is a member of the system group to do any admin tasks.  You can change
# the group name using the SystemGroup directive.
#

Require valid-user

## Restrict access to local domain
Order Deny,Allow
Deny From None
Allow From All
Allow From 192.168.0.0/16

Encryption Never
</Location>

#
# End of "$Id: cupsd.conf 1016 2005-02-03 17:29:32Z ingeba $".
#

Can you figure things out ?

unfold Re: CUPS Problems by turomanturoman, 1217586137|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
turomanturoman 1219323697|%e %b %Y, %H:%M %Z|agohover

Hello, my wife accidentally reboot the MBWE and made the CUPS server work :-D !!!

I now have problems with a "foomatic-rip failed" during printing, but i'm sure I'll find the needed information somewhere here !

Anyway, thanks for your help!

unfold Re: CUPS Problems by turomanturoman, 1219323697|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
ibsgaardibsgaard 1223148003|%e %b %Y, %H:%M %Z|agohover

turoman I have the same problem with the "foomatic-rip failed", did you find a solution?

Claus

unfold Re: CUPS Problems by ibsgaardibsgaard, 1223148003|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
turomanturoman 1223157658|%e %b %Y, %H:%M %Z|agohover

Hi Claus,

Sorry, but my MBWE got broken a few hours after that. I have tried to install the gutenprint drivers, if i remember well, and when rebooting, it broke the whole disc.

I now have a Lacie ethernet disc which seems to work much better and have completely abandoned the idea of plugging my printer on the Drive…

Sorry i can't help more!

unfold Re: CUPS Problems by turomanturoman, 1223157658|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
ibsgaardibsgaard 1223189598|%e %b %Y, %H:%M %Z|agohover

Hello turoman

Thanks for your fast answer, I think I will go for a JetDirect instead.

Claus

unfold Re: CUPS Problems by ibsgaardibsgaard, 1223189598|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
SupadupaSupadupa 1223927525|%e %b %Y, %H:%M %Z|agohover

Hi, I've followed this Guide to install CUPS on MyBook. I did it all, my HP Laserjet 1320 is correctly relevated, but when I try to print something it says:

"/usr/lib/cups/filter/foomatic-rip failed"

In the error_log, I see and error like this:

PID 1149 (/usr/lib/cups/filter/foomatic-rip) stopped with status 1!

and something it also says "with status 2!"

I've followed the istructions:

  1. ln -s /usr/local/bin/perl /usr/bin/perl
  1. cd /usr/bin
  2. wget http://www.linuxprinting.org/foomatic-rip
  3. wget http://www.linuxprinting.org/foomatic-gswrapper
  4. chmod 755 foomatic-rip foomatic-gswrapper
  5. ln -s /usr/bin/foomatic-rip /usr/lib/cups/filter/foomatic-rip

but the problem is not fixed.

Any solution please?? I've used the PPD from linuxprinting for my printer and selected RAW as Option when configuring…

last edited on 1223936211|%e %b %Y, %H:%M %Z|agohover by Supadupa + show more
unfold Re: CUPS Problems by SupadupaSupadupa, 1223927525|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
Yossi GilYossi Gil 1226464901|%e %b %Y, %H:%M %Z|agohover

I tried the same, and I was this close to blocking my mbwe! Apparently, foomatic-rip is buggy in that it requires lots of CPU which slowed down the system to a halt. I was able to stop the process and remove the files, but other may not be as lucky. (Apparently, this installation did block the device for otehrs.)

unfold Re: CUPS Problems by Yossi GilYossi Gil, 1226464901|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Problems
alephsmithalephsmith 1226468484|%e %b %Y, %H:%M %Z|agohover

Are you sure it was foomatic causing the problems?

I had a similar problem with the whole system slowing to a crawl and found out that it was actually a buggy libusb implementation in the mybook, not foomatic. Check you dmesg for anything referring to usb problems.

I would really love to get this thing working, but sadly I have given up.

unfold Re: CUPS Problems by alephsmithalephsmith, 1226468484|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License