Operating system: Ubuntu 24.04 (Noble)
Before all steps, you have to login as root
, and run the following command on your terminal
apt update && apt install -y nano
- Install mysql 5.7, mssql 2019
- Restore database from
data-backups
- Install .NET 8 SDK
apt update && apt install -y dotnet-sdk-8.0
-
Upload
jx-web-app
source code to/jx/web-app-source
-
Build
jx-web-app
to `/jx/web-app'
cd /jx/web-app-source
dotnet publish ./jx-web-app.csproj -c Release -o /jx/web-app
- Configure jx-web-app for running automatically on boot
Run this on your terminal
systemctl enable /jx/web-app.service
- Finally, run your web application
sudo systemctl start jx-web-app.service
- Login to your server by using
http://[your-ip]/
- Install Wine 9 Staging
dpkg --add-architecture i386
mkdir -pm755 /etc/apt/keyrings
wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
apt update && apt install --install-recommends -y winehq-staging
rm -rf winehq.key
- Install Winetricks
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion
chmod +x winetricks
mv winetricks /usr/bin
mv winetricks.bash-completion /usr/share/bash-completion/completions/winetricks
- Install MDAC28 with winetricks
To pass this step, you should have GUI (on Linux) or MobaxTerm (on windows). Pretend that 10.10.11.22
your computer where the Mobaxterm located at.
apt update && apt install -y xterm
DISPLAY=10.10.11.22:0.0 WINEARCH=win32 WINEPREFIX=~/.win32 winetricks mdac28
-
Upload
paysyswin
to/jx/paysyswin
-
Test its working by command
cd /jx/paysyswin
WINEARCH=win32 WINEPREFIX=/root/.win32 GNUTLS_SYSTEM_PRIORITY_FILE=/jx/paysyswin/priorityGNU DISPLAY=:0.0 wine S3RelayServer.exe
WINEARCH=win32 WINEPREFIX=/root/.win32 GNUTLS_SYSTEM_PRIORITY_FILE=/jx/paysyswin/priorityGNU DISPLAY=:0.0 wine Sword3PaySys.exe
- Prepare the OS
dpkg --add-architecture i386
apt update
apt install -y libuuid1:i386 libc6:i386 libstdc++6:i386
- Run server
Your game will be easily managed by web-app. However, in case of manually running or testing, you have to modify the following files with your ip, and database.
- gateway/goddess.cfg
- gateway/bishop.cfg
- gateway/s3relay/s3relay.cfg
- server1/servercfg.cfg
Moreover, the following services should start in order and make sure it in working state.
- gateway/goddess_y
- gateway/bishop_y
- gateway/s3relay/s3relay_y
- server1/jx_linux_y
- Start MobaXterm (Windows) and open a server to interact with installation
- Login to Vultr Container Registry docker build .\account-server\ -f .\account-server\Dockerfile.base --build-arg DISPLAY=10.10.11.22:0.0 -t ewr.vultrcr.com/jxonline/account-server:linux-8.0 --push docker build .\account-server\ -f .\account-server\Dockerfile.relay-server -t ewr.vultrcr.com/jxonline/relay-server:linux-8.0 --push docker build .\account-server\ -f .\account-server\Dockerfile.pay-server -t ewr.vultrcr.com/jxonline/pay-server:linux-8.0 --push
-
Run database docker compose up
-
Restore database using Navicat or alternative ones
docker compose up -d docker run -d --network=host -e DISPLAY=10.10.11.22:0.0 ewr.vultrcr.com/jxonline/relay-server:linux-8.0 docker run -d --network=host -e DISPLAY=10.10.11.22:0.0 ewr.vultrcr.com/jxonline/pay-server:linux-8.0