LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-13-2009, 08:58 AM   #16
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297

Quote:
Originally Posted by frenchn00b View Post
but nothing come out


I tried with :
lp -PLexmark-Lexmark-Z55 text.txt

but nothing come out

I played with lprm to delete the evn. bugigng pages. but nothing ...


howto:
https://kb.iu.edu/data/adzr.html
Try:
Code:
lp -d test.txt Lexmark-Lexmark-Z55
Kind regards,

Eric
 
Old 12-13-2009, 08:59 AM   #17
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
To remove jobs from the queue you could also use the web interface of CUPS, very handy.
 
1 members found this post helpful.
Old 12-13-2009, 09:07 AM   #18
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Hurra !! It works !
Code:
$ lp -d LEXMARK text.txt 
request id is LEXMARK-12 (1 file(s))
But I had to add to cups the printer using kprinter on the client.
But I could do it with lynx localhost:631 certainly

So, now, the most difficult is done.
Any idea how to print a pdf from the command line?
it will print ascii chars of the pdf, non concerted

I know that cups can print PS format, but well, in that case


thanks a lot Eric
 
Old 12-13-2009, 09:12 AM   #19
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
it seems that the ultimate solution is :

Code:
pdf2ps somefile.pdf | lpr -P LEXMARK
Ill be back
 
Old 12-13-2009, 09:13 AM   #20
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Double post, sorry, network glitches here in Spain :d

Last edited by EricTRA; 12-13-2009 at 09:15 AM.
 
1 members found this post helpful.
Old 12-13-2009, 09:14 AM   #21
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

If CUPS is handling the printing then you should be able to directly print PDF files from the command line as far as I know. I've printed PDF from commandline to CUPS printing queue on remote server at the office and it works perfectly. No need for other tools. Also according to the CUPS documentation it should print at once.
Quote:
Printing Files

CUPS understands many different types of files directly, including text, PostScript, PDF, and image files. This allows you to print from inside your applications or at the command-line, whichever is most convenient! Type either of the following commands to print a file to the default (or only) printer on the system:

lp filename
lpr filename
And you're most welcome.

Kind regards,

Eric
 
1 members found this post helpful.
Old 12-13-2009, 09:21 AM   #22
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by EricTRA View Post
Hi,

If CUPS is handling the printing then you should be able to directly print PDF files from the command line as far as I know. I've printed PDF from commandline to CUPS printing queue on remote server at the office and it works perfectly. No need for other tools. Also according to the CUPS documentation it should print at once.


And you're most welcome.

Kind regards,

Eric
ok here we try:

here we go let's try:
Code:
~$ lp -d LEXMARK linuxquestions.pdf
request id is LEXMARK-13 (1 file(s))
I cant believe my eyes !!
You are a genious. It works completely. I got my page printed, like it should.

I thank you so much. I learned a lot. export PRINTER=LEXMARK is said to make it default.

Greetings to Spain.
F.
 
Old 12-13-2009, 09:23 AM   #23
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hahahaha, me a genious? You're funny. I'm just a guy who takes advantage of the internet

No, serious, I'm glad it works. Happy Linuxing.

Kind regards,

Eric
 
Old 12-13-2009, 09:24 AM   #24
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
commands are :

lpstat -v #to see all the printers installed
lpq -a #to see the queue for printing
lp -d MYPRINTRE document.pdf # to print it
lprm JOBID # to delete a job, seen from lpq -a
 
1 members found this post helpful.
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error with xorg-x11-server-Xorg callumacrae Fedora 1 10-13-2009 02:22 PM
How to print a message from kernel module to terminal console or tty console yogesh_bansal Linux - Newbie 2 02-27-2009 09:10 AM
xorg-x11-devel dependant on old version of xorg-x11-libs thetawaverider Linux - Software 1 11-09-2006 07:22 AM
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 04:15 PM
xorg-x11-libs required by xorg-x11-devel darknails Fedora 1 01-13-2005 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:39 AM.

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