LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-04-2005, 10:37 PM   #1
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Rep: Reputation: 15
where is the file in which i can perm change my hostname


I need to know the file in mandrake 10 thats allows me to change my hostname forever.
I asked this question a couple of days ago but i cant seem to find the thread, and i know its in the network file but i cant remember what directory thats in.

Could someone tell me ?
 
Old 02-04-2005, 11:18 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,341

Rep: Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146
/etc/sysconfig/network
 
Old 02-04-2005, 11:23 PM   #3
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
Here is your thread http://www.linuxquestions.org/questi...hange+hostname


This is how you do it in Fedora, It may be similar in other SYS-V linux.
First edit: /etc/sysconfig/network and change the HOSTNAME to whatever you want. Now edit: /etc/hosts and add the new name in the 127.0.0.1 line.
 
Old 02-05-2005, 02:25 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
run the command as root

hostname "name-of-host-you-want-to-use"
 
Old 02-05-2005, 03:37 AM   #5
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
man hostname <<----- answers his question
 
Old 02-05-2005, 02:28 PM   #6
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Electronkz
Here is your thread http://www.linuxquestions.org/questi...hange+hostname


This is how you do it in Fedora, It may be similar in other SYS-V linux.
First edit: /etc/sysconfig/network and change the HOSTNAME to whatever you want. Now edit: /etc/hosts and add the new name in the 127.0.0.1 line.
I edited the etc/sys-config/network file and everything is doin fine, but i have a question ? What would be the purpose of the etc/hosts file being altered?
 
Old 02-05-2005, 04:01 PM   #7
hirts123
Member
 
Registered: Jan 2005
Location: U.S.A
Distribution: Slackware, Windows
Posts: 84

Original Poster
Rep: Reputation: 15
thanks for all help u guys I loving my linux box!!!!
 
Old 02-05-2005, 04:10 PM   #8
nafan
Member
 
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172

Rep: Reputation: 30
Putting your hostname in /etc/hosts against 127.0.0.1 means that you can refer to your computer using 'mybigcomputer' instead of 127.0.0.1, and your computer can always find itself.
 
  


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 you change your Hostname? JGplt3095 Linux - Newbie 2 09-28-2005 03:02 PM
How to change hostname oldoldcat Linux - General 14 02-06-2004 12:48 AM
hostname change campo Linux - Networking 9 02-06-2003 04:41 PM
file perm, chgrp, chmod, and umask Martini Linux - Newbie 2 08-06-2002 09:04 PM
find / \( -perm -0200 -o -perm -04000 \) -ls. How to remove the bit ForumKid Linux - Security 3 01-16-2002 12:36 PM

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

All times are GMT -5. The time now is 12:34 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