Page 1 of 1

Name change of computer

Posted: May 15th, 2012, 1:25 am
by Silvertop
Hello all ... great forum
I have been creating a server following the site's instructions and found it very easy ... even for an old pensioner like me :D
The server was created as Shedserver but after I got it going and installed a number of programs and got Samba up to allow all Windows machines to view and interact I realised that the name really doesn't suit long term.
Can someone please give me the clues to change it's name to Studio39, and if this is possible, will it reflect the change through all installed apps and protocols??

As a complete noob to Linux I will appreciate any assistance I can get.

John

Re: Name change of computer

Posted: May 15th, 2012, 8:20 am
by pete66
John,

2 files you need to change from memory:

Code: Select all

sudo vim /etc/hosts


Code: Select all

sudo vim /etc/hostname


Once you've made the changes power-down the server. Then reboot the router. Then power the server back up again. This will ensure the router picks up the change and broadcasts it.

good luck.

Pete.

Re: Name change of computer

Posted: May 16th, 2012, 5:47 am
by Silvertop
Thank you for your prompt reply, Pete.

Having opened both files I can see where the Shedserver name is but do not know what the next step is.
Am I just to change the name? and if so how do I save the file? or is the change done realtime?

Like I stated in my original post I am really new to this OS

Any help much appreciated

John

Re: Name change of computer

Posted: May 16th, 2012, 4:06 pm
by Abysmal Craig
Hi there

Once you have opened the file, press the insert key on your kyboard and navigate to the part of the file you want to change with your arrow keys.

Once finished press esc and enter :wq to save your changes :)

Re: Name change of computer

Posted: May 17th, 2012, 11:14 pm
by Silvertop
Thank you gentlemen.

all worked as required and the new name shows up on the network

many many thanks

Re: Name change of computer

Posted: May 20th, 2012, 2:01 pm
by Abysmal Craig
No problem we are all here to help

:)