Debian
Open your favorite SSH terminal
Please do not run Melia as root, it's just not recommended... as running Linux, this is one of the most important things to know.
1. Installation of required software
sudo apt-get install mono-devel git-core screen
2. Installing either MySQL or MariaDB (I recommend MariaDB)
sudo apt-get install mysql-server
OR
MariaDB:
https://downloads.mariadb.org/mariadb/repositories/#mirror=digitalocean-nyc&distro=Debian&distro_release=jessie--jessie&version=10.1
also recommended to run to secure your mysql/mariadb server:
mysql_secure_installation
3. Cloning Melia repository
git clone https://github.com/aura-project/melia.git
4. Compiling Melia repository
cd melia
xbuild /p:Configuration=Release Melia.sln
5. Copying required files
mkdir live
mkdir live/log/
cp bin/Release/{*.exe,*.dll,*liblua*} live
cp -r {system,sql,user,lib,log,doc} live
6. Setting up MySQL/MariaDB
mysql -u root -p
CREATE database melia;
CREATE USER 'melia'@'localhost' IDENTIFIED BY 'somepassword';
GRANT CREATE,DELETE,DROP,EXECUTE,INSERT,SELECT,UPDATE ON melia.database TO 'melia'@'localhost';
then type exit
mysql -u melia -p passwordyouset -h localhost melia < sql/main.sql
7. Editing config files
nano or vi live/conf/database.conf
// Melia
// Configuration file
//----------------------------------------------------------------------------
host : 127.0.0.1
user : MySQLUSER
pass : MySQLPASSWORD
database : melia
include "/user/conf/database.conf"
mv user/conf/database-example.conf database.conf
nano or vi /user/conf/database.conf
// Melia
// Configuration file
//----------------------------------------------------------------------------
pass : MySQLPASSWORD
8. Editing servers.txt
nano or vi /system/db/servers.txt
// Melia
// Database file
//---------------------------------------------------------------------------
[
{ type: "Login", id: 1, ip: "127.0.0.1", port: 2000 },
{ type: "Channel", id: 1, ip: "127.0.0.1", port: 7000, maps: "all" },
]
If you're not doing this locally, edit the 127.0.0.1 IP address to your WAN IP (you can get your WAN IP at http://whatismyip.com OR http://ip4.me
9. Starting Login,Channel,Web server
screen -S 'Login'
mono LoginServer.exe
Hold Ctrl+A+D to detach from the screen
screen -S 'Channel'
mono ChannelServer.exe
Hold Ctrl+A+D to detach from the screen
screen -S 'Web'
mono WebServer.exe
Hold Ctrl+A+D to detach from the screen
And you're done! I will make the guide look better later on.