LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 09-28-2004, 03:33 PM   #1
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
how do i change my host name?


how do i change my host name?
 
Old 09-28-2004, 03:49 PM   #2
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
edit /etc/sysconfig/network And change the HOSTNAME to whatever you want
read the comments(#).
Just add the new name in the 127.0.0.1 line ## dont delete the other names!!!!!
 
Old 09-28-2004, 04:09 PM   #3
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
One trick you can use to search for info on such basic operations as setting the hostname is to use the man command with a keyword option. "man -k hostname" will give you a list of manpages relevant to the keyword "hostname".
 
Old 09-28-2004, 04:49 PM   #4
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Electronkz
edit /etc/sysconfig/network
that file doesnt exist on debian

however i did find the hosts and hostname file in /etc and edited those and rebooted. hostname changed

thanks Dead Parrot for the pointer on the man pages. i really need to read a tutorial on using man pages sometime. i know they are there, but dont know how to use them effeciently.
 
Old 10-19-2004, 05:17 AM   #5
bglnelissen
Member
 
Registered: Feb 2004
Location: Utrecht Holland
Distribution: Fedora, Debian, Mandrake, OSX, OpenBSD
Posts: 76

Rep: Reputation: 15
# hostname 'the hostname you want'

check with:

# hostname


(nice and fast)
 
Old 10-19-2004, 11:15 AM   #6
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 51
"however i did find the hosts and hostname file in /etc and edited those and rebooted. hostname changed"

Please give the file name so the rest of us know how you did it. I looked superficially at the /etc, and did not see any host or hostname entry. This way everybody will benefit. Thanks

Edit: for example,

/etc/hostname

Last edited by macondo; 10-19-2004 at 11:22 AM.
 
Old 10-19-2004, 03:35 PM   #7
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
I have an /etc/hostname file on my box, which contains my hostname
 
Old 10-19-2004, 04:04 PM   #8
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by macondo
Please give the file name so the rest of us know how you did it. I looked superficially at the /etc, and did not see any host or hostname entry. This way everybody will benefit. Thanks

Edit: for example,

/etc/hostname
i did, i said "however i did find the hosts and hostname file in /etc and edited those and rebooted. hostname changed"
the two files i found are called hosts and hostname in the /etc directory
 
  


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
How do I change Host Name intels_ss Linux - Newbie 4 07-25-2005 08:26 PM
how to change host name? gobi_dgm Linux - Newbie 6 05-01-2005 01:34 AM
Host Name Change ? apocolpse Linux - Newbie 3 04-12-2005 12:27 PM
How can I change the host name? Kramer Linux - General 7 01-15-2004 09:25 AM
how do you change the host name? Culbert Linux - Software 3 03-15-2003 01:09 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration