Get Mono

Mono is like the .net framework, just it is for Linux and it is open source. In order to run C# applications on Linux you must install Mono. To do that follow this steps:

Get MonoDevelop*

This isn't a necessary step, but it is highly recommended if you are planning to modify the server. MonoDevlop is like the Visual Studio for Linux, it is very useful and it has amazing debugging tools in it. To install MonoDevelop you need to follow this steps:

  • install Flatpak by following this instructions:
  • open terminal [ctrl+alt+T] and execute the following commands:
    • flatpak remote-add --user --from gnome https://sdk.gnome.org/gnome.flatpakrepo
    • flatpak install --user --from https://download.mono-project.com/repo/monodevelop.flatpakref
    • flatpak run com.xamarin.MonoDevelop

Compile the Server

If you have MonoDevelop installed you can open the .sln file in it and build it, but if you don't have MonoDevelop installed you must follow this instructions:

  • open terminal [ctrl+alt+T] and execute the following commands:
    • cd <source folder>
    • xbuild <solution file>.sln

If you get errors, please remove log4net from the source or use another source, the Rotux source is made exactly for this so please use it to avoid additional issues, and we have tested it on many operating systems to make sure it works, to get it execute this command in terminal: git clone https://github.com/mihail-rotmg/Rotux.git.

Get XAMPP and Setup Database

Setting up XAMPP and the Database is very similar to Windows, to install XAMPP follow this steps:

  • go to this URL: https://www.apachefriends.org/download.html;

  • under Linux click download;

  • open terminal [ctrl+alt+T] and execute the following command:

    • sudo ./xampp-linux-x64-<version>-installer.run
  • follow the instructions to install;

After that make sure that Apache and MySQL are both running, then open your browser and go localhost , if you don't get any errors while connecting go to http://localhost/phpmyadmin/ and import the .sql file that you can find in your source.

Get Flash Player Projector

To install Flash Player Projector on Linux (at least the updated version) it is different than the other operating systems, to do that follow this instructions:

Start the Server

If you have your files compiled, and you have your database setup, you only need to start the server. To do that follow this steps:

  • in XAMPP stop Apache;
  • make sure thatMySQL is running;
  • open the folders bin\Debug located in your source;
  • open two terminal windows and execute the following commands in them:
    • terminal windows one: sudo mono server.exe;
    • terminal windows two: sudo mono wServer.exe;
  • locate the .swf client somewhere in your source;
  • open it using a flash projector or your web browser;
  • check if server.exe and wServer.exe are both running and receiving requests;
  • if you get port 80 is occupied error in server.exe, stop any running web servers or if you have Skype disable the port 80 usage in Skype;
  • restart server.exe

If you cannot get the server to work, use another source or if you are using Rotux contact the developer.

results matching ""

    No results matching ""