Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Installing on Ubuntu 14

Mercury233 edited this page Jul 30, 2016 · 1 revision

Here are an working script to install this server on Ubuntu 14. Tested on Ubuntu 14.04 provided by aliyun.

sudo apt-get update
sudo apt-get install -y curl git build-essential premake4 libevent-dev libsqlite3-dev liblua5.2-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/lib/liblua.so

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs 

git clone https://github.com/mercury233/ygopro.git -b server --recursive
cd ygopro/
premake4 gmake
cd ocgcore/
git checkout master
cd ../script/
git checkout master
cd ../build/
make config=release
cd ..
ln -s bin/release/ygopro ./
strip ygopro
mkdir replay
cd ..

git clone https://github.com/mercury233/ygopro-server.git -b lite
cd ygopro-server
npm install
sudo npm install pm2 -g
ln -s ../ygopro ygopro

Now you can use

node ygopro-server.js

or

pm2 start ygopro-server.js --name ygopro-server --log log.log

to run it.

The server listen on 7911 port by default, you can use a YGOPRO client to join it with any password, and another with the same password, and start the duel.

Clone this wiki locally