?
Solved

Changing Computer Name

Posted on 2003-02-26
5
Medium Priority
?
204 Views
Last Modified: 2010-04-20
I set the computer (RH 8.0) up with the default host name and alias (localhost.localhostdomain & localhost).  Everything works fine.

I want to rename the computer p3linux.locahostdomain & p3 linux.  When I do this, the printer (lpd) fails "Get_local_host: 'p3linux' bad.

Any suggestions on how to get this to work.

R Race
0
Comment
Question by:rrace
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Expert Comment

by:BabuPrasanna
ID: 8031073
Here the localhost is not your computer name! Its a default loopback Host Name given to any system. You cannot change this localhost! instead add another alias with your name. Please leave the localhost name untouched! Since many applications will be using localhost rather than 127.0.0.1 for a local addressing.
Addressing localhost will give the application a list of IP addresses for the current system like,
127.0.0.1
192.34.42.1 - for eth0
168.44.62.81 - for eth1
etc...etc.. after calling gethostbyname() function!

Just try adding another aliasname in the next line. And try pinging using "ping <your name>". It should work fine.
0
 

Accepted Solution

by:
BabuPrasanna earned 150 total points
ID: 8031079
Here the localhost is not your computer name! Its a default loopback Host Name given to any system. You cannot change this localhost! instead add another alias with your name. Please leave the localhost name untouched! Since many applications will be using localhost rather than 127.0.0.1 for a local addressing.
Addressing localhost will give the application a list of IP addresses for the current system like,
127.0.0.1
192.34.42.1 - for eth0
168.44.62.81 - for eth1
etc...etc.. after calling gethostbyname() function!

Just try adding another aliasname in the next line. And try pinging using "ping <your name>". It should work fine.
0
 
LVL 1

Expert Comment

by:donnyr10
ID: 8033486
After you change the name
make sure /etc/hosts has the correct entry
the file is static and does NOT change automatically..

And also your /etc/sysconfig/network

Also Run the dmesg command (dmesg | more) and check the files in /var/log

You may also want to look at
/etc/lpd.perms (Permissions file)

This all should help you with the problem

Take Care
./Donny




0
 
LVL 1

Expert Comment

by:gbonne
ID: 8080441
So many conf files ... not always the same with all Linux distributions....

Try the easy way first, run this tool: linuxconf. That little jewel does all the conf files management for you.

Yours,
G.
0
 

Expert Comment

by:CleanupPing
ID: 9087846
rrace:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month11 days, 1 hour left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question