Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Nov 2009 17:20:43 +0100
From:      Polytropon <freebsd@edvax.de>
To:        stan <stanb@panix.com>
Cc:        Adam Vande More <amvandemore@gmail.com>, Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: Help with CUPS reconfiguration
Message-ID:  <20091106172043.a6de08ca.freebsd@edvax.de>
In-Reply-To: <20091106135039.GB8186@teddy.fas.com>
References:  <20091105200730.GA12331@teddy.fas.com> <6201873e0911051227n7ba9e1c1ta091fbccffc23cb@mail.gmail.com> <20091105222239.GA18238@teddy.fas.com> <20091106002351.97c5ea38.freebsd@edvax.de> <20091106135039.GB8186@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 6 Nov 2009 08:50:39 -0500, stan <stanb@panix.com> wrote:
> The question I am sking, though, is "How can I modify the CUPS
> configuration, without using the web based interface (which is not working,
> in such a manner that the /etc/printcap file gets rebuilt.

The problem is that hte web interface seems to be a very
integrated part of the CUPS configuration which isn't intended
to be "not used". An option would maybe be to rewrite the
files in /usr/local/etc/cups as well as /etc/printcap
manually to reflect the desired changes, but I am not sure
that this will be sufficient - maybe there are other files
that are touched by automated processes during the printer
installation / reconfiguration through the web interface...

I think the only important parts in /etc/printcap are those
that reference to the printer filter and those that set some
specific values (resolution etc.); everything else is kept
in the CUPS files, and both places of settings should contain
the same individual data (e. g. same spool dir reference).

If you could take the following example as a starting point
and correct the settings manually so they show the same settings
as what you already have configured in CUPS.

	Laserjet|ljet4d;r=600x600;q=high;c=full;p=a4;m=auto:\
	    :lp=/dev/lpt0:\
	    :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
	    :sd=/var/spool/lpd/Laserjet:\
	    :lf=/var/spool/lpd/Laserjet/log:\
	    :af=/var/spool/lpd/Laserjet/acct:\
	    :mx#0:\
	    :sh:

I'm not sure if cap_mkdb has to be run for /etc/printcap.

If you're using a network attached printer, a reference to its
name (known through /etc/hosts mechanism) should be okay.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091106172043.a6de08ca.freebsd>