Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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've recently installed Fedora Core 1 and I'm trying to change the hostname. For this example, let's say I want to call my computer 'newmachinename'. I found that by running 'hostname' command like so:
would change the hostname as it's listed at
and would stay changed until I reboot, from which time it would go back to 'localhost'.
Then, I did the following which remained stable on reboot:
-changed /etc/sysconfig/network HOSTNAME value to newmachinename.
-added 'newmachinename' to /etc/hosts just after 'localhost' and on the same line.
I've rebooted several times and the 'newmachinename' persists.
Now, I have a different problem in that I'm trying to get my wireless card to work (topic for a different post). Anyway, upon inserting the wireless card, my laptop locks up completely and the only thing to do is to flip the on/off switch. When it finally boots up again, the machine has returned to its default name of 'localhost'. Also, when rebooting, I see a message stating that some recovery is going on. So, I think the hostname configuration is being backed up somewhere and rewritten on an unclean reboot.
Is there a more robust mechanism for setting the hostname so that it remains stable?
One possible catch is that I need to use dhcp and so I don't have a fixed IP address.