LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-05-2011, 06:30 AM   #1
kapil
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-06-2011 at 12:53 AM.
 
Old 09-05-2011, 06:43 AM   #2
repo
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

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
 
0 members found this post helpful.
Old 09-07-2011, 01:21 AM   #3
kapil
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 01:23 AM.
 
  


Reply


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 01:22 PM
dpkg-buildpackage configure: error: can only configure for one host and one target at donnied Debian 0 05-26-2008 08:08 PM
How to Configure SLES 10 To Host Podcast nick1967 Linux - Server 0 01-19-2007 09:46 PM
how to configure sendmail as smart host cksoo Linux - Enterprise 2 01-16-2006 02:43 PM
How to configure Host-to-Host IPSec (Free SWAN) gpagedar Linux - Security 2 10-18-2003 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 AM.

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