LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2015, 08:13 AM   #1
johnnytheswede
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Rep: Reputation: Disabled
Command line IP printing


Hi Forum,

I have a network printer (HP) running on 192.168.85.24 and I wish to install something that enables me to just shoot pdf och ps files directly to it from the command line, however, it has been hard finding something that describes how to make a bare bones setup like that, the most info I find talk about user interfaces, clicking menues opening web browsers etc, I want things incredibly simple, then they are more robust.

Do you have a tutorial on how to just get an HP-printer to accept ps och or pdf files from the command line?

I run Debian with LXDE and have contact with the printer. (I tested with ping.)

Another question I have is for this forum, do you have a search function? If I had had a search function I would have searched for an answer to the question before posting it.

Kind regards
Johnny

Last edited by johnnytheswede; 04-10-2015 at 11:03 AM.
 
Old 04-10-2015, 08:53 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,929

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Welcome to LinuxQuestions.

There is a search pull down menu at the top of the page.

What is the model number of the printer? Assuming cups was installed by default you need to add the printer per the link below. cups has a command line interface and utilities. You can print from the command line

lpr -P printer_name file.ps

https://wiki.debian.org/SystemPrinting

Depending on the model number you might be required to install some additional software to setup the printer.

http://hplipopensource.com/hplip-web/index.html
 
Old 04-10-2015, 10:10 AM   #3
johnnytheswede
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Model etc.

Hi Michael,

Thank you for your response.

The model is HP LaserJet Color CP2025n, I have gotten a test page to work, I can reproduce that from the web interface (localhost://631) but I do not seem to be able to put jobs in the printer queue, I do

lpr -PHP_HP_Color_LaserJet_CP2025n tenta.pdf

and tenta.pdf is a test file, HP_HP_Color_LaserJet_CP2025n is the name of the printer. As a regular user and as a root I try to issue the commands lpstat -r, and lpstat -d to see if I am in touch with the printer from the command line, but the I get

WARNING: gnome-keyring:: couldn't connect to: /home/johnny/.cache/keyring-utGjii/pkcs11: No such file or directory
scheduler is running

can this be used to understand what I have to do?

Kind regards
Johnny
 
Old 04-10-2015, 10:35 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,929

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Look at the status of the printer in the web interface. Is there an error?

Try adding LXDE to the /etc/xdg/autostart/gnome-keyring-pkcs11.desktop file as shown below.

http://forums.linuxmint.com/viewtopi...f=190&t=110920
https://bugzilla.redhat.com/show_bug.cgi?id=783568

Last edited by michaelk; 04-10-2015 at 10:36 AM.
 
Old 04-10-2015, 11:05 AM   #5
johnnytheswede
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
That did it!

Hi Michael,

Thanks a lot, that did it!

Kind regards
Johnny

Last edited by johnnytheswede; 04-10-2015 at 11:05 AM. Reason: (Don't worry about it.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Command line printing phonecian Linux - Software 1 08-13-2006 09:41 AM
Printing from command line noeffred Ubuntu 3 08-12-2006 02:26 PM
Command Line Printing lasalsademuerte Linux - General 1 02-18-2006 04:38 PM
command line printing rb3ng Linux - Newbie 3 04-22-2004 01:35 PM
Command line printing? HappyDude Linux - Software 2 10-25-2003 02:00 PM


All times are GMT -5. The time now is 01:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration