Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 09-05-2011, 05:30 AM   #1
LQ Newbie
Registered: Aug 2011
Location: jammu india
Distribution: ubuntu 10.04
Posts: 20

Rep: Reputation: Disabled
to configure host name in ubuntu 10.04

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

Last edited by kapil; 09-05-2011 at 11:53 PM.
Old 09-05-2011, 05:43 AM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

sudo hostname your_new_hostname
Will change the hostname till the next reboot
To make it permanent:
Edit /etc/hostname
sudo vi /etc/hostname
change the hostname to your_new_hostname
Change th hostname in
Code: your_new_hostname
Kind regards
0 members found this post helpful.
Old 09-07-2011, 12:21 AM   #3
LQ Newbie
Registered: Aug 2011
Location: jammu india
Distribution: ubuntu 10.04
Posts: 20

Original Poster
Rep: Reputation: Disabled
thnx for this.........actually i m trying to switch to desktop mode
bt i m unable to do so

Last edited by kapil; 09-07-2011 at 12:23 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
host=? vs. build=? in ./configure zvivered Linux - Embedded & Single-board computer 2 07-22-2009 12:22 PM
dpkg-buildpackage configure: error: can only configure for one host and one target at donnied Debian 0 05-26-2008 07:08 PM
How to Configure SLES 10 To Host Podcast nick1967 Linux - Server 0 01-19-2007 08:46 PM
how to configure sendmail as smart host cksoo Linux - Enterprise 2 01-16-2006 01:43 PM
How to configure Host-to-Host IPSec (Free SWAN) gpagedar Linux - Security 2 10-18-2003 05:22 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration