What's new

New messages New topics Systems Serverfiles 3D Models Web Scripting

[FULL TUTORIAL] How to Install Metin2 Server Files (FreeBSD)

RESOURCES HUB

Premium
📅 Joined Jul 22, 2025
💬 Messages 201
👍 Thanks 1,428
🏆 Points 425
📍 Location London
🌐 Website metin2global.to

1️⃣ Upload Server Files​


You need:


  • Server files (game, db, auth, share, etc.)
  • Database backup (.sql files)

Upload your server files to your VPS using:


  • FileZilla (SFTP)
  • WinSCP
  • SCP command

Example folder:


Code:
/usr/home/metin2


Move your files there.




2️⃣ Set Correct Permissions​


Go to your server directory:


Code:
cd /usr/home/metin2


Set permissions:


Code:
chmod -R 777 *


Or better (recommended):


Code:
chmod -R 755 *


Make sure game and db binaries are executable:


Code:
chmod +x game
chmod +x db
chmod +x auth




3️⃣ Install Required Packages​


Install required libraries:


Code:
pkg install gmake gcc cmake libmysqlclient


If your files are older (32-bit), enable 32-bit support:


Code:
pkg install compat12x-amd64




4️⃣ Configure Database​


Login to MariaDB:


Code:
mysql -u root -p


Create databases:


Code:
CREATE DATABASE account;
CREATE DATABASE player;
CREATE DATABASE common;
CREATE DATABASE log;


Create user:


Code:
CREATE USER 'mt2'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON . TO 'mt2'@'localhost';
FLUSH PRIVILEGES;


Exit:


Code:
exit




5️⃣ Import SQL Files​


If you have backup files:


Code:
mysql -u root -p account < account.sql
mysql -u root -p player < player.sql
mysql -u root -p common < common.sql
mysql -u root -p log < log.sql




6️⃣ Configure CONFIG Files​


Open your CONFIG file:


Code:
ee CONFIG


Or:


Code:
nano CONFIG


Make sure database connection matches:


Code:
SQL_ACCOUNT = localhost mt2 yourpassword account
SQL_PLAYER  = localhost mt2 yourpassword player
SQL_COMMON  = localhost mt2 yourpassword common
SQL_LOG     = localhost mt2 yourpassword log


Check:


  • IP address
  • Ports
  • Channel settings

Save and exit.




7️⃣ Start the Server​


Go to your server folder:


Code:
cd /usr/home/metin2


Start database first:


Code:
./db &


Start auth:


Code:
./auth &


Start game:


Code:
./game &


If you have start script:


Code:
sh start.sh




8️⃣ Check If Server Is Running​


Check running processes:


Code:
ps aux | grep game


Check open ports:


Code:
sockstat -4
 

Latest posts

shape1
shape2
shape3
shape4
shape5
shape6
Top