Manic Digger

It is currently Mon May 21, 2018 1:27 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Server on a VPS?
PostPosted: Mon Aug 04, 2014 12:46 am 
Offline

Joined: Tue Jul 22, 2014 2:28 pm
Posts: 16
I was wondering if it is possible to host a server on a virtual private network hosted from one of the hosts you can find online? I don't know how to port forward, and don't want to do it to my home network, for the bandwidth usage and the chance of being hacked. I know Minecraft has a way of doing it but I have not found anything for Maniac Digger.

_________________
http://m.youtube.com/channel/UCvCqZERwJEspXqLJ-YCgYpg


Top
 Profile  
 
 Post subject: Re: Server on a VPS?
PostPosted: Mon Aug 04, 2014 9:24 am 
Offline
User avatar

Joined: Wed Feb 22, 2012 4:17 pm
Posts: 381
Hi Turnit!

Yes, this is possible.
I'm hosting a few servers myself on a VPS.
A MD server isn't very resource demanding but requires some RAM if a lot of players are online.
For example I managed to run a 16 slot server (full) with 512MB of RAM.
CPU usage also is quite low if the server does not generate new terrain.
An extreme example: It is possible to run a MD server on a Raspberry Pi (old version with 256MB RAM)

Assuming some basic Linux knowledge, setting up a server is quite easy.
I'll assume a server running Debian for the following (Ubuntu should work the same way, though...)
  1. Connect to your server as root via SSH (I use the combination of WinSCP and Putty for this)
  2. OPTIONAL Update your packages (optional, but mostly useful):
    Code:
    apt-get update
    apt-get upgrade
  3. Install the dependencies MD needs:
    Code:
    apt-get install mono-complete libenet1a
  4. For running the server in background I use screen:
    Code:
    apt-get install screen
    OPTIONAL For hardware monitoring htop does the job for me:
    Code:
    apt-get install htop
  5. Create a new user for running the MD server:
    Code:
    adduser manicdigger
  6. Now close to root terminal connection and connect as the user you just created (via SFTP)
  7. Create a new directory inside your home directory to hold the server files (e.g. testserver)
  8. Download the latest MD binary from here (SourceForge) or here (GitHub) to your PC, unzip it and upload its contents to the directory you just created on your server (also possible to do so directly on the server, but that needs additional software ;))
  9. Once complete you should have a folder with all the files you'd also have in your normal MD installation on the server
  10. Connect to your server (via SSH) as the user you created (not as root!)
  11. You should start in the home directory. Switch to the folder you just created:
    Code:
    cd testserver
  12. You're ready to start the server. To start the server using screen, use the following:
    Code:
    screen -S UniqueNameOfTheInstance mono ManicDiggerServer.exe
  13. If everything worked you will see the server start and ask for some basic parameters
    As soon as the server started you can shut it down again for configuration.
    Pressing Ctrl+C will terminate the server process.
  14. Once configuration is done you can start the server again using the same command as before
  15. This time you'll want to detach from the process instead of terminating it. Do so by pressing Ctrl+A+D
    You'll get the message: "Detached from ..."
  16. The server is now running in the background. If you want to get back into the server console enter the following:
    Code:
    screen -r
    This will open up the last screen you were connected to
  17. You're done. Have fun ;)

My VPS specs:
- 1 VCore (3.6 - 4 GHz)
- 1 GB RAM
- 1 GB Swap
- 25GB RAID10 Storage
- 1GBit/s Shared Uplink

I hope I could help you.


Regards,
croxxx

_________________
Manic Digger Developer and Forum Moderator
Founder of the Pixolia Network

For mod updates (and other ocassional ramblings) follow me on Twitter: @THEcroxxx
Sometimes streaming stuff on Twitch
Homepage: croxxx.tk


Top
 Profile  
 
 Post subject: Re: Server on a VPS?
PostPosted: Mon Aug 04, 2014 2:51 pm 
Offline

Joined: Tue Jul 22, 2014 2:28 pm
Posts: 16
Thanks,
This is what I was looking for. It will be nice to host a server now.

_________________
http://m.youtube.com/channel/UCvCqZERwJEspXqLJ-YCgYpg


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group