From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 14:57:10 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 584BE106566B for ; Thu, 28 Jul 2011 14:57:10 +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 0FF5B8FC08 for ; Thu, 28 Jul 2011 14:57:09 +0000 (UTC) Received: by yic13 with SMTP id 13so2388447yic.13 for ; Thu, 28 Jul 2011 07:57:09 -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=YMsoahFLqoEUbhgZPSS/NqGXMPIkOYuQvj8MLTN/zfU=; b=WVJToxO2BvdBi7xLayS+RDmqb5OfGLa5zVocnc4v15eQENxnrxbhk1FLTyG6R5Jadw O9Pt3SkfsA98N6uKg1xlPNbvzKsgjjTab07Wkp+e/4WqAORhJ6TU+8jfPr1PwU7xqG9Q 8KyLdx+YZffG9Ukm8f7bRWckDW4a8tv3TImKY= MIME-Version: 1.0 Received: by 10.42.146.131 with SMTP id j3mr43502icv.494.1311865029027; Thu, 28 Jul 2011 07:57:09 -0700 (PDT) Received: by 10.42.169.73 with HTTP; Thu, 28 Jul 2011 07:57:08 -0700 (PDT) In-Reply-To: <20110728151507.0c150f3c.freebsd@edvax.de> References: <20110728151507.0c150f3c.freebsd@edvax.de> Date: Thu, 28 Jul 2011 09:57:08 -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 14:57:10 -0000 On Thu, Jul 28, 2011 at 8:15 AM, Polytropon wrote: > 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 | =A0lpr -P Deskjet >> [olivares@quadcore ~/Documents]$ lpq -a >> Deskjet: >> Deskjet is ready and printing >> Rank =A0 Owner =A0 =A0 =A0Job =A0Files =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Total Size >> active olivares =A0 2 =A0 =A0(standard input) =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A010405 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 > > =A0 =A0 =A0 =A0setenv 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, Thank you for the suggestion. I am using bash as my shell. I have a file ~/.bashrc with command in there and I get: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D bash: setenv: command not found =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Contents of ~/.bashrc are as follows: /**************************************************** [olivares@quadcore /usr/home/olivares]$ cat .bashrc # User specific environment and startup programs setxkbmap -option compose:ralt & setenv PRINTER Deskjet & *****************************************************/ Thanks for the suggestion & hope to get it working :) Regards, Antonio