LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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, 02: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, 03: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, 03: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, 04:17 AM   #5
bglnelissen
Member
 
Registered: Feb 2004
Location: Utrecht Holland
Distribution: MacOS, Debian, Raspbian
Posts: 76

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

check with:

# hostname


(nice and fast)
 
Old 10-19-2004, 10:15 AM   #6
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
"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 10:22 AM.
 
Old 10-19-2004, 02:35 PM   #7
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
I have an /etc/hostname file on my box, which contains my hostname
 
Old 10-19-2004, 03: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:43 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
Open Source Consulting | Domain Registration