From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 17:51:50 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D59D1065670 for ; Thu, 27 Jan 2011 17:51:50 +0000 (UTC) (envelope-from bahman.linux@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id E55B98FC1C for ; Thu, 27 Jan 2011 17:51:49 +0000 (UTC) Received: by qwj9 with SMTP id 9so2370780qwj.13 for ; Thu, 27 Jan 2011 09:51:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=QGHGtOWJg5a0cE9O+s9cnL7OVojo1+mqWQQbrseQjAg=; b=UammnSyp0hXuU/vKw6nybTmFOTRzAKI97h28Au6Oemx1ddzvUtiDzaF9nmZxJHHAZt qAFh/mrCWdYPi3KZ1IeQSy/kWMMOzWaBzTcwEtMXa28dRZRrRN3EKCJYHH8EckbIcYEo 1c4ZV+S90pc+zPvTnZ5MwogBaSQP0dTdoEjNs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rTvPLT4tblSXCDHhowNBJScG8qwC28+tUezAUAUGy6yj0JjUZvWj85T1oVWsRiZY4K ctsXdbI3iz8H3wwtKn8eAPKeQajHwbGj4CP4/eAAuEgl0BgfT0tsQhfMpoNNMk4j96ux 1dmbI4nFGOiqVRUJss3jslTwiHfs63HJtr0Ow= MIME-Version: 1.0 Received: by 10.229.229.68 with SMTP id jh4mr1782051qcb.103.1296150708798; Thu, 27 Jan 2011 09:51:48 -0800 (PST) Received: by 10.220.195.137 with HTTP; Thu, 27 Jan 2011 09:51:48 -0800 (PST) Date: Thu, 27 Jan 2011 21:21:48 +0330 Message-ID: From: Bahman Kahinpour To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Printing from inside the applications in FreeBSD 8.1 with CUPS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2011 17:51:50 -0000 Hello FreeBSD fans, 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 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. There are only two choices "Printer to File" and "Print to LPR". Printing to LPR does not work at all as I think it references /bin/lpr instead of /usr/local/bin/lpr. (Snapshot attached) How can I add more options in this dialog? Right now, in order to print I choose Print to File "as PostScript" and use command line cat PostScriptFile | /usr/local/bin/lp to print. Thanks for Help Bahman Kahinpour