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!
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 just installed redhat 9.0 hoping it would fix a networking issue I had with 8.0.
With the 9.0 installation, i didn't notice any screen to enter my computers name, or add users for that matter. The latter doesn't matter, I can do that manually, but what I'd really like to be able to rename my computer.
Right now its set to some mess like x1-6-00-f4-2c-62-8f or some nonsense.
Any help would be appreciated. Thanks
James Meyer
aka Aldyn
P.S. Its running a Server install, so there is no X-windows or anything graphical. So please only post solutions that will work from the command line.
Create a file /etc/hostname and put one word in it, your hostname and a newline (enter key pressed after the word).
You may have to add it to your /etc/hosts file as well. Here is mine for an example:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 uilleann localhost.localdomain localhost
192.168.0.1 uilleann
192.168.0.2 tinwhistle
192.168.0.3 bones
Check out the 'nodename' command. I don't know if you want to change that value though. Not sure what it is exactly. If your just worried about the prompt then change your PS1 value:
No, still no luck, but what it did do it prevent MySQL and HTTPD from initializing on boot up.
Crashed_Again:
I can't seem to find the nodename command. And its not just the prompt I'm worried about. The computer name comes up in a variety of actions and commands. And that long string is large nuisance compared to a shorter name.
I'm going to try a reinstall and see if perhaps I just missed a screen or something.
Bah! Giving up so soon? If you 'man hostname' you will see the nodename command in there. If you were feeling adventurous you could grep for that string:
grep -R x1-6-00-40-f402c06208f /etc/*
It may take a little bit but I'm sure you'd find what you are looking for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.