Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
What did get the printer and computer talking again was to go back into the printer's menu and select, Reset Network Settings. Why IP addresses and other network settings should have any bearing on the USB connection is beyond me. Apparently, the printer has some built-in software which tries to auto-select which way the printer is connected, and it seemed to be based on whether or not those network settings were changed, regardless if a USB cable was physically plugged into the printer or not. At the time, the ethernet cable was NOT plugged into the printer!
JohnE1
Hi JohnE, did you get the 6310 working as a network printer?
I have just bought one which works fine on usb but when I plug the ethernet cable in, it stops Cups from working and I have to reinstall Cups.
Error msg:
"firefox can't establish a connection to the server at localhost:631."
This is on pclos2007. So far, this thread is the closest I have found in my searches for info on this.
Mike, I have not networked this one yet, but I have networked other printers with CUPS under both Linux and Solaris.
You shouldn't have to re-install CUPS. Rather than re-install CUPS, use the CUPS init scripts below to stop, start, and check on the status of CUPS:
# REQUIRES: root access (su - to superuser)
#
# /etc/init.d/cups is installed when CUPS is installed
#
# CUPS Init scripts used by the Init command
# during bootup and shutdown.
# Use manually to control CUPS daemon.
/etc/init.d/cups status
/etc/init.d/cups stop
/etc/init.d/cups start
# Shell commands:
# ---------------
# Shell commands to see if CUPS print manager is running
ps -ef | egrep cupsd || cups
# Shell commands to see if CUPS print spooler is running
ps -ef | egrep lpsched
# CUPS commands:
# --------------
# Shows if CUPS print spooler is running or not
lpstat -r
# Shows default printer
lpstat -d
# Shows all (total) status information.
# This is equivalent to using
# the "-r", "-d", "-c", "-d",
# "-v", "-a", "-p", and "-o" options.
lpstat -t
# lpinfo - can show valuable info to troubleshoot
# print driver and print device issues.
# See man page for options:
man lpinfo
# lpadmin - used to set default printer and more
man lpadmin
# NOTE: I recommend using CUPS web interface
# to set default printer and other changes.
# I use lpadmin when the web interface "won't cooperate"
firefox http://127.0.0.1:631 &
# See printer specific options (once default printer is set)
lpoptions -l
# See man lpoptions for more info
ADD'L NOTES:
============
I should clarify, by networked, I am referring to a printer which is connected to the network via its own unique IP address.
If that's what you're referring to, here's what I can share with you:
1) Using the menu on the printer, enter a static IP address.
i.e. 192.168.2.100
2) Disconnect the USB cable from BOTH the PC AND the printer!
3) Configure CUPS to use the printer via IPP (Internet Printing Protocol)
Port 9100, as I recall
JohnE
Last edited by JohnE1; 10-08-2007 at 06:12 AM.
Reason: Add'l commands added
Hi JohnE, thanks very much for the info. I just found your replies but its late now, so I will try again tomorrow and let you know how it goes.
Cheers, Mike
I just configured a HP Officejet 6310 all-in-one on a Linux terminal server (fedora 5) as a network printer, using KDE print configuration wizard.
The only 'difficulty' was to find the ppd file. I downloaded it from http://www.openprinting.org/show_pri...OfficeJet_6300
move it to:
/usr/share/foomatic/db/source/PPD/HP/all_in_one/HP-OfficeJet_6300-hpijs.ppd
chown root:root HP-OfficeJet_6300-hpijs.ppd
Then open it in the KDE printer selection. The printer worked on first attempt.
Now I am trying to get the scanner working. Have never used xsane (KDE) before.
Any help welcome.
The xsane (version 0.991) scanner tools says 'no devices available' even if run as root.
Greta info, I'm looking for one myself. I have a scanner and printer seperate but want to get a combined unit to save space. I've always bought HP since they always work. My current printer is a photosmart 1218 from 2000 and my printer before that was a deskjet 600 which I bought in 1995 or 1996 and gave to my uncle in 2000 and his grandkids still use it when they visit him. So whomever is saying inkjets don't last much have bought the wrong brand.
We bought a portable photo printer early last year because at my family's farm you have to drive an hour to find any place that can print pictures so when my grandmother was sick we could visit and take a picture of her and her great grand kids, print them and hand them to her right then. So we don't use the photo capabilities of the 1218 since the little one does a good job. I've been running the 1218 off an external jetdirect but its buffer is small and gets overloaded with big jobs so I'm looking for something that will directly network, that officejet sounds like a good bet. How does the scanning work, do you have to plug in via USB to use it or can it scan over the network?
The HP Officejet 6310 all-in-one configured as network printer can be used to scan. At first I tried xsane (which I do not know) without success.
But then found that the printer has a built in web server. So point the browser to http://printers IP address. Select the scan application. Press scan. If you have choosen text then a dialog pops up asking wether you want to open the pdf file or save it. If you choose picture then a new browse window pops up. You can save the windows content when the scan is done.
At first I had difficulties, looks not very robust but is usable:
- You must allow pop up windows otherwise it does not work (Konqueror: Settings.Configure Konqueror.Java & Javascript.javascript.Open new window allow) (Firefox: Edit.Preferences.Content.Block popup windows not selected)
- If I first do preview and then scan it hangs. Reset button does not work.
- Firebug reports errors on the web page ?? I ignore them.
The scan quality I can not compare as this is the first time I am using a scanner. So far it looks good to me.
If you know how to make xsane work over the network that would be great to learn.
Regards,
Ernst
ADD'L NOTES:
============
I should clarify, by networked, I am referring to a printer which is connected to the network via its own unique IP address.
If that's what you're referring to, here's what I can share with you:
1) Using the menu on the printer, enter a static IP address.
i.e. 192.168.2.100
2) Disconnect the USB cable from BOTH the PC AND the printer!
3) Configure CUPS to use the printer via IPP (Internet Printing Protocol)
Port 9100, as I recall
JohnE
Hi John, been very busy all week and just found time to have another go at using the 6310 as a network printer. It works fine using the usb lead but I just haven't a clue how to get it running on the network. I have a wifi router running and a HP wireless printing upgrade plugged into the printer. I am using pclos/kde but cannot seem to find my way around the set up procedure. Would really appreciate some help on this thanks.
To start with, I cant see how to set a static ip address on the printer. How do I know what address to put in?
Cheers, Mike
If you know how to make xsane work over the network that would be great to learn.
Regards,
Ernst
Hi ernst, I too would love to get xsane working over the network. I bought this HP printer because my dell all in one is never likely to get linux drivers. I never use windoze for anything now, and if I can get all the functions on the 6300 working on a network, that would be a great help. Just got xsane working under linux (pclos) for the first time and it is brilliant, but so far, only with a usb connection.
Hi John, been very busy all week and just found time to have another go at using the 6310 as a network printer. It works fine using the usb lead but I just haven't a clue how to get it running on the network. I have a wifi router running and a HP wireless printing upgrade plugged into the printer. I am using pclos/kde but cannot seem to find my way around the set up procedure. Would really appreciate some help on this thanks.
To start with, I cant see how to set a static ip address on the printer. How do I know what address to put in?
Cheers, Mike
You need to put in an unused address on your network. your router probably has a way to exclude addresses from its dhcp server or a way to narrow the range that it hands out.
You need to put in an unused address on your network.
Thanks enine, the problem is that I cant get my head around how ip addresses work and how to allocate one to the print server.
The HP wireless upgrade is apparently a Realtek RTL8187. Do I need a linux driver for it? Googling for a driver indicates it should be built in to the kernel. Is that right?
The other thing is that it needs a wpa key and one wasnt provided with the unit. My main router uses wep. I am afraid I am floundering a bit here.
Cheers, Mike
Last edited by mike sumner; 10-14-2007 at 12:35 AM.
wireless rou_er should have a ROM accessible from browser. Should give direc_ions for ins_alling a prin_er (couple ke_s no work, so have _o choose words carefull_....)
Browser help file or ins_ruc_ions should give address for browser ROM. Rou_er did whole job for me in XP, have no_ done in linux _e_.
OR rou_er should have a u_ili__, and hope available in linux form.... (Mine is USR--all in ROM). Should issue he address for prin_er
Hi Mike,
Found out how to use xsane on a HP Officejet 6310 which is directly connected to the LAN. Till now I used the embedded web server which was not robust (sometimes needed to restart the printer!).
First hint was from: http://lists.alioth.debian.org/piper...er/012482.html
That was quite old, the hpoj project is now part of hplip. hplip (1.6.6a-1.1) is already installed on my PC.
Second:
Follow the instructions on http://hplip.sourceforge.net/install.../cups/net.html
I did this although the printer already worked. Installed it a second time with a different name.
Third:
run hp-toolbox
Now whoever can access the printer on the LAN can:
print, scan with xsane, download files from foto card, probably could fax also
Very happy with HP. Me too, I will not touch Windows if avoidable.
Here's a quick quesion for everone here. I jus picked up a Lexmark X5250 combo piece, w/priner, scanner, and copier from m local LUG. Appears 2 B brand new.
PROBLEM: no ink carridges. I could refill 'em if I had 'em. Anibodi who has one color and one B/W ling around and no need please help, doesn' make a difference if no ink, I jus need carridges.
Sorri for mi keboard--4-5 keis no work, need 2 fix.... delee, backspace, ab, and 2 beween "R" and "U" and lef-side shif kei no work.... aggravaing!
U can respond 2 jhwaaser @ gmail.com. I don' mind giving gmail address awai, since gmail does a good job a spam prevenion....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.