From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 16:06:49 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 067261065675 for ; Thu, 28 Jul 2011 16:06:49 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id AFA038FC1E for ; Thu, 28 Jul 2011 16:06:48 +0000 (UTC) Received: by yic13 with SMTP id 13so2465902yic.13 for ; Thu, 28 Jul 2011 09:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=WxSQpWSjJky6sBsoJwVhWTCpXiDuDwBUPdW4l02FFX8=; b=SIlsXqSbUhqeJljwHf8P113Dmxbp+v6BhCcW6vZIVbEj9ZdypfU+rwlO8dAmIrtJVh Sq6ockV4RovxsBtN3q/wSNUVT+2Z2mP1J4+tGvLQZfCgBwDUeNRgl5MgjScF8PkmJS4I VzvalQBaQzdPi8X2nvWzAvj1S7qlnJvzkYajQ= MIME-Version: 1.0 Received: by 10.42.156.1 with SMTP id x1mr136191icw.226.1311869207871; Thu, 28 Jul 2011 09:06:47 -0700 (PDT) Received: by 10.42.169.73 with HTTP; Thu, 28 Jul 2011 09:06:47 -0700 (PDT) In-Reply-To: <20110728175744.3affff26.freebsd@edvax.de> References: <20110728151507.0c150f3c.freebsd@edvax.de> <20110728171430.4b900bea.freebsd@edvax.de> <20110728175744.3affff26.freebsd@edvax.de> Date: Thu, 28 Jul 2011 11:06:47 -0500 Message-ID: From: Antonio Olivares To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2011 16:06:49 -0000 On Thu, Jul 28, 2011 at 10:57 AM, Polytropon wrote: > 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. :-) Rebooted and firefox did not print :( > > On the root prompt which (I assume!) has the C shell > as the default dialog shell, > > =A0 =A0 =A0 =A0% echo $PRINTER > > or > > =A0 =A0 =A0 =A0% printenv PRINTER Did not try these, as I reverted to .bashrc export PRINTER option. > > 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 kensmit= h 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. =A0Then 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. > -- However, in the other message: >****************************************************** You can always check $ echo $PRINTER which should give you the correct printer name, as you did correctly show. Make sure upper/lowercase matches exactly. When you now use any lp* command, they should refer to $PRINTER. $ lpq no entries And as well: $ lpr /etc/rc.conf should print the specified file and place its entry into the correct printer's queue. *******************************************************< This did work, the $ lpr /etc/rc.conf [olivares@quadcore ~]$ echo $PRINTER Deskjet [olivares@quadcore ~]$ lpq no entries [olivares@quadcore ~]$ lpr /etc/rc.conf [olivares@quadcore ~]$ lpq Deskjet is ready and printing Rank Owner Job Files Total Size 1st olivares 6 /etc/rc.conf 512 bytes [olivares@quadcore ~]$ Firefox 5 does not have the properties option :( you mentioned. It has File -> Page Setup, File -> Print Preview, File -> Print [General -> Page Settings -> Options], but no properties to change printer options :( Thank you for the help, I am almost there, in fact I can live with what I g= ot :) Regards, Antonio