PDA

View Full Version : server terminal question




brentg33
Jun 29, 2013, 09:53 PM
Hi all,

I had server for mountain lion installed on my iMac. A few days ago, i called apple and asked the proper way to uninstall.
They transferred me to the enterprise department
the person informed me that i needed to drag server to the trashcan, which brought up a prompt that all server services were stopping......and that i would need to reinstall
He also said i could trash the server folder in the system library....which i did.
my question is, why in terminal now does it still show server? see attached picture



chrfr
Jun 29, 2013, 09:59 PM
Just open the Sharing pane in System Preferences and change the name.

brentg33
Jun 29, 2013, 10:08 PM
do you mean computer name?
if so, that is already different

Intell
Jun 29, 2013, 10:20 PM
Change it to something else, then change it back again.

brentg33
Jun 29, 2013, 11:28 PM
i did, but terminal still says server

matspekkie
Jun 30, 2013, 05:36 PM
i did, but terminal still says server

Go to System Preferences, sharing & change your computername there.
Now it will show something different it may need a reboot though.

Kasalic
Jul 1, 2013, 02:40 AM
There are three names used by OSX. ComputerName, LocalhostName and HostName.

The one shown in terminal is HostName and is normally set by a Directory Service (Active Directory or Open Directory). You can change it using the scutil command.

sudo scutil --set HostName putyournamehere

Note the two - signs, this is not a mistake.

dyn
Jul 2, 2013, 01:25 PM
The hostname is also set by DHCP. This overwrites the hostname in the Sharing pane in System Preferences. Make sure to change it in that pane, do what Kasalic tells you and make sure the DHCP server in your network gives out the correct hostname as well (DHCP is used to manage ip-settings and roll it out to clients; it is NOT the same as a dynamic ip-address!!!).

brentg33
Jul 3, 2013, 01:06 PM
ok so i can check which hostname DHCP is given out by after changing it with the scutil command, i should then see that in the hostname in the sharing pref pane?

brentg33
Jul 4, 2013, 06:46 AM
i tried sudo scutil --set HostName putyournamehere
didnt work, still says server in terminal

Kasalic
Jul 4, 2013, 01:34 PM
i tried sudo scutil --set HostName putyournamehere
didnt work, still says server in terminal

You have to exit and then quit terminal before the change will show up.

brentg33
Jul 4, 2013, 01:47 PM
You have to exit and then quit terminal before the change will show up.

I have, still no change. Would the changing the Netbios name do anything? It was listed as server. I changed it the computer name in system pref/sharing. Would that also cause any other issues?

steviewhy
Jul 5, 2013, 02:31 AM
Did you do as dyn suggested regarding DHCP Client ID in network settings?

Depending on how your DHCP is set up, you may be able to use the "DHCP client ID".

System Preferences.
Network
Select your network adapter on the left.
Select "Advanced" button at the bottom.
Set the "DHCP client ID" to your hostname.
If your DHCP server supports it, your hostname will be used for your machine.