Fedora Linux Support Community & Resources Center
  #1  
Old 8th May 2012, 05:33 AM
johnlvs2run Offline
Registered User
 
Join Date: Jul 2008
Location: western u.s.
Posts: 147
linuxfirefox
problems connecting laserjet 4M printer with ethernet

Today I plugged an ethernet cord into the router and printer.
The printer is found under: applications > administration > printing > HP-Laserjet-4M
Clicking this icon brings up Printer Properties, but the printer is not yet connecting with the printer.

I could use some suggestions on changing the Device URI from parallel to ethernet.
So far I have tried: socket://192.0.0.192:9100 ... but the screen keeps reverting back to parallel.
The terminal is not working -- I will need to upgrade the os.

Thanks very much.

Update: The Device URI now shows: socket://192.0.0.192:9100 ... but still won't print a test page.
I don't know if the :9100 is correct, I just saw that somewhere and added it on.
__________________
biostar a870u3 / amd athlonII x2 regor250 3.0ghz am3 65w / gskill sniper 2x4gb ddr3 1333
evga 512-P3-1311-KR geforce 210 32bit ddr3 pci express hdcp video card / fedora 16 64 lxde
nvidia onboard / seagate barracuda 7200 250gb 3gbs hard drive / hannsg hw192 / earthwatts psu

Last edited by johnlvs2run; 9th May 2012 at 03:54 AM.
Reply With Quote
  #2  
Old 8th May 2012, 05:00 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,612
linuxfedorafirefox
Re: problems connecting laserjet 4M printer with ethernet

Use the system-config-printer tool (it can be installed using yum). One of the options will be to add a network printer, and you can choose HP DirectJet as the type. From there you'll be able to select the HP Laserjet 4M driver (assuming you've installed the hpijs package).
Attached Thumbnails
Click image for larger version

Name:	print1.png
Views:	68
Size:	12.8 KB
ID:	23042   Click image for larger version

Name:	print2.png
Views:	61
Size:	26.1 KB
ID:	23043   Click image for larger version

Name:	print3.png
Views:	58
Size:	24.8 KB
ID:	23044   Click image for larger version

Name:	print4.png
Views:	75
Size:	27.0 KB
ID:	23045  
__________________
OS: Fedora 20 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 5GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
  #3  
Old 8th May 2012, 09:23 PM
johnlvs2run Offline
Registered User
 
Join Date: Jul 2008
Location: western u.s.
Posts: 147
linuxfirefox
Re: problems connecting laserjet 4M printer with ethernet

Quote:
Originally Posted by RupertPupkin View Post
Use the system-config-printer tool (it can be installed using yum). One of the options will be to add a network printer, and you can choose HP DirectJet as the type. From there you'll be able to select the HP Laserjet 4M driver (assuming you've installed the hpijs package).
Thanks very much for your help.

The printer was already showing on screen #1.
The terminal was surprisingly working, so I entered yum install system-config-printer and it loaded.
Was that supposed to load the hpijs package?

Screen #2 showed up.
I tried it with 192.0.0.192, and with 192.168.1.111 as in your example.
I had already gotten screen #3 and 4 previously but ran them again.
Now the printer is entered twice on screen #1, HP-Laserjet-4M and HP-Laserjet-4M-2.

Neither of them print a test page. Any ideas on what to do now?
__________________
biostar a870u3 / amd athlonII x2 regor250 3.0ghz am3 65w / gskill sniper 2x4gb ddr3 1333
evga 512-P3-1311-KR geforce 210 32bit ddr3 pci express hdcp video card / fedora 16 64 lxde
nvidia onboard / seagate barracuda 7200 250gb 3gbs hard drive / hannsg hw192 / earthwatts psu

Last edited by johnlvs2run; 8th May 2012 at 09:43 PM.
Reply With Quote
  #4  
Old 8th May 2012, 10:02 PM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,481
linuxchrome
Re: problems connecting laserjet 4M printer with ethernet

Another option is using hplip

yum install hplip

Then, if you know the printer's address--on the 4M, if I remember, you should be able to print a configuration page which will give the address--, you can install with

hp-setup -i <address>

It will take you through a few questions, most of which can be answered by just hitting enter and accepting the default.

Make sure you have cups and that it's running

pgrep cups

If it's running, you should get back a number, 3 or more likely 4 or 5 digits. Doesn't matter, as long as some number comes back.

If you don't get anything back, try

service cups start

If you get an error with that command, post it here.
Reply With Quote
  #5  
Old 8th May 2012, 11:20 PM
johnlvs2run Offline
Registered User
 
Join Date: Jul 2008
Location: western u.s.
Posts: 147
linuxfirefox
Re: problems connecting laserjet 4M printer with ethernet

Thank you very much.

yum install hplip ran fine in the terminal.
The self test page, is the only page that shows an address, 192.0.0.192 IP address / gateway.
Is that the printer address?

pgrep cups returned a 4 digit number.

hp-setup -i 192.0.0.192 returned the following:
Code:
0*        usb         Universal Serial Bus (USB)                                
  1         net         Network/Ethernet/Wireless (direct connection or JetDirect)
  2         par         Parallel Port (LPT:)                                      

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 1

Using connection type: net

error: Invalid device URI: 
error: No device selected/specified or that supports this functionality.
__________________
biostar a870u3 / amd athlonII x2 regor250 3.0ghz am3 65w / gskill sniper 2x4gb ddr3 1333
evga 512-P3-1311-KR geforce 210 32bit ddr3 pci express hdcp video card / fedora 16 64 lxde
nvidia onboard / seagate barracuda 7200 250gb 3gbs hard drive / hannsg hw192 / earthwatts psu
Reply With Quote
  #6  
Old 8th May 2012, 11:38 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,000
linuxfirefox
Re: problems connecting laserjet 4M printer with ethernet

Quote:
The self test page, is the only page that shows an address, 192.0.0.192 IP address / gateway.
Is that the printer address?
Another easy way to get the printer address would be to log onto the router you plugged it into and look at the DHCP lease page, the printer IP should be on there assuming it's using dhcp to get a IP lease. Most routers use 192.168.1.1 as the page on the router you'd see that information (you might need to log on using a username password probably posted on the router case , "admin" and "password" are pretty typical).
Reply With Quote
  #7  
Old 8th May 2012, 11:59 PM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,481
linuxchrome
Re: problems connecting laserjet 4M printer with ethernet

I'm not sure, unless your firewall may be blocking it. The hp-setup -i 192.168.0.192 should have found it.

@Marko, judging from the printer's address, I'm guessing it's one of the routers that use 192.168.0.1 rather than 1.1. Cisco/Linksys tend to use 192.168.1, D-Link and possibly Netgear use 192.168.0.1.

I hate to tell someone turn off their firewall, but as it's behind a router, it's at least worth testing for a few minutes.

Try

iptables -F

That will turn them off for a few minutes (the F is for flush)

Then please try the hp-setup -i 192.168.0.192 once more. If it works, then we know it's a firewall and can deal with it. Regardless of whether it does work or not, then please restart your iptables with

service iptables restart
(That's the old version of the command, but still works). Note that if the iptables -F did fix the problem, starting them again will temporarily stop it from working, but we'll worry about that if it does turn out to be the problem.
Reply With Quote
  #8  
Old 9th May 2012, 12:55 AM
johnlvs2run Offline
Registered User
 
Join Date: Jul 2008
Location: western u.s.
Posts: 147
linuxfirefox
Re: problems connecting laserjet 4M printer with ethernet

Thank you very much for all the helpful suggestions.

iptables -F
hp-setup -i 192.168.0.192
hp-setup -i 192.168.1.1
hp-setup -i 192.0.0.192
All got the same response as before
service iptables restart

The modem is a verizon westell 7500, model # A90-750015-07.
__________________
biostar a870u3 / amd athlonII x2 regor250 3.0ghz am3 65w / gskill sniper 2x4gb ddr3 1333
evga 512-P3-1311-KR geforce 210 32bit ddr3 pci express hdcp video card / fedora 16 64 lxde
nvidia onboard / seagate barracuda 7200 250gb 3gbs hard drive / hannsg hw192 / earthwatts psu
Reply With Quote
  #9  
Old 9th May 2012, 01:40 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,481
linuxchrome
Re: problems connecting laserjet 4M printer with ethernet

Ok, thanks for trying. I'm not sure why it's not seeing it.


I would probably now test with a live CD of another distribution, to try to see if it's a Fedora only issue.
Reply With Quote
  #10  
Old 9th May 2012, 01:46 AM
johnlvs2run Offline
Registered User
 
Join Date: Jul 2008
Location: western u.s.
Posts: 147
linuxfirefox
Re: problems connecting laserjet 4M printer with ethernet

Could the problem be something to do with the motherboard or the bios?

I typed 192.168.1.1 in the address bar, and the verizon page for the router came up with 3 columns:
my gateway -- my network -- action zone

There's an IP address under gateway, and an IP address of 192.168.1.39 under my network.
I will try the 192.168.1.39 address and see what happens.

hp-setup -i 192.168.1.39

iptables -F
hp-setup -i 192.168.1.39
service iptables restart
.. both got the same response as before.

Nothing happens when I type 192.168.1.39 in the address bar, so 192.168.1.1 must be the right address.
Update, the defaults are 7500 IP 192.168.1.1, username and password admin and password, printer default IP 192.168.1.1.

Quote:
Originally Posted by marko View Post
Another easy way to get the printer address would be to log onto the router you plugged it into and look at the DHCP lease page, the printer IP should be on there assuming it's using dhcp to get a IP lease. Most routers use 192.168.1.1 as the page on the router you'd see that information (you might need to log on using a username password probably posted on the router case , "admin" and "password" are pretty typical).
Trying to log on to the router with admin-password or admin-admin doesn't work. They are not shown on the case.

Okay how does this sound. I have had this printer a long time, and have never used it with this router.
Is it possible the printer default IP is something entirely different? If so, can I reset the printer IP so it will accept the router IP?
__________________
biostar a870u3 / amd athlonII x2 regor250 3.0ghz am3 65w / gskill sniper 2x4gb ddr3 1333
evga 512-P3-1311-KR geforce 210 32bit ddr3 pci express hdcp video card / fedora 16 64 lxde
nvidia onboard / seagate barracuda 7200 250gb 3gbs hard drive / hannsg hw192 / earthwatts psu

Last edited by johnlvs2run; 9th May 2012 at 03:52 AM.
Reply With Quote
  #11  
Old 9th May 2012, 03:28 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,481
linuxchrome
Re: problems connecting laserjet 4M printer with ethernet

Yes, that is possible. If it's showing 192.168.0.something and your computer has an address of 192.168.1 something, then, as the Internet meme goes, (often when showing a car crashed into a wall), There's your problem.
http://i1.kym-cdn.com/photos/images/...r-problem2.jpg


I'm going to sleep soon, but if this IS the case--that is, that your computer's address is a 192.168.1.x and the printer is that 192.168.0.32 that you gave earlier, then, I believe that that printer can be result to defaults and will then, if you attach it to the router, be able to get an address from the router through DHCP.

OK, here's the reset method.

http://printertechs.com/tech/coldreset.php

A bit more googling did NOT confirm that I'm right about hooking it up to the router and it automatically using DHCP. You might have to set that in the printer.


Ah--my aging memory does seem to be correct http://www.pcreview.co.uk/forums/hp-...-t1933058.html indicates that after the reset, it will get an address from your router.

Last edited by smr54; 9th May 2012 at 03:31 AM.
Reply With Quote
  #12  
Old 9th May 2012, 03:34 AM
johnlvs2run Offline
Registered User
 
Join Date: Jul 2008
Location: western u.s.
Posts: 147
linuxfirefox
Re: problems connecting laserjet 4M printer with ethernet

Quote:
Originally Posted by smr54 View Post
Yes, that is possible. If it's showing 192.168.0.something and your computer has an address of 192.168.1 something, then, as the Internet meme goes, (often when showing a car crashed into a wall), There's your problem.

url]http://www.pcreview.co.uk/forums/hp-laserjet-4m-plus-network-woe-t1933058.html[/url] indicates that after the reset, it will get an address from your router.
Smr, thank you very much for responding.

Actually the printer self test page shows an IP address and gateway of 192.0.0.192.

Quote:
Hold the Online button while turning the printer on. This will do a cold reset of both the printer and the JetDirect. This will set the JetDirect to use DHCP so it can get an in-range IP from your network. Print the self test page and see if it says the JetDirect is installed.
Progress! The IP address and gateway on the printer self test page are 0.0.0.0 now.

hp-setup -i 192.168.1.1

iptables -F
hp-setup -i 192.168.1.1
service iptables restart
.. Alas, both got the same response as before.

I remember the router password!
__________________
biostar a870u3 / amd athlonII x2 regor250 3.0ghz am3 65w / gskill sniper 2x4gb ddr3 1333
evga 512-P3-1311-KR geforce 210 32bit ddr3 pci express hdcp video card / fedora 16 64 lxde
nvidia onboard / seagate barracuda 7200 250gb 3gbs hard drive / hannsg hw192 / earthwatts psu

Last edited by johnlvs2run; 9th May 2012 at 04:16 AM.
Reply With Quote
  #13  
Old 9th May 2012, 04:37 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,481
linuxchrome
Re: problems connecting laserjet 4M printer with ethernet

Yeah, it might take a little while to get an address from the router. It will have to be connected to the router with an ethernet cable. At that point, it should be able to get an address--it will start with that 0.0.0.0 but in a few minutes should get something.

If not, and it has an LCD panel, then you might be able to set the address. Just choose 192.168.1. <something not being shown on the router's list> with a netmask of 255.255.255.0 and a gateway of 192.168.1.1

Don't worry about the iptables stuff yet--first see if that printer gets a 192.168.1.something address, then try the hp-setup -i <printer-address>
Reply With Quote
  #14  
Old 9th May 2012, 05:33 AM
johnlvs2run Offline
Registered User
 
Join Date: Jul 2008
Location: western u.s.
Posts: 147
linuxfirefox
Re: problems connecting laserjet 4M printer with ethernet

Quote:
Originally Posted by smr54 View Post
Yeah, it might take a little while to get an address from the router. It will have to be connected to the router with an ethernet cable. At that point, it should be able to get an address--it will start with that 0.0.0.0 but in a few minutes should get something.
Oh yes the cable has been connected the whole time.

How will the printer get the address? Just by leaving the printer on?

Quote:
If not, and it has an LCD panel, then you might be able to set the address. Just choose 192.168.1. <something not being shown on the router's list> with a netmask of 255.255.255.0 and a gateway of 192.168.1.1
Yes the printer does have an lcd panel.
The manual doesn't have anything about setting an IP address but I will check on this more.
__________________
biostar a870u3 / amd athlonII x2 regor250 3.0ghz am3 65w / gskill sniper 2x4gb ddr3 1333
evga 512-P3-1311-KR geforce 210 32bit ddr3 pci express hdcp video card / fedora 16 64 lxde
nvidia onboard / seagate barracuda 7200 250gb 3gbs hard drive / hannsg hw192 / earthwatts psu
Reply With Quote
  #15  
Old 9th May 2012, 05:46 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,481
linuxchrome
Re: problems connecting laserjet 4M printer with ethernet

If the printer is connected to router by an ethernet cable, now that it's been set to 0.0.0.0 I would try shutting off the printer, then turning it on again--making sure it's still connected by cable to the router. Then, I'd wait a little while--shouldn't take more than a few minutes, but wait 10 minutes or so, and print a configuration page to see if there's an address showing.

If not, then I'd try to set it through the printer's LCD panel.
Reply With Quote
Reply

Tags
ethernet printing, laserjet, laserjet printer

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] F15: HP LaserJet 5MP printer not connected taytong888 Hardware & Laptops 2 2nd May 2011 09:40 PM
HP Printer LaserJet 1020 narendrarough Using Fedora 2 9th December 2009 07:17 AM
HP 1018 Laserjet Printer jon4you Hardware & Laptops 6 17th July 2009 12:18 PM
hp-laserjet 2420 printer on F10 napi Hardware & Laptops 5 1st May 2009 06:01 AM
P2015d (hp Laserjet printer) lsropia Hardware & Laptops 3 26th March 2007 09:57 AM


Current GMT-time: 09:23 (Thursday, 31-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat