LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-30-2010, 09:12 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
How to print from console with LPR?


Quote:
export PRINTER="DESKJET-710C"
cd ; lpr PDF/myfile.pdf
gives no printing at all.


However ,I do it with evince using this printer, well configured, and EVINCE (x11) prints the pages.

Please any help would be welcome

kind regards
 
Old 12-30-2010, 09:18 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You could just do lpr -PDESKJET-710C PDF/myfile.pdf.

If you want to set the default printer, you can do so in ~/.cups/lpoptions, with a line like

Default printer printer-options,

where printer is to be replaced with the printer name and printer-options is replaced with any options that you want (for example, for duplex printing). This stuff can be taken care of by using the command lpoptions, too (as opposed to you doing it manually, I mean).
 
Old 12-30-2010, 04:03 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by Nylex View Post
You could just do lpr -PDESKJET-710C PDF/myfile.pdf.

If you want to set the default printer, you can do so in ~/.cups/lpoptions, with a line like

Default printer printer-options,

where printer is to be replaced with the printer name and printer-options is replaced with any options that you want (for example, for duplex printing). This stuff can be taken care of by using the command lpoptions, too (as opposed to you doing it manually, I mean).
Hello,

I tried this method , but it did not work. I do not understand why actually, all looks fine, but visibly lpr does not work
Code:
lpr -PDESKJET-710C PDF/myfile.pdf
 
Old 12-31-2010, 12:36 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Is CUPS running? If so, go to http://localhost:631 and check if there are any errors on the printer (there's probably a log file in /var/log/cups, so you can check that instead).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
some PDF/PS print with LP/LPR some do not ? k.king Linux - General 3 03-25-2006 07:00 AM
cups daemon/lpr won't print rzavarella SUSE / openSUSE 12 04-05-2005 04:33 PM
gimp-print and lpr _ben_deb_ Linux - Hardware 0 02-11-2005 10:01 AM
OfficeJet G85, CUPS Web based Admin test print works, lpr/lp dose not. ptal-print OK. NLR Linux - Hardware 2 09-20-2004 02:59 PM
Can print via lpr, but not browser tunedLow Linux - Hardware 5 05-10-2003 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration