LinuxQuestions.org
Help answer threads with 0 replies.
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-13-2003, 06:14 AM   #1
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Rep: Reputation: 15
Talking Rename my pc ?


Hi All,
I am using 2 pc's in my LAN and I stupidly gave the same name to both of them.
Into my mandrake 9.1 distro, is it possible to rename my pc ?
If not, is there any workaround ?
Tks in advance !
Pierre
 
Old 09-13-2003, 06:31 AM   #2
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Original Poster
Rep: Reputation: 15
Sorry but i've managed to find a solution going into LinuxConf , Then I've selected the Settings tab, then network and finally PC NAME.

Just to know... is there another way to do it ?
 
Old 09-13-2003, 06:37 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
do yourself a huge favour and remove linuxconf your system, it'll break your system sooner or later...

you can change your hostname any time just by using the "hostname" command
 
Old 09-13-2003, 06:39 AM   #4
mana
LQ Newbie
 
Registered: Sep 2003
Location: Glasgow
Distribution: Mandrake 9.1
Posts: 5

Rep: Reputation: 0
I think what you have to do is:

Go on a terminal and do an su
then you will the file /etc/hosts

In this file you should have:
127.0.0.1 localhost
192.168.0.1 NAME

where NAME=the name you wanna give to the machine

then do a
/etc/rc.d/init.d/network restart (I am not sure if you have to reboot or this command will change it for you? I am newbie as well )

but u can check your host name using the command:
hostname

Simple
Good luck
 
Old 09-13-2003, 06:43 AM   #5
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Original Poster
Rep: Reputation: 15
Thanks a lot acid_kewpie and mana !
LinuxConf is now deinstalled from my renamed ( ) pc but why is it so risky to use it ?
 
Old 09-13-2003, 09:24 AM   #6
Winno
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Fedora Core 3 / Mandrake 10.1 / Gentoo 2005.0
Posts: 100

Rep: Reputation: 15
Thanks too. I gave my machine a better name than the plain "localhost".
 
Old 09-13-2003, 09:28 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
it's risky because it's not very good.. doesn't always write / edit files correctly... it was officially dropped by most distros a couple of years back.
 
  


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
rename Fedora 3 hjl Linux - Newbie 1 03-23-2005 07:46 AM
plz....rename him alaios Linux - General 1 12-06-2003 10:41 AM
rename workgroup nwilcox Linux - Networking 2 09-14-2003 01:31 AM
rename to lowercase Jalalabee Linux - Newbie 11 09-10-2003 12:44 PM
can you rename rpm's ? xconspirisist Linux - Software 2 09-09-2003 12:33 PM


All times are GMT -5. The time now is 10:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration