cups not as a daemon or without ghostscript esp

Bernd Krumböck krumboeck at universalnet.at
Fri Jun 23 02:58:57 PDT 2006


Andreas Sumper wrote:

> Bernd Krumböck wrote:
>> Andreas Sumper wrote:
>> 
>> 
>>>Hi list!
>>>
>>>Is it possible to use CUPS without running it as a daemon? I heard, that
>>>this should work somehow, but I don´t know, how to use it!
>>>
>>>Another thing is, that I would like to use cups without ghostscript esp.
>>>Is there a possibility to compile cups with "internal" support?
>>>
>>>thanks in advance!
>>>Andy
>> 
>> 
>> Hello!
>> 
>> 
>> This should answer you first question (call cupsd -h):
>> 
>> Usage: cupsd [-c config-file] [-f] [-F] [-h] [-l]
>> 
>> -c config-file      Load alternate configuration file
>> -f                  Run in the foreground
>> -F                  Run in the foreground but detach
>> -h                  Show this usage message
>> -l                  Run cupsd from launchd(8)
>> 
> 
> Okay, I know that. The thing is, how do I have to trigger my
> print-coammand, if cups is not running, as evertime I try to us lp or
> lpr, I get an error-message saying that cups is not running (could not
> connect to server or so)
> Should I try to run some sort of script or whatever to make sure, cups
> is up and stop him afterwards?
> 

Please see the posting from Michael Sweet:

system wide:
create a file named /etc/cups/client.conf which contains following lines:

--- snip ---
#
# ServerName: the hostname of your server.  By default CUPS will use the
# hostname of the system or the value of the CUPS_SERVER environment
# variable.  ONLY ONE SERVER NAME MAY BE SPECIFIED AT A TIME.  To use
# more than one server you must use a local scheduler with browsing
# and possibly polling.
#

ServerName myhost.domain.com

#
# Encryption: whether or not to use encryption; this depends on having
# the OpenSSL library linked into the CUPS library.
#
# 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".  This parameter can also be set
# using the CUPS_ENCRYPTION environment variable.
#

#Encryption Always
#Encryption Never
#Encryption Required
#Encryption IfRequested
--- snip ---


If you want to use it only in the actual session or command you can use the
option -h for the most commands or you can set the environment variable
CUPS_SERVER.

You will find further details in the posting from Michael Sweet or in the
CUPS Documentation.


> thanks for the hint!
> So I have to check the files and see, if I manage to get my printers to
> work.

Yes, but very much printers drivers depend on ghostscript.
Why you don't want to work with ghostscript?

regards
Bernd





More information about the cups mailing list