nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

set up hostname in ubuntu linux

This is a discussion on set up hostname in ubuntu linux within the Linux software forums, part of the Linux Getting Started category; In redhat I can set hostname editing /etc/sysconfig/network and setting HOSTNAME=myserver.com I'm not able to find the same file under ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 12-20-2006, 01:05 PM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 151
Rep Power: 4
raj is on a distinguished road
Default set up hostname in ubuntu linux

In redhat I can set hostname editing /etc/sysconfig/network and setting HOSTNAME=myserver.com

I'm not able to find the same file under ubuntu linux

Please help
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-20-2006, 03:51 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

File is /etc/hostname
Code:
sudo  vi /etc/hostname
sudo  nano /etc/hostname
HOSTNAME=yourhostname

Reboot system
Code:
sudo reboot
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Installing Firefox in Ubuntu linux raj Ubuntu / Debian 0 04-22-2008 03:04 AM
Ubuntu Linux folder permissions myfoot Ubuntu / Debian 1 12-01-2007 09:03 PM
Ubuntu Linux add a user to group sweta Ubuntu / Debian 0 11-01-2007 03:41 AM
Ubuntu Linux runlevel and its meaning Linux software 1 07-21-2006 12:28 AM
Start x server ubuntu linux raj Linux software 2 07-14-2006 06:01 PM


All times are GMT +5.5. The time now is 08:41 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36