PDA

View Full Version : HOWTO change PC name



A. Jorge Garcia
06-28-2004, 03:52 PM
OK, in knoppix-installer theres a step where yougive your PC a name, right? Well say you messed up and gave two PCs the same name and want to fix that without redoing the whole install process. How do you go about that?

TIA,
AJG

eco2geek
06-28-2004, 07:40 PM
In Kanotix BH5, which is similar to a Debian-style install of Knoppix, the computer's name -- its "hostname" -- is set by the /etc/init.d/hostname.sh script, which is called in /etc/rcS.d. hostname.sh looks at /etc/hostname, a text file with one word in it, your computer's hostname.

So, you might try editing /etc/hostname. You'll probably also have to edit /etc/hosts.

A. Jorge Garcia
06-28-2004, 08:11 PM
Thanx, I knew there was some file like that, I just needed reminding!

Regards,
AJG

A. Jorge Garcia
07-03-2004, 06:22 PM
Thanx, eco, I tried that on one PC and all's well. I then tried it on another and it didn't work. That's odd....

Thanx,
AJG