Installation
Installation
This guide is designed for new Ubuntu 18.04 servers. If you are not using Ubuntu 18.04, you may need to take extra steps to complete the early installation process. Follow these steps in order!
TODO
Part 1: System setup
Account
Create a non-root account, and give it sudo permissions. This can be done with 2 commands (executed as root
):
where <user name>
is the name of the new account. Give the account a strong password, and make sure you can log in to it through SSH. The rest of this guide must be followed as the new account.
MySQL
After adding the new account, MySQL must be installed. MySQL 8 is strongly recommended. You can install MySQL with these commands:
After running the last commands, you will be asked for a root password. Although you will never use the root account after you set up your server, you should still set a secure password for it. Once MySQL is fully configured, run this command: mysql -uroot -p
When you are prompted for a password, enter the root password you set before and press ENTER.
You will now create MySQL accounts. Generate 3 strong passwords. One will be the MANAGERPASS, the next will be the GAMEPASS and the last will be the CHATPASS.
Type each of these commands, pressing ENTER after each one:
Tools
To compile and run the server, you will need to install some tools. Run the following commands:
This will install the latest version of Java (the platform that the server runs on), Maven (the tool that is used to create the server .jar file) and Redis (software that is used to keep track of various temporary data)
Part 2: Code compilation
To acquire the code required to run the server, run the following commands:
Now you need to compile the code. To do that, run the following commands:
TODO
Part 3: Software configuration: Openfire
TODO
Last updated