Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2011 14:48:49 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Bahman Kahinpour <bahman.linux@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Printing from inside the applications in FreeBSD 8.1 with CUPS
Message-ID:  <alpine.BSF.2.00.1101271443530.60213@wonkity.com>
In-Reply-To: <AANLkTi=nxzivgx4fz-XBLkAFCH7A1GqOAXJxO32ZVzb1@mail.gmail.com>
References:  <AANLkTi=nxzivgx4fz-XBLkAFCH7A1GqOAXJxO32ZVzb1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 27 Jan 2011, Bahman Kahinpour wrote:

> After a lot of work, I managed to get my printer work with CUPS with
> appropriate filters. Now, I can print the test page using
> http://localhost:631 and also I can print any postscript file from
> command-line.
>
> cat ~/MyPostscriptFile.ps | /usr/local/bin/lp

UUOC:

% /usr/local/bin/lp ~/MyPostscriptFile.ps

> Note that I can not print using simple "lp" command as there a "lp" in
> /bin/lp. How can I print from inside the applications? Take Firefox or
> gedit for instance. How can I print from those apps using File>Print
> menu? I need to add stuff to those dialogs which open from File>Menu.

CUPS chose to use identical names for their printing commands. 
Sometimes people delete the system lpr (/usr/bin/lpr) so that only the 
CUPS version is found, or link one to the other.  The system lpr will 
come back if you rebuild the system, unless you take other actions. 
The CUPS article talks about this near the end:
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/cups/index.html

There may also be options in your "desktop environment" preferences to 
select which printing system will be used.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1101271443530.60213>