LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   to configure host name in ubuntu 10.04 (https://www.linuxquestions.org/questions/linux-newbie-8/to-configure-host-name-in-ubuntu-10-04-a-901199/)

kapil 09-05-2011 05:30 AM

to configure host name in ubuntu 10.04
 
hello everyone plz help me to configure the hostname of ubuntu 10.04 in console mode

repo 09-05-2011 05:43 AM

Welcome to LQ

Code:

sudo hostname your_new_hostname
Will change the hostname till the next reboot
To make it permanent:
Edit /etc/hostname
Code:

sudo vi /etc/hostname
change the hostname to your_new_hostname
Change th hostname in
Code:

/etc/hosts
Code:

127.0.0.1 your_new_hostname
Kind regards

kapil 09-07-2011 12:21 AM

thnx for this.........actually i m trying to switch to desktop mode
bt i m unable to do so


All times are GMT -5. The time now is 05:05 PM.