From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 13:15:09 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 6882B106564A for ; Thu, 28 Jul 2011 13:15:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1A8BE8FC15 for ; Thu, 28 Jul 2011 13:15:08 +0000 (UTC) Received: from r55.edvax.de (port-92-195-103-124.dynamic.qsc.de [92.195.103.124]) by mx02.qsc.de (Postfix) with ESMTP id 02FC51E351; Thu, 28 Jul 2011 15:15:07 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p6SDF7GO002178; Thu, 28 Jul 2011 15:15:07 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 28 Jul 2011 15:15:07 +0200 From: Polytropon To: Antonio Olivares Message-Id: <20110728151507.0c150f3c.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: printing to a HP Deskjet 812C printer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2011 13:15:09 -0000 On Wed, 27 Jul 2011 20:05:12 -0500, Antonio Olivares wrote: > @ all, > > I restarted machine and I can print from command line :) > > [olivares@quadcore ~/Documents]$ cat Document1.txt | lpr -P Deskjet > [olivares@quadcore ~/Documents]$ lpq -a > Deskjet: > Deskjet is ready and printing > Rank Owner Job Files Total Size > active olivares 2 (standard input) 10405 bytes > > [olivares@quadcore ~/Documents]$ > > Now how do I configure apps like Firefox, evince, LibreOffice to print? No need to do that. Basically, the default options should be fine. However, _some_ programs require you to set paper format or margins. For actual _printing_, there is no need for any configuration. Programs will address the default printing queue (lp, or whatever $PRINTER says). If your printer is "Deskjet", add setenv PRINTER Deskjet to /etc/csh.cshrc for systemwide use (all users), or whatever your default shell is. You can also use login.conf to set this environmental variable. I suggest to do so because if _not_ done, you'd have to add "-P Deskjet" in too many places. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...