LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-06-2007, 02:04 AM   #16
mike sumner
Member
 
Registered: Nov 2006
Location: Lincolnshire, England
Distribution: Debian Sid/Squeeze
Posts: 51

Rep: Reputation: 15

Quote:
Originally Posted by JohnE1 View Post
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.

Thanks, Mike
 
Old 10-08-2007, 05:49 AM   #17
JohnE1
Member
 
Registered: Jun 2007
Location: Houston, TX
Distribution: Fedora, CentOS, Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 16
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
 
Old 10-08-2007, 10:13 AM   #18
JohnE1
Member
 
Registered: Jun 2007
Location: Houston, TX
Distribution: Fedora, CentOS, Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 16
Exclamation

Quote:
Originally Posted by mike sumner View Post
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.

Thanks, Mike
Mike,

The error msg is most likely caused because CUPS is not running. Sorry, I didn't answer that in my previous lengthy reply.

# /etc/init.d/cups status

If CUPS is running, you'll see something like:

[root@localhost ~]# /etc/init.d/cups status
cupsd (pid 3057) is running...

If CUPS is not running, you'll see:

[root@localhost ~]# /etc/init.d/cups status
cupsd is stopped

Verify that port 631 is listed.
Enter: cat /etc/services | egrep 631
and you should see the following.

[root@localhost ~]# cat /etc/services | egrep 631
ipp 631/tcp # Internet Printing Protocol
ipp 631/udp # Internet Printing Protocol

If that doesn't return those 2 lines, then you need to edit /etc/services and add those 2 lines where they go in Port # sort order.

For example, here's a snippet from my services file:

hmmp-ind 612/tcp dqs313_intercell # HMMP Indication / DQS
hmmp-ind 612/udp dqs313_intercell # HMMP Indication / DQS
ipp 631/tcp # Internet Printing Protocol
ipp 631/udp # Internet Printing Protocol
ldaps 636/tcp # LDAP over SSL
ldaps 636/udp # LDAP over SSL

Verify that CUPS is running and port 631 is listening.
Enter: netstat -anp | egrep 631
and you should get something similar to what I got below.

[root@localhost ~]# netstat -anp | egrep 631
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 7479/cupsd

Regards,
JohnE

P.S. You should probably start a new thread. I'll be happy to help you, just private msg me the link to the new thread.

Last edited by JohnE1; 10-08-2007 at 10:31 AM. Reason: Network commands added to test system.
 
Old 10-08-2007, 05:35 PM   #19
mike sumner
Member
 
Registered: Nov 2006
Location: Lincolnshire, England
Distribution: Debian Sid/Squeeze
Posts: 51

Rep: Reputation: 15
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
 
Old 10-11-2007, 05:24 AM   #20
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Rep: Reputation: 15
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.
 
Old 10-11-2007, 08:15 AM   #21
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 791
Blog Entries: 3

Rep: Reputation: 84
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?
 
Old 10-12-2007, 03:35 AM   #22
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Rep: Reputation: 15
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
 
Old 10-12-2007, 01:41 PM   #23
mike sumner
Member
 
Registered: Nov 2006
Location: Lincolnshire, England
Distribution: Debian Sid/Squeeze
Posts: 51

Rep: Reputation: 15
Quote:
Originally Posted by JohnE1 View Post
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
 
Old 10-12-2007, 01:59 PM   #24
mike sumner
Member
 
Registered: Nov 2006
Location: Lincolnshire, England
Distribution: Debian Sid/Squeeze
Posts: 51

Rep: Reputation: 15
Quote:
Originally Posted by ernst View Post
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.

Mike
 
Old 10-13-2007, 09:33 PM   #25
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 791
Blog Entries: 3

Rep: Reputation: 84
Quote:
Originally Posted by mike sumner View Post
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.
 
Old 10-14-2007, 12:25 AM   #26
mike sumner
Member
 
Registered: Nov 2006
Location: Lincolnshire, England
Distribution: Debian Sid/Squeeze
Posts: 51

Rep: Reputation: 15
Quote:
Originally Posted by enine View Post
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.
 
Old 10-14-2007, 02:28 PM   #27
jhwaaser
LQ Newbie
 
Registered: Mar 2007
Posts: 10

Rep: Reputation: 0
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

GRRrrrrrr I need a CPiA ke_board!
 
Old 10-14-2007, 02:31 PM   #28
jhwaaser
LQ Newbie
 
Registered: Mar 2007
Posts: 10

Rep: Reputation: 0
P.S. 2 user who asked abou_ building a radio w/acid core solder, NEVER use acid core on radios--onl_ for copper plumbing! Use Rosin core on radios!!!!

Jeez....
 
Old 10-17-2007, 11:41 PM   #29
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Rep: Reputation: 15
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.

Cheers, Ernst
 
Old 10-20-2007, 02:42 PM   #30
jhwaaser
LQ Newbie
 
Registered: Mar 2007
Posts: 10

Rep: Reputation: 0
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....
 
  


Reply

Tags
allinone, cups, hp, printer, printer installation, printers


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
Printer Recommendations jmtjet Ubuntu 8 09-25-2006 10:16 PM
Need recommendations for laser or inkjet printer edisav Linux - Hardware 5 01-05-2006 10:52 PM
Recommendations for a good Linux-friendly scanner and printer? R00ts Linux - Hardware 11 02-23-2005 09:04 AM
Laser Printer Recommendations Wanted ozar Linux - Hardware 2 08-04-2004 12:24 AM
Anyone have printer recommendations? XryanX Linux - Hardware 2 05-05-2004 02:00 AM


All times are GMT -5. The time now is 04:03 AM.

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