Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 0
localhost problem

My /etc/hosts has 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 localhost

I get the same bootup message.

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

ifconfig lo

rout add -host 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.


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

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

wil snyder
Old 01-11-2002, 06:13 AM   #3
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?

I read your post and may have a similar problem.
How did you solve yours?
Old 04-10-2002, 08: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:<tab>localhost.localdomain<tab>localhost

Rather than the old way required by some previous versions:<tab>localhost.localdomain<tab>localhost

The same holds true for other entries where you have an alias such as:<tab><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 07:42 AM.


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

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration