Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have RH9. I used the Network Configuration dialog to change the hostname from localhost to <newlocalhost>. It works, but now my computer boots *really* slowly--it gets to "starting sendmail" and takes about ten minutes, and then gets to "starting sm-client" and takes another ten minutes, and then there's another long pause just before it draws the login screen, and when I open any sort of window it too takes forever to load.
I'm assuming there's a config file or two that I need to change? /etc/hosts perhaps? And what do I put in it?
Below are a couple of man pages that should help you out. Leave the loopback line in the hosts file alone. It is used by some applications during normal operation. Therefore, you always have to configure it, regardless of whether your machine is attached to a network or not.
Where X.X.X.X is the actual IP of your machine, etc.
If it still starts up slowly, could be other problems but I'd try that first.
After following your suggestion,in local machine(PC 1),everything seems ok,while in other machine(PC 2) i still can't visit the machine(PC 1) through hostname,it displays"unknown hostname",only after rebooting PC 1,can I visit PC 1 from PC 2 through pc1's hostname.
I gather that PC1 and PC2 are part of your own local network. What I've done is make entries for each PC in each /etc/hosts on all machines in the network. Haven't had any problems since then. I added them to the hosts file on my WINNT box as well. Each machine has no problem connecting to another using the alias or ip address. Here is a sample very much like what is on the hosts man page.
Originally posted by wmakowski I gather that PC1 and PC2 are part of your own local network. What I've done is make entries for each PC in each /etc/hosts on all machines in the network. Haven't had any problems since then. I added them to the hosts file on my WINNT box as well. Each machine has no problem connecting to another using the alias or ip address. Here is a sample very much like what is on the hosts man page.
Normaly, DNS would be in charge of resolving name. When I change hostname/ip,how could I notify DNS and make it aware of the changes?Should I install a DNS client here?
my /etc/resolv.conf is:
Last edited by simon_yang; 06-02-2004 at 09:48 PM.