LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-26-2004, 08:37 PM   #1
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Rep: Reputation: 30
Setting Up My HP Printer With CUPS


I have it all set up using http://localhost:631 and I even got a test page to print but how do I print from programs like mozilla for example? I click print but nothing happens. My printer is an HP Business Inkjet 1100. It's plugged up by ethernet to a switch with all my computers on it.
 
Old 06-27-2004, 12:18 PM   #2
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
bump
 
Old 06-27-2004, 03:12 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Assuming cups is set up correctly (which took me weeks) you can use lpr (or lp) to print files:
lpr myfile.txt
will send a file to print. If there's an option for a command string in the print option of the specific program then put lpr in it. For example, in abiword there's an option for 'printer command' which I simply have set as lpr it does the rest for me.
 
Old 06-27-2004, 08:15 PM   #4
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
ok i tried that on a random file i found and got this

Code:
daniel@bob:~/wowhell_raid_hi$ lpr mmhell.txt
Status Information, attempt 1 of 3:
sending job 'daniel@bob+830' to HP@localhost
 connecting to 'localhost', attempt 1
 cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Waiting 10 seconds before retry
Status Information, attempt 2 of 3:
sending job 'daniel@bob+830' to HP@localhost
 connecting to 'localhost', attempt 1
 cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Waiting 10 seconds before retry
sending job 'daniel@bob+830' to HP@localhost
 connecting to 'localhost', attempt 1
 cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
 
Old 06-28-2004, 12:27 PM   #5
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
bump
 
Old 06-28-2004, 04:35 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
So, if I've read you right, if you go to http://127.0.0.1:631/ you can print a test page but if you try to print from mozilla it doesn't print? Can you print from other apps like gedit? Can you print if you run Mozilla as root (I'm not suggesting you should surf the net as root, you don't need to be online to run Mozilla)? What happens if you run Mozilla from the terminal and then try and print? Does it leave an error message in the terminal?

I Googled on your error message and found this http://linuxprinting.org/pipermail/h...q2/005058.html I hope it helps.

Last edited by Andrew Benton; 06-28-2004 at 04:52 PM.
 
Old 06-28-2004, 05:41 PM   #7
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
hmm... gedit prints fine but mozilla won't print at all even as root. when i run it from the terminal it leaves this error message.

Code:
Status Information, attempt 1 of 3:
sending job 'daniel@bob+931' to HP@localhost
 connecting to 'localhost', attempt 1
 cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Waiting 10 seconds before retry
Status Information, attempt 2 of 3:
sending job 'daniel@bob+931' to HP@localhost
 connecting to 'localhost', attempt 1
 cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Waiting 10 seconds before retry
sending job 'daniel@bob+931' to HP@localhost
 connecting to 'localhost', attempt 1
 cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
One thing I noticed is that under Printers gedit shows HP, the name of my printer, but Mozilla only shows "PostScript/default"
 
Old 06-28-2004, 06:18 PM   #8
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you put this line in a plain text file (gedit will do it fine) and save it as user.js in your mozilla profile, the hidden .mozilla folder in your home directory, save it in the same folder as prefs.js

user_pref("print.printer_list", "HP");

Then restart mozilla. You should then be able to select HP as your printer when you try to print from Mozilla. I wish I could say it'll help, but I don't know.
 
Old 06-29-2004, 02:24 PM   #9
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
When I did that it added the printer "PostScript/HP" but it still won't print. I tried that in both Mozilla 1.7 and Firefox 0.9.1 and they both did the same thing.
 
Old 06-29-2004, 03:46 PM   #10
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Quote:
Originally posted by AFI_Flame
When I did that it added the printer "PostScript/HP" but it still won't print. I tried that in both Mozilla 1.7 and Firefox 0.9.1 and they both did the same thing.
On the 'printer' option on firefox there's a button next to 'postscript/default' that says 'properties'. On the 'command' bit of that, what happens if you remove everything except the 'lpr'?
 
Old 06-29-2004, 05:19 PM   #11
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
same thing happens...
 
Old 06-29-2004, 06:13 PM   #12
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
Ah i finally fixed it . I did a search on this site and it seems when you do a full install of Slackware like I did, it installs LPRng after CUPS so the LPR command is bound to LPRng insted of CUPS. To fix this I removed LPRng and CUPS and then reinstalled CUPS and now it works.
 
Old 06-29-2004, 07:48 PM   #13
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Komakino !!!!
you are the first person ive found who has managed to get a HP printer working in slackware !

how did you do it ?

i have a HP deskjet 710c parralel port printer.
CUPS does not support it, but LPRng does.

but there is a PPD file that works with cups.

my pirnter works fine automatically in distro's like fodora core 1 / 2 / redhat 9.
but i cannot get it working in slackware.

when i use CUPS, i get a message saying all is working correctly, and the page aprears in the completed tasks area of cups (localhost:631)
but nothing prints.

and when using LPRing, i get an error about cannot connect to host localhost. make sure it is accespting connections from this machine on ports 1024 > and it accepts LRP protocol.

im using slackware 10.

thankyou for any help.

what did you have to do to get it working ?
upgrade ?
downdrage ?

ive been thinking about un-installing cups, and installing the foedora core 2 RPM's they work perfect !
 
Old 06-29-2004, 09:01 PM   #14
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
i just went to http://localhost:631/ and then clicked add printer. my printer ,HP Buisness Inkjet 1100, was on there so I clicked it. It's plugged up through ethernet so I clicked the HP JetDirect thing and for the location I put socket://(ip of printer):9100/ and the test page just worked.
 
Old 07-22-2004, 09:25 AM   #15
Motaro
Member
 
Registered: Mar 2003
Location: USA, Florida
Distribution: slackware 12.1
Posts: 44

Rep: Reputation: 16
qwijibow :


In your case i've had the same problem i have a hp-712c, and your printer and mine, you have to download the special driver http://www.linuxprinting.org/show_dr...P-DeskJet_712C go to this page and you have to download it after downloading it compile it as root and install it remember to install the ppd file and it should appear in your instalation list

luck !!
 
  


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
DISCUSSION: Setting Up a Network Printer using CUPS busbarn LinuxAnswers Discussion 17 04-20-2010 08:25 PM
DISCUSSION: Setting up a PDF printer in CUPS (in my case in Slackware) Tinkster LinuxAnswers Discussion 7 11-18-2008 02:31 AM
Help setting up printer using cups jbraum Linux - Networking 1 11-19-2005 04:32 PM
Setting up HP printer with CUPS tuxedo-notebook Linux - Hardware 3 03-31-2005 08:12 PM
setting up a printer with cups on RH7 for windows with samba TreeHugger Linux - Networking 2 11-11-2004 11:31 AM


All times are GMT -5. The time now is 10:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration