Take another system I use (for example CentOS). I use the following code to make it become server.

# No GUI
systemctl set-default multi-user.target

# Enable SSH
sudo systemctl start sshd

It has two big advantages.

  1. doesn't sleep
  2. saves power

Can I do something similar in OS X?

P.S. I know how to make it become available by other computer with ssh. I just want OS X not show any desktop environment just the cli.

P.S.2 The link Is there console mode in Mac OS X? didn't work for me in Ei captain, since I select name and password in system preference, and restart. I still get list of user(icon and username). The reason is filevault. If I follow what the link said, I need to turn filevault off. That is not I want. See link Mac ignores "Display login window as" setting

Then I try to log out the current user and is able to use the function of name and password. when I use >console, I can ssh to it

  • 2
    I am sorry, but what exactly is the question? – CousinCocaine Feb 18 '16 at 15:15
  • Why does it save power? – mmmmmm Feb 18 '16 at 15:16
  • I have flagged this question as 'very low quality' as it is unclear for me what the question is. – CousinCocaine Feb 18 '16 at 15:17
  • A computer doesn't become a server because the computer doesn't "go to sleep" and/or "saves power." It is a server because it serves something; time, files, web pages, boot environments, etc. What exactly are you trying to do? – Allan Feb 18 '16 at 15:28
  • @CousinCocaine The main purpose is when I start mac, I don't want gui just command line shows – yuxuan Feb 18 '16 at 16:47

If you want to turn OS X, the Client version, in to a Server then you need to install OS X Server and configure it to meet your needs.

Add OS X Server to your Mac from the Mac App Store for just $19.99.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged .