Author Topic: change "localhost" to network machine name--how? SOLVED  (Read 241 times)

Offline dougmack

  • Hero Member
  • *****
  • Posts: 981
change "localhost" to network machine name--how? SOLVED
« on: January 19, 2013, 01:20:06 AM »
I know I've been here before, but my search can't find the answer, so I'll have to post again--sorry.
I have the problem since there was a machine failure, and I had to reload the system.
When I open a terminal, I see  [doug@localhost ~]$   and I want to change "localhost" to "Dell"
so how?

Thanx again!  doug
« Last Edit: January 19, 2013, 02:59:12 PM by dougmack »
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline trevatxtal

  • Full Member
  • ***
  • Posts: 72
    • The Home of Xtal
Re: change "localhost" to network machine name--how?
« Reply #1 on: January 19, 2013, 01:37:33 AM »
pclinuxos control centre (spanner and screw driver in a circle)
then host definitions
add 127.0.0.1 dell
I think that will work, it does for me.
Trev

Offline Martin Goose

  • Full Member
  • ***
  • Posts: 171
Re: change "localhost" to network machine name--how?
« Reply #2 on: January 19, 2013, 01:39:14 AM »
When I open a terminal, I see  [doug@localhost ~]$   and I want to change "localhost" to "Dell"
so how?

I change it when I set up a new network interface in the PCLOS Control Centre. I use a static IP and that dialogue has a text box for Host Name which I change.
--
Martin

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1924
  • Certified Windows Hater
For the whole world, you are someone.
For someone, you are the whole world.

Offline dougmack

  • Hero Member
  • *****
  • Posts: 981
Re: change "localhost" to network machine name--how?
« Reply #4 on: January 19, 2013, 02:58:39 PM »
I thank you folks.  On reflection, I figured out how to find the original post and answer. The topic was "Change hostname PCLinuxOS" on June 21, 2011, 6:56:59 PM.
Texstar answered, and mentioned  two files to change: /etc/sysconfig/network and /etc/hosts. 

Someone also mentioned that you shouldn't use uppercase, but I did anyway--I'll see if that creates a problem.

Thanx again--doug
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley