Skip to content

Setting up a server from a fresh installation of Linux

BeanJr_YT edited this page Dec 1, 2018 · 36 revisions

A Word of Warnings Regarding Running Your Own Server

As of late 2018, Wiimmfi has recently undergone some changes due to news of hackers being able to run code and modify clients directly. You can read about this here

Having said that, this means that DWC/CoWFC servers won't be getting the same treatment (unless someone develops something similar)

By proceeding with this guide, you accept the risks outlined above, and that we can not be held responsible for any damages that may be caused by running your own server.

Using the automated installer script

PLEASE NOTE: There is an older script that installs the central repository. However, the authour of this article has decided to DEPRECIATE this script, in favour of the CoWFC installer. While it may run older code than the central repository, it contains more administrative and security features than the central repository. Please do not attempt to run the DWC Network Server Emulator alongside the CoWFC fork, as these are two completely separate code-bases, and WILL cause unexpected behaviours. If you do wish to continue to use this outdated script, you may download and run it with the following command:

wget https://raw.githubusercontent.com/kyle95wm/dwc_network_installer/master/install.sh && sudo ./install.sh

Setting up the CoWFC fork

The CoWFC fork runs slightly older code than the central repository.

What sets this fork apart from the others is, there is a real admin interface with an HTML5 template, as well as an actual website. There will be no manual install instructions here. However, you can build your instance by running the following commands:

sudo su
mkdir /var/www
cd /var/www
wget https://raw.githubusercontent.com/kyle95wm/cowfc_installer/master/cowfc.sh
chmod +x cowfc.sh
bash ./cowfc.sh

The script must run as root. If for whatever reason you forget to do this, there are safeguards put in place to ensure that the script runs as root no matter what.

Please note that the script for CoWFC MUST be run on Ubuntu 14.04 or 16.04 for this to work. Your server will update the list of packages. You will be prompted to press enter when the script adds the PHP 7.1 software repository.

You will notice your server reboots shortly after this. Wait for your server to come back up, and then run the following commands:

cd /var/www
sudo bash ./cowfc.sh

The install will continue. Follow all instructions. Your server will reboot again after this.

When the server comes back up, run the following command:

sudo chmod -R 775 /var/www/dwc_network_server_emulator

If it returns no output, you are done!