LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-24-2001, 10:38 AM   #1
wilcsnyder
LQ Newbie
 
Registered: Dec 2001
Location: Guizhou, China
Distribution: rh
Posts: 13

Rep: Reputation: 0
localhost problem


My /etc/hosts has

127.0.0.1 localhost.localdomain localhost



When lpd starts on bootup I get:

localho lpd: 2001-12-24-21:44:16.193 Get_local_host: hostname 'localho' bad



If I change hosts to read

127.0.0.1 localhost

I get the same bootup message.



I tried setting up the loopback interface per the Net howto, doing

ifconfig lo 127.0.0.1

rout add -host 127.0.0.1 lo

but it doesn't seem to make a difference.



As I mentioned in an earlier post, when I try to print with lpr I get:



Status Information:

sending job 'ws@localhost+577' to bjc80@localhost

connecting to 'localhost', attempt 1

cannot open connection to localhost - Network is unreachable

Make sure LPD server is running on the server



Also, ppp works fine, but when starting up it gives the message:

_IceTransSocketUNIXConnect: Cannot connect to non-local host localho

Session management error: Could not open network socket



I've been reading what I can find to figure this out, but I really don't understand what's going on, and I can't print. That's critical!



Thanks to anyone who can help.



cheers,

wil snyder
 
Old 12-26-2001, 11:21 AM   #2
wilcsnyder
LQ Newbie
 
Registered: Dec 2001
Location: Guizhou, China
Distribution: rh
Posts: 13

Original Poster
Rep: Reputation: 0
Never mind, I figured it out.

cheers,
wil snyder
 
Old 01-11-2002, 07:13 AM   #3
Bernhard
LQ Newbie
 
Registered: Jan 2002
Location: Bielefeld/Germany
Distribution: SuSE 7.3 German
Posts: 26

Rep: Reputation: 15
How did you solve your lpd-Problem?

Hello,
I read your post and may have a similar problem.
How did you solve yours?
 
Old 04-10-2002, 09:52 PM   #4
Mike Sheets
LQ Newbie
 
Registered: Apr 2002
Posts: 1

Rep: Reputation: 0
bad hostname with lpr/samba

What Will opted to not reply was that newer versions of Redhat and I assume others using the LPRng package may need to have the /etc/hosts file formatted as:

127.0.0.1<tab>localhost.localdomain<tab>localhost

Rather than the old way required by some previous versions:

127.0.0.1<tab>localhost.localdomain
127.0.0.1<tab>localhost

The same holds true for other entries where you have an alias such as:

192.168.1.1<tab>fs1.mydomain.com<tab>fs1

(replace <tab> with actual tab char)

Also... VERY IMPORTANT! The /etc/hosts file needs 744 permissions so that services like lpd can read it.

I found this out the hard way... one of those "it could take 5 minutes or it could take a week" problems where it isn't an obvious problem because it always worked before....

Hope this helps

Last edited by Mike Sheets; 04-19-2002 at 08:42 AM.
 
  


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
Telnet problem and localhost zillah Linux - Wireless Networking 6 06-07-2005 03:34 PM
localhost.localdomain problem abdul_zu Linux - Networking 6 03-15-2005 05:52 AM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 09:01 AM
fax - localhost problem d1l2w3 Linux - Software 0 12-15-2004 01:35 PM
Problem pinging localhost dsledge Linux - Networking 4 04-28-2002 03:53 PM


All times are GMT -5. The time now is 10:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration