Author Topic: Computer Name and home network  (Read 2186 times)

0 Members and 1 Guest are viewing this topic.

Offline CockneyMackem

  • Jr. Member
  • **
  • Posts: 33
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Computer Name and home network
« on: October 09, 2010, 02:05:39 pm »
Hi Again.
Have tried the Linux mint live DVD for a couple of days and loved it.
Last night I took the plunge and installed it onto two PC's, but gave them both the same name by mistake. Knew how to change it in windows, but at a loss as how to change it in Mint. Have searched the forum to see if someone else has had this problem with no luck.
The reason for this change is I want to install it on two more PC's and create a small home network.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Computer Name and home network
« Reply #1 on: October 09, 2010, 02:44:54 pm »
1. Open a terminal window.

2. Input the following command and hit Enter:
Code: [Select]
gksudo gedit /etc/hostname

3. When prompted, enter the administrator password and hit Enter.

4. The hostname file will open, displaying the current computer name. Replace the current computer name with the desired new name.



5. Click Save, and close the window.

6. Back in the terminal
Code: [Select]
gksudo gedit /etc/hosts
when it opens, look for the line similar to
Quote
127.0.1.1     Oldname




and change it to
Quote
127.0.1.1     Newname


7. Click Save.

8. Close all open windows and restart your system.

After your system has restarted, it will have the new computer name.

9. To verify the change open a terminal, then type:
Code: [Select]
hostname
to view your new computer name.



Done :)
« Last Edit: October 10, 2010, 06:02:20 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline CockneyMackem

  • Jr. Member
  • **
  • Posts: 33
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Computer Name and home network
« Reply #2 on: October 09, 2010, 03:08:07 pm »
Once again thanks for the prompt reply.

Will try later, my son is on the other linux pc and is the one that needs the name change. At the moment he is getting all his music up to date, and I cant get near his machine.

Cockney Mack!

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Computer Name and home network
« Reply #3 on: October 09, 2010, 03:10:19 pm »
:) I quite often have similar problems with my kids.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline CockneyMackem

  • Jr. Member
  • **
  • Posts: 33
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Computer Name and home network
« Reply #4 on: October 09, 2010, 08:21:38 pm »
Trouble is he not a kid any more, just acts like one. ;D

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal