Can you run a server through terminal on an OS X Server?

I am wondering if it would be possible to run a server (like from a shell command file) on an OS X Server. For example, something like a Minecraft Server, which runs through a shell or batch file, or something like an Unturned server which runs through a shell file, but also runs the application whilst running the server. Would it be possible to do this? Also what is it like if you buy the OS X Server on the app store? Is it just like another computer? Do you have a desktop?


Thanks for any help you can provide - it is very much appreciated.🙂

iMac, OS X Mavericks (10.9.2)

Posted on Aug 14, 2016 1:45 PM

Reply
7 replies

Sep 2, 2016 10:41 AM in response to Brian Nesse

Not necessarily. Assuming this is Mac OS X Server version 10.5 the OS X Server is a separate release than the standard Mac OS X. It wasn't until later that they retired Mac OS X Server and made Server a separate app that runs on any Mac OS X install.


However, the poster may have posted in the wrong forum and mean the current version of OS X, since they mentioned the App Store.

Sep 2, 2016 11:00 AM in response to TheB741

The Short Answer:


Running OS X Server will not cause any problems running other server software, like Minecraft. This software can be controlled remotely with an SSD connection. You'll just want to verify that you enable Remote Login and your Mac's firewall allows incoming connections on port 22 (for SSH) and whatever ports your other software needs.


Long Answer:


Are you running OS X Server 10.5? That's an older release of OS X Server, released about 10 years ago. If it is, then you'll likely run into some compatibility issues, especially if it's a PowerPC Mac.

Since you mentioned the App Store you may have just posted in the wrong forum. In that case, you can indeed run any software you want remotely or heedless (only using the terminal) and remote in with SSH.


You don't necessarily need the OS X Server app from the App Store. You can enable SSH Remote Login and remote into the Mac without any server software. You can also run the server software for other software, like Minecraft, without the OS X Server software. This can be enabled in Preferences -> Sharing -> Enable "Remote Login." Just make sure you do the necessary port forwarding in your router if you want to access your programs and be able to login on the internet. If you have the firewall on your Mac installed then you'll want to add entries for SSH and any server software's ports.


If you do install the OS X Server software then there shouldn't be any problems accessing your installed server software (like Minecraft). You'll just want to check to make sure there aren't any firewall or security settings that may block the incoming ports. If there are issues getting to your server, add the ports to your firewall.


As far as accessing the OS X Server's software remotely, it's easiest to control them using VNC or Apple RDP where you have a graphical interface. OS X Server generally has been less friendly to command-line-only administration. Being UNIX however, you could always install your own more command-line friendly server software and use that instead.

Good Luck.

Sep 5, 2016 9:10 PM in response to TheB741

The Short Answer:


Running OS X Server will not cause any problems running other server software, like Minecraft. This software can be controlled remotely with an SSD connection. You'll just want to verify that you enable Remote Login and your Mac's firewall allows incoming connections on port 22 (for SSH) and whatever ports your other software needs.


Long Answer:


Are you running OS X Server 10.5? That's an older release of OS X Server, released about 10 years ago. If it is, then you'll likely run into some compatibility issues, especially if it's a PowerPC Mac.

Since you mentioned the App Store you may have just posted in the wrong forum. In that case, you can indeed run any software you want remotely or heedless (only using the terminal) and remote in with SSH.


You don't necessarily need the OS X Server app from the App Store. You can enable SSH Remote Login and remote into the Mac without any server software. You can also run the server software for other software, like Minecraft, without the OS X Server software. This can be enabled in Preferences -> Sharing -> Enable "Remote Login." Just make sure you do the necessary port forwarding in your router if you want to access your programs and be able to login on the internet. If you have the firewall on your Mac installed then you'll want to add entries for SSH and any server software's ports.


If you do install the OS X Server software then there shouldn't be any problems accessing your installed server software (like Minecraft). You'll just want to check to make sure there aren't any firewall or security settings that may block the incoming ports. If there are issues getting to your server, add the ports to your firewall.


As far as accessing the OS X Server's software remotely, it's easiest to control them using VNC or Apple RDP where you have a graphical interface. OS X Server generally has been less friendly to command-line-only administration. Being UNIX however, you could always install your own more command-line friendly server software and use that instead.

Good Luck.

Sep 8, 2016 7:10 AM in response to TheB741

The Server App Store app mostly is intended to make it easy to set up a server for things like a web page, wikis, mail server, managing iPads and Macs, controlling update installations, remote Time Machine, and many other things. A small buisiness that uses Apple products like Macs, iPads, and iPhones will probably find it the most useful. I recommend reading the full description in the App Store's app page. It will list everything. Some of this information and a link to the App Store page is also available on their server web page.


If you have your own third-party OS X or Unix server software you can install it without having the Server app installed. There isn't any reason why you couldn't use any Mac as a server with other software. Third-party software may even be easier for command-line only management.


The Server app doesn't allow you to run a server without the Mac being on. The Server app isn't a service that's ran by Apple or someone else. Your Mac that you are using as a server (with or without the App Store app) needs to be on for it to run and be accessible. If you want a service where someone else hosts the server and software so you can manage the server remotely there, and so you don't need to dedicate your own computer as a server, there are companies that provide that service.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can you run a server through terminal on an OS X Server?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.