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.
Currently my login screen for gnome says "Welcome to [IP Address]". Well, frankly I think that looks awful so I was wondering if there was a way to change the IP Address part to say something else like "Universe" or "Merovinigian". Thanks for the help!!!
Distribution: Only used RH but have heard good things about Mandrake. BSD might be interesting.
Posts: 46
Rep:
i believe the previous response is essentially correct, but the file name on Fedora is /etc/hosts. leave the localhost line intact and add a new line following the format.
The /etc/hosts file resolves names to IP addresses.
Which file used to store the hostname AFAIK depends on the distribution but look at the /etc/sysconfig/network file. If it exists there will be an entry hostname= change that value as desired.
The command hostname will also change the hostname but does not save it.
OK, it turns out that I had to edit both the /etc/hosts amd /etc/sysconfig/network files. At first I simply edited the network file and the name shown on the login screen did change to Merovingian, but then when I loaded Gnome I got a warning that Gnome didn't have a network address for Merovingian so some programs may not function correctly. I had looked in the hosts file and seen that it looked like 127.0.0.1 was being assigned to localhost, so I just used the same format to assign 127.0.0.1 to Merovingian and everything seems to work now. Below are posts of these files. Please let me know if they look correct.
The /etc/hosts file:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost.localdomain Merovingian
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.