Koozali.org: home of the SME Server

Recommended way to change my hostname?

Offline nunogt

  • *
  • 6
  • +0/-0
Recommended way to change my hostname?
« on: October 18, 2007, 08:52:58 PM »
Hey guys,

What would be the recommended way to change the hostname of an already configured machine? I've looked into the templates system and it seems to get the var SystemName from the database, but I'm not sure how to change it and if additional configuration is required.

Thanks in advance :)
« Last Edit: October 18, 2007, 08:57:07 PM by nunogt »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Recommended way to change my hostname?
« Reply #1 on: October 18, 2007, 09:14:01 PM »
Hey guys,

What would be the recommended way to change the hostname of an already configured machine? I've looked into the templates system and it seems to get the var SystemName from the database, but I'm not sure how to change it and if additional configuration is required.

Thanks in advance :)
I guess the best way is to log in on the terminal as admin and reconfigure your system.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline nunogt

  • *
  • 6
  • +0/-0
Re: Recommended way to change my hostname?
« Reply #2 on: October 18, 2007, 09:18:47 PM »
I guess the best way is to log in on the terminal as admin and reconfigure your system.
Thanks, but how would I do that? And how exactly does it work? I can't afford losing user accounts, custom templates, global settings, etc.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Recommended way to change my hostname?
« Reply #3 on: October 18, 2007, 09:26:56 PM »
Thanks, but how would I do that? And how exactly does it work? I can't afford losing user accounts, custom templates, global settings, etc.
If you are really afraid of losing data, you need to make a backup of your server first. But I would take the bet... perhaps if you are running it as a domain controller you might need to unregister clients to join them later but I do not know this for sure.

To login as admin as a terminal you can either sit in front of the computer or use SSH to connect to the server. The reconfiguration screens look like the onces you had at setup, if you just modify the hostname and other settings you will probably not loose any data.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline nunogt

  • *
  • 6
  • +0/-0
Re: Recommended way to change my hostname?
« Reply #4 on: October 18, 2007, 11:10:15 PM »
If you are really afraid of losing data, you need to make a backup of your server first. But I would take the bet... perhaps if you are running it as a domain controller you might need to unregister clients to join them later but I do not know this for sure.

To login as admin as a terminal you can either sit in front of the computer or use SSH to connect to the server. The reconfiguration screens look like the onces you had at setup, if you just modify the hostname and other settings you will probably not loose any data.

I don't recall being able to change the hostname from the reconfiguration tool, but I'm not 100% sure. Are you sure it's possible?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Recommended way to change my hostname?
« Reply #5 on: October 18, 2007, 11:11:38 PM »
I don't recall being able to change the hostname from the reconfiguration tool, but I'm not 100% sure. Are you sure it's possible?
Nope... but my guess was that if it should be anywhere it should be there.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Recommended way to change my hostname?
« Reply #6 on: October 18, 2007, 11:14:26 PM »
Are you talking about changing your "Primary domain name" or "system name" ? This is the option you use when first setting up via console.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline nunogt

  • *
  • 6
  • +0/-0
Re: Recommended way to change my hostname?
« Reply #7 on: October 19, 2007, 01:03:12 AM »
Are you talking about changing your "Primary domain name" or "system name" ? This is the option you use when first setting up via console.

I'm talking about the system name you input during installation, along with your domain, ip address, server type, etc...
This: http://wiki.contribs.org/images/d/d3/Select_system_name.png

I need to change it without losing my other settings, customized templates, etc... Any ideas?
« Last Edit: October 19, 2007, 01:07:08 AM by nunogt »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Recommended way to change my hostname?
« Reply #8 on: October 19, 2007, 08:10:04 AM »
I don't recall being able to change the hostname from the reconfiguration tool, but I'm not 100% sure. Are you sure it's possible?
Nope... but my guess was that if it should be anywhere it should be there.
I have checked it and in screen two of the reconfigure 'wizard' you can type in the system name.

Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Recommended way to change my hostname?
« Reply #9 on: October 19, 2007, 09:36:33 AM »
I changed my system a couple of weeks ago with no adverse effects. I just logged in as admin, selected, server configuration and worked through to the end.

Originally rubbish.mydomain.com  finished as rubbish.mydomain.local.

Good practic would dictate a backup just in case. I didnt need it and the whole process took less than 5 minutes. User accounts, ibays etc were unchanged and undamaged.

HTH
Peter
...

Offline nunogt

  • *
  • 6
  • +0/-0
Re: Recommended way to change my hostname?
« Reply #10 on: October 19, 2007, 10:25:27 AM »
How is that configuration screen launched? I thought it was from the web inteface | reboot or shutdown | reconfigure , but apparently we're not talking about the same thing. All the web interface reconfiguration does is reboot the system, reload a few tables into mysql and regenerate the configuration files. It won't let me change any settings.
« Last Edit: October 19, 2007, 11:02:32 AM by nunogt »

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Recommended way to change my hostname?
« Reply #11 on: October 19, 2007, 04:34:40 PM »
How is that configuration screen launched? I thought it was from the web inteface | reboot or shutdown | reconfigure , but apparently we're not talking about the same thing. All the web interface reconfiguration does is reboot the system, reload a few tables into mysql and regenerate the configuration files. It won't let me change any settings.
No the Server Console (ie. the screen attached to your server, or if you don't have one attached via SSH).

Trevor B

Offline nunogt

  • *
  • 6
  • +0/-0
Re: Recommended way to change my hostname?
« Reply #12 on: October 20, 2007, 02:02:29 AM »
No the Server Console (ie. the screen attached to your server, or if you don't have one attached via SSH).

Trevor B

Oh, I see. I was logging in as "root". According to the documentation, only the "admin" login will give me access to the server console. Will try it Monday.

Thanks everyone for your precious help.

Offline kruhm

  • *
  • 680
  • +0/-0
Re: Recommended way to change my hostname?
« Reply #13 on: October 22, 2007, 05:40:55 AM »
"Oh, I see. I was logging in as "root"."

This will work. Just type: console (after root login).

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Recommended way to change my hostname?
« Reply #14 on: October 22, 2007, 05:50:41 AM »
Well maybe it will but what a long winded way.....
« Last Edit: October 22, 2007, 05:52:32 AM by p-jones »
...