From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 15:57:47 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 11077106564A for ; Thu, 28 Jul 2011 15:57:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id BB6CB8FC15 for ; Thu, 28 Jul 2011 15:57:46 +0000 (UTC) Received: from r55.edvax.de (port-92-195-103-124.dynamic.qsc.de [92.195.103.124]) by mx01.qsc.de (Postfix) with ESMTP id C4F603D3FE; Thu, 28 Jul 2011 17:57:45 +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 p6SFvjOK002648; Thu, 28 Jul 2011 17:57:45 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 28 Jul 2011 17:57:44 +0200 From: Polytropon To: Antonio Olivares Message-Id: <20110728175744.3affff26.freebsd@edvax.de> In-Reply-To: References: <20110728151507.0c150f3c.freebsd@edvax.de> <20110728171430.4b900bea.freebsd@edvax.de> 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 15:57:47 -0000 On Thu, 28 Jul 2011 10:44:52 -0500, Antonio Olivares wrote: > Made the changes with global /etc/csh.cshrc and it did not work :( Requires re-login, but reboot should also be fine. :-) On the root prompt which (I assume!) has the C shell as the default dialog shell, % echo $PRINTER or % printenv PRINTER should show the correct name. The lp* tools will then use it (if set). > [olivares@quadcore ~]$ cat /etc/csh.cshrc > # $FreeBSD: src/etc/csh.cshrc,v 1.3.56.1.6.1 2010/12/21 17:09:25 kensmith Exp $ > # > # System-wide .cshrc file for csh(1). > > setenv PRINTER Deskjet I also have this in mine (although "Laserjet" is the name for the standard printer, and "Laserjet-nodup" for an "additional" printer without the duplexer). My login shell is the C shell. When I start bash from a csh prompt, I can also use the lp* commands, as $PRINTER will be "inherited". > But if I change lpr to lpr -P Deskjet, I can print. Then I will need > to play with it some more? Make sure the settings are in effect. According to the manpages and my experience (that it _does_ work this way) show that if $PRINTER is present, it will be used as the default -P parameter. It makes things easier. For example, _all_ printing does to the default printer. If a temporary change is needed, just set $PRINTER to a different value as long as you need it. If it's a "one time only" use, -P is definitely better. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...