server terminal question

Discussion in 'Mac OS X Server, Xserve, and Networking' started by brentg33, Jun 29, 2013.

  1. macrumors 6502a

    Mar 5, 2007
    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

    Attached Files:

  2. macrumors 601

    Jul 11, 2009
    Just open the Sharing pane in System Preferences and change the name.
  3. thread starter macrumors 6502a

    Mar 5, 2007
    do you mean computer name?
    if so, that is already different
  4. macrumors P6


    Jan 24, 2010
    Change it to something else, then change it back again.
  5. thread starter macrumors 6502a

    Mar 5, 2007
  6. macrumors member

    Oct 19, 2010
    Go to System Preferences, sharing & change your computername there.
    Now it will show something different it may need a reboot though.
  7. macrumors regular

    Jan 20, 2011
    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.
  8. dyn
    macrumors 68000

    Aug 8, 2009
    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!!!).
  9. thread starter macrumors 6502a

    Mar 5, 2007
    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?
  10. thread starter macrumors 6502a

    Mar 5, 2007
    i tried sudo scutil --set HostName putyournamehere
    didnt work, still says server in terminal
  11. macrumors regular

    Jan 20, 2011
    You have to exit and then quit terminal before the change will show up.
  12. thread starter macrumors 6502a

    Mar 5, 2007
    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?
  13. macrumors regular

    Oct 12, 2011
    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.
    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.

Share This Page