Red HatThis forum is for the discussion of Red Hat Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having a strange problem, I am trying to set the hostname of my server from the terminal after leaving an xwindows session. I tried during the gnome (using redhat 9 by the way) to set it from a command line using hostname command but it didn't work. I then init 3'ed to a terminal and directly after I set the hostname command it reflects the new setting, but after I reset the server it goes back to the old name. I am obviously logged in as root while doing this, but to no avail.
I suspect setting the hoatname at the command line does not write it to any file. Off hand, I don't know the name of the file.
Not long after installing Linux, I installed Webmin. It comes with most distros. Once installed you access Webmin form any machine (including you own machine) on you network through a web browser. It is password protected, and you can control what each user you create can access.
You can set the hostname for your own machine through Webmin, and update the hosts file. It makes administration a lot easier. You do not have to find the files that contain the information. It is a good way to configure lots of other stuff.
I didn't want to have to install webadmin because my ultimate goal is to do everything from a terminal, so thanks to aeolus that directory I have a feeling is going to be mighty helpful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.