where is the file in which i can perm change my hostname
I need to know the file in mandrake 10 thats allows me to change my hostname forever.
I asked this question a couple of days ago but i cant seem to find the thread, and i know its in the network file but i cant remember what directory thats in. Could someone tell me ? |
/etc/sysconfig/network
|
Here is your thread http://www.linuxquestions.org/questi...hange+hostname
This is how you do it in Fedora, It may be similar in other SYS-V linux. First edit: /etc/sysconfig/network and change the HOSTNAME to whatever you want. Now edit: /etc/hosts and add the new name in the 127.0.0.1 line. |
run the command as root
hostname "name-of-host-you-want-to-use" |
man hostname <<----- answers his question
|
Quote:
|
thanks for all help u guys I loving my linux box!!!!
|
Putting your hostname in /etc/hosts against 127.0.0.1 means that you can refer to your computer using 'mybigcomputer' instead of 127.0.0.1, and your computer can always find itself.
|
All times are GMT -5. The time now is 09:05 AM. |