0

I'm a total Linux beginner and just started playing around with Ubuntu Server without GUI this week, and encountered a little problem.

I have a script that starts game server ServerStart.sh that was changed to executable and it works great (players can connect etc.). I've even added it to crontab to start at server reboot, but as it runs in terminal I can't do anything else on the system. Is there any way to run it in background or as a service? Also I want to access this game server directly as in terminal/console I can change permissions for users, difficulty etc (Script starts Minecraft server). Probably it's easy, but I can't find instructions for dummies for it. Does somebody has as easy as possible solution to it?

If anybody wants to see how the server files look: FTB server

Zanna
  • 70,465
Stablo
  • 1

1 Answers1

0

You will want to use the screen package. Screen is a terminal application that you can send to the back, very useful for remote systems.

You can install it with 'sudo apt-get install screen' and use it like:

screen it opens screen

do whatever cli command you want

And send screen to the back with ctrl + A + D.

You can retrieve a screen instance with ctrl + r.

Dr_Bunsen
  • 4,713
  • 4
  • 28
  • 40