Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2011 09:57:08 -0500
From:      Antonio Olivares <olivares14031@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: printing to a HP Deskjet 812C printer
Message-ID:  <CAJ5UdcO5AqZE6VWQykwN=LxcixKCHtkLXdSyNBWL-wqcNKw5gw@mail.gmail.com>
In-Reply-To: <20110728151507.0c150f3c.freebsd@edvax.de>
References:  <CAJ5UdcM-BbvZHdMLsNH0xckFhgL8z-PfcyB_Q-eTnrfhjYHtUg@mail.gmail.com> <CANmv3=w_Qw_qfw_8gsT23JhOLG%2B7%2BwoottdC%2B-=Oe7zmEGEsGQ@mail.gmail.com> <CAJ5UdcON6Fpxi%2Br_wVjx4TUQW4pJufFdUQjh1bSsJw=a%2BZ8Drg@mail.gmail.com> <CANmv3=yz7TO-12zOVMj9MpjY91M18E4ePE=UzOtv8UxFUXJ=kg@mail.gmail.com> <CAJ5UdcM70MQh35hgzF8DG0r0iW7Vwd1s7y6r62VbFMpBd3_dDA@mail.gmail.com> <CANmv3=zSYQ1NXNW8QXi8HS3N_0NjWf0b5Xm6WE5vyubPQ-6cAg@mail.gmail.com> <CAJ5UdcNhFWRDpD1A0ADdmKUGUEB83s6hpgHUR8oew=LmFR12Eg@mail.gmail.com> <CANmv3=x5fakRvE8%2Bb8Xwa_yx6mCf_Uuhas7i73Pf2v=tXHB1Ew@mail.gmail.com> <CANmv3=wUmm=ZVmxGHtiX4M2tvAWeq0o5cwCE8A5Kxrd_Op9jYA@mail.gmail.com> <CAJ5UdcP%2BzgboZ27Y=Ehbg82DOR1xpptA9FgReXNeqzFTc8u3Pg@mail.gmail.com> <CAJ5UdcPejU0cmn5S_O2tFz=WrbwbG5fcVM9Xiq2V%2B_YMSFNF9Q@mail.gmail.com> <20110728151507.0c150f3c.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 28, 2011 at 8:15 AM, Polytropon <freebsd@edvax.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcO5AqZE6VWQykwN=LxcixKCHtkLXdSyNBWL-wqcNKw5gw>