Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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?
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"
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.
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.
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'?
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.
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 !
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.