LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2001, 10:33 PM   #1
philfighter
Member
 
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207

Rep: Reputation: 30
printer question


when i first installed the system (this am) i configured the printer with printtool and everything was fine.

later i installed apache and got IT going and now when i look at the printer on printtool or try to use it i get this message:

Error printing test page to queue lp


Error reason: Get_local_host: 'localhost' IP address not available!


What does all that mean and how do i fix it?

thx
 
Old 08-22-2001, 02:09 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
What changes did you make to get apache working?

Did you change your /etc/hosts file? Does it have a line like "127.0.0.1 localhost"?

Maybe you set up DNS and didn't include an A record for 127.0.0.1? No zone for reverse lookup of 0.0.127?

Can you ping 'localhost'?
 
Old 08-22-2001, 03:02 PM   #3
philfighter
Member
 
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207

Original Poster
Rep: Reputation: 30
got it fig'd out maybe

ok... i got it to work... this will be for any of you checking this thread out...

i opened /etc/hosts and i rembered that i had changed the default to the name i wanted... so what i needed to do was insert:

127.0.0.1 host.localhost.domain localhost
<and>
127.0.0.2 name.whatever.domain name

have BOTH of these in this file and in this way you can access (read only) your server by either name and see it as a public user would...

thnx for the help
 
Old 10-12-2001, 04:41 PM   #4
fmadero
LQ Newbie
 
Registered: Oct 2001
Location: houston,tx
Posts: 3

Rep: Reputation: 0
Figured it out

I was haveing the same problem took me like 30min of looking on google for the answer i put the error message into googles search field and wala got tons of info to search thru...(thats my trick to find answers to problems)...anyways
getting this error message

Starting lpd: 2001-10-12-15:33:24.773 andrea1 Get_local_host: 'localhost' IP address not available!

fix it by going to /etc/hosts and make sure it has this line
127.0.0.1 localhost.localdomain localhost

so for ex. my /etc/hosts file look like so

192.168.0.3 andrea1.cheetah.org andrea1
192.168.0.3 localhost.localdomain
192.168.0.1 router1.cheetah.org router1
127.0.0.1 localhost.localdomain localhost

see 127.0.0.1 is loopback adress if its not there in this file you will get that error above

after the corrections you have made to your /etc/hosts file try to see if the corrections helped by doing this command
[root@andrea1 /root]# /etc/rc.d/init.d/lpd restart

lpd any do a Stopping lpd: [FAILED]
Starting lpd: [ OK ]

Successs see how starting lpd said ok...we are good to go rember to become root when editing the /etc/hosts and doing the command /etc/rc.d/init.d/lpd restart
 
  


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
Printer Question BajaNick Linux - Hardware 2 01-23-2004 10:12 PM
Printer Question? Gerardoj Linux - Hardware 2 10-07-2003 02:02 PM
printer question... kublador Linux - Newbie 0 02-25-2003 12:42 PM
Printer Question Sifvion Slackware 7 08-21-2002 12:55 PM
Question about printer... eddielins Linux - General 0 04-03-2001 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration