Running a Linux Based VPS

Posted · Add Comment

This is probably the hardest way to host a server for mxs, but it also gives you the most control.  A linux VPS is basically like having a virtual linux computer.  These servers do not come with any kind of desktop software, so unless you want to install a desktop and a remote desktop access program on the vps, you are going to need to use the command line.  In my opinion, the command line is the better way to run the server anyways, because the desktop just makes it slower and more unorganized.  To start off, you are going to need an Ubuntu VPS (others will work, but this guide will be for an Ubuntu-based vps).  You can get one from many different server hosting companies.  The two which I know are currently used for some MXS servers are CoreNetworks and Beastnode.  I personally have not used CoreNetworks, but I have heard from other people who do and both plans are around the same price so it’s up to you.  There are also a bunch of different plans offered from the different companies for different tiers of VPS.  I like to know for sure that my server will run fine, so I always go with nothing below 512 mb of ram.  Also, the more bandwidth the better.  But as for actually setting up the server with MXS, you are going to need to use a program called putty.  An ssh login should be included with your server, and that’s how you log in to your server via putty.  There are many guides of how to log in to your vps on the internet, and it is also not that hard.

Once you have logged into your VPS via putty, it should look something similar to this:



First off, install nano text editor on your vps by typing: apt-get install nano

Once you have reached this point, it is time to start entering commands to get the mxserver application on your VPS.  The following instructions are straight from JLV:

# download mxserver
wget   (Replace this link with the link to the most recent mxserver version)
# unzip it
# change to mxserver directory
cd mxserver
# edit server args
nano serverargs.txt
# run mxserver, ignoring hangup signals
nohup ./mxserver --args-file serverargs.txt &

To kill the server from the command line use “killall mxserver”.

If you want to run multiple servers, just run multiple server args files.  For example sxargs.txt and mxargs.txt

From here, to add trackinfo files and easily edit args files, you can use an ftp client such as FileZilla to view and edit all the files in the server.  Again it is more efficient if you search on the internet to find out how to connect to your vps with FileZilla (It is easy but I don’t explain it well).

After all of this is done, running a server is basically just like running it from your computer except you change files with ftp instead of dragging and dropping to your server folder on your desktop.  If you need help with the different types of server files, yzmxer made a good guide here.