FreeBSD 13.2 x32
ackage: VHD MySql 5.7 pyton 2.7
id pw mysql
root
dev
FreeBSD 13.2 x32
VHD Üzerinde Metin2 Sunucusu Kurulumu ve MySQL 5.7 + Python 2.7 Yapılandırması
Giriş
Metin2 sunucuları için FreeBSD işletim sistemi, özellikle stabilite ve performans açısından tercih edilen bir platformdur. Bu rehberde, FreeBSD 13.2 x32 mimarisine sahip bir VHD (Virtual Hard Disk) imajı üzerinde Metin2 sunucu kurulumunu, MySQL 5.7 veritabanı yapılandırmasını ve Python 2.7 desteğini nasıl sağlayacağımızı adım adım ele alacağız. Bu yapılandırma, FreeBSD sistemler üzerinde çalışan Metin2 geliştiricileri, sunucu yöneticileri ve oyun sunucusu barındırmak isteyenler için temel bir rehber niteliğindedir.
FreeBSD 13.2 x32 Sistem Gereksinimleri ve Hazırlık
Öncelikle, FreeBSD 13.2 x32 tabanlı bir VHD dosyası üzerinde çalıştığımızı varsayalım. Bu ortamda, Metin2 sunucu bileşenlerini derlemek ve çalıştırmak için gerekli olan derleyici, geliştirme kütüphaneleri, veritabanı ve Python desteği bulunmalıdır. FreeBSD’de paket yönetimi için pkg sistemini kullanacağız. Sistemi güncelleyip gerekli paketleri yükleyerek başlayalım:
Python 2.7 ve MySQL 5.7 Kurulumu
Python 2.7, bazı eski Metin2 kaynak kodlarında halen desteklenen bir programlama dilidir. FreeBSD üzerinde Python 2.7’yi yüklemek için yukarıdaki komutu kullanabiliriz. Aynı zamanda MySQL 5.7, eski Metin2 sunucularında yaygın olarak kullanılan bir veritabanı sürümüdür. Yükledikten sonra MySQL servisini başlatmak ve otomatik başlatmak için:
Metin2 Sunucu Derleme ve Konfigürasyonu
Metin2 sunucu kaynak kodları genellikle C++ tabanlıdır ve FreeBSD üzerinde GCC veya Clang derleyicileriyle derlenebilir. Boost kütüphaneleri, Metin2 sunucu derlemelerinde sıklıkla kullanılan bir bağımlılıktır. FreeBSD üzerinde doğru derleme ortamı için aşağıdaki adımları izleyin:
- Gerekli kütüphaneleri yükleyin (boost, mysql-client, gcc)
- Kaynak kodları derlemek için Makefile veya cmake kullanın
- Derleme sırasında ortaya çıkabilecek hata mesajlarını dikkatlice okuyun
Uyarı: Python 2.7 artık resmi olarak desteklenmemektedir. Ancak bazı eski Metin2 projelerinde halen kullanıldığı için bu yapılandırmayı sağlıyoruz. Güvenlik açısından mümkün olan en kısa sürede Python 3’e geçiş yapılması önerilir.
Veritabanı ve Yetkilendirme Sunucusu Bağlantısı[/BR]
MySQL 5.7, Metin2 auth ve DB sunucuları için idealdir. Veritabanı kullanıcılarını ve şifrelerini doğru şekilde ayarlamak, sunucu güvenliği açısından kritiktir. MySQL içinde 'root' şifresini belirleyin, yeni bir kullanıcı oluşturun ve Metin2 veritabanı erişim izinlerini verin:
FreeBSD Güvenlik ve PF Ayarları
FreeBSD’de sistem güvenlik duvarı olarak PF (Packet Filter) kullanılır. Metin2 sunucuları için gerekli portlar (örneğin: 13000, 13001, 13002 gibi) PF üzerinden açılmaldır. /etc/pf.conf dosyasına aşağıdaki gibi kurallar ekleyin:
Sonuç[/BR]
FreeBSD 13.2 x32 tabanlı VHD üzerinde Metin2 sunucu, MySQL 5.7 ve Python 2.7 kurulumu tamamlandığında, güçlü bir oyun sunucusu ortamı elde edilir. FreeBSD’in sağladığı güvenlik, kararlılık ve kaynak kullanımı avantajları, Metin2 sunucuları için ideal bir platform oluşturur. Bu yapılandırma, FreeBSD sistemlerde Metin2 sunucu kurulumu yapan geliştiriciler ve sistem yöneticileri için sağlam bir başlangıç noktası sağlar.
Setting Up Metin2 Server on FreeBSD 13.2 x32
VHD with MySQL 5.7 and Python 2.7 Configuration
Introduction
FreeBSD operating system is preferred for Metin2 servers due to its stability and performance. In this guide, we will detail how to set up a Metin2 server on a FreeBSD 13.2 x32-based VHD (Virtual Hard Disk), configure MySQL 5.7 database, and enable Python 2.7 support. This setup serves as a foundational guide for developers and server administrators looking to host Metin2 game servers on FreeBSD systems.
FreeBSD 13.2 x32 System Requirements and Preparation
Assuming that we are working on a FreeBSD 13.2 x32-based VHD image, we need to have compilers, development libraries, database, and Python support ready to compile and run Metin2 server components. We will use the pkg system for package management on FreeBSD. Let's start by updating the system and installing necessary packages:
Installing Python 2.7 and MySQL 5.7
Python 2.7 is still supported in some older Metin2 source codes. To install Python 2.7 on FreeBSD, we can use the command above. Additionally, MySQL 5.7 is a commonly used database version for older Metin2 servers. After installation, to start and enable the MySQL service:
Compiling and Configuring Metin2 Server
Metin2 server source codes are typically based on C++ and can be compiled with GCC or Clang compilers on FreeBSD. Boost libraries are frequently used dependencies in Metin2 server builds. To prepare a correct build environment on FreeBSD, follow these steps:
- Install required libraries (boost, mysql-client, gcc)
- Use Makefile or cmake to compile source code
- Carefully read error messages during compilation
Warning: Python 2.7 is no longer officially supported. However, since it is still used in some older Metin2 projects, we provide this configuration. For security reasons, it is recommended to transition to Python 3 as soon as possible.
Database and Authentication Server Connection
MySQL 5.7 is ideal for Metin2 auth and DB servers. Properly setting database users and passwords is critical for server security. Set the 'root' password in MySQL, create a new user, and grant access permissions to the Metin2 database:
FreeBSD Security and PF Settings
PF (Packet Filter) is used as the system firewall in FreeBSD. For Metin2 servers, required ports (e.g., 13000, 13001, 13002) must be opened through PF. Add the following rules to /etc/pf.conf:
Conclusion
Upon completing the setup of a Metin2 server with MySQL 5.7 and Python 2.7 on a FreeBSD 13.2 x32-based VHD, a robust game server environment is achieved. The security, stability, and resource usage benefits provided by FreeBSD make it an ideal platform for Metin2 servers. This configuration provides a solid starting point for developers and system administrators who install Metin2 servers on FreeBSD systems.
id pw mysql
root
dev
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
FreeBSD 13.2 x32
Giriş
Metin2 sunucuları için FreeBSD işletim sistemi, özellikle stabilite ve performans açısından tercih edilen bir platformdur. Bu rehberde, FreeBSD 13.2 x32 mimarisine sahip bir VHD (Virtual Hard Disk) imajı üzerinde Metin2 sunucu kurulumunu, MySQL 5.7 veritabanı yapılandırmasını ve Python 2.7 desteğini nasıl sağlayacağımızı adım adım ele alacağız. Bu yapılandırma, FreeBSD sistemler üzerinde çalışan Metin2 geliştiricileri, sunucu yöneticileri ve oyun sunucusu barındırmak isteyenler için temel bir rehber niteliğindedir.
FreeBSD 13.2 x32 Sistem Gereksinimleri ve Hazırlık
Öncelikle, FreeBSD 13.2 x32 tabanlı bir VHD dosyası üzerinde çalıştığımızı varsayalım. Bu ortamda, Metin2 sunucu bileşenlerini derlemek ve çalıştırmak için gerekli olan derleyici, geliştirme kütüphaneleri, veritabanı ve Python desteği bulunmalıdır. FreeBSD’de paket yönetimi için pkg sistemini kullanacağız. Sistemi güncelleyip gerekli paketleri yükleyerek başlayalım:
Kod:
[B]pkg update && pkg upgrade[BR][/BR]pkg install gcc python27 mysql57-server boost-libs[BR][/BR]
Python 2.7 ve MySQL 5.7 Kurulumu
Python 2.7, bazı eski Metin2 kaynak kodlarında halen desteklenen bir programlama dilidir. FreeBSD üzerinde Python 2.7’yi yüklemek için yukarıdaki komutu kullanabiliriz. Aynı zamanda MySQL 5.7, eski Metin2 sunucularında yaygın olarak kullanılan bir veritabanı sürümüdür. Yükledikten sonra MySQL servisini başlatmak ve otomatik başlatmak için:
Kod:
[B]service mysql-server enable[BR][/BR]service mysql-server start[BR][/BR]
Metin2 Sunucu Derleme ve Konfigürasyonu
Metin2 sunucu kaynak kodları genellikle C++ tabanlıdır ve FreeBSD üzerinde GCC veya Clang derleyicileriyle derlenebilir. Boost kütüphaneleri, Metin2 sunucu derlemelerinde sıklıkla kullanılan bir bağımlılıktır. FreeBSD üzerinde doğru derleme ortamı için aşağıdaki adımları izleyin:
- Gerekli kütüphaneleri yükleyin (boost, mysql-client, gcc)
- Kaynak kodları derlemek için Makefile veya cmake kullanın
- Derleme sırasında ortaya çıkabilecek hata mesajlarını dikkatlice okuyun
Uyarı: Python 2.7 artık resmi olarak desteklenmemektedir. Ancak bazı eski Metin2 projelerinde halen kullanıldığı için bu yapılandırmayı sağlıyoruz. Güvenlik açısından mümkün olan en kısa sürede Python 3’e geçiş yapılması önerilir.
Veritabanı ve Yetkilendirme Sunucusu Bağlantısı[/BR]
MySQL 5.7, Metin2 auth ve DB sunucuları için idealdir. Veritabanı kullanıcılarını ve şifrelerini doğru şekilde ayarlamak, sunucu güvenliği açısından kritiktir. MySQL içinde 'root' şifresini belirleyin, yeni bir kullanıcı oluşturun ve Metin2 veritabanı erişim izinlerini verin:
Kod:
[B]mysql_secure_installation[BR][/BR]CREATE USER 'mt2_user'@'localhost' IDENTIFIED BY 'password';[BR][/BR]GRANT ALL PRIVILEGES ON metin2_db.* TO 'mt2_user'@'localhost';[BR][/BR]FLUSH PRIVILEGES;[BR][/BR]
FreeBSD Güvenlik ve PF Ayarları
FreeBSD’de sistem güvenlik duvarı olarak PF (Packet Filter) kullanılır. Metin2 sunucuları için gerekli portlar (örneğin: 13000, 13001, 13002 gibi) PF üzerinden açılmaldır. /etc/pf.conf dosyasına aşağıdaki gibi kurallar ekleyin:
Kod:
[B]pass in proto tcp from any to any port { 13000, 13001, 13002 }[BR][/BR]pass out proto tcp from any to any keep state[BR][/BR]
Sonuç[/BR]
FreeBSD 13.2 x32 tabanlı VHD üzerinde Metin2 sunucu, MySQL 5.7 ve Python 2.7 kurulumu tamamlandığında, güçlü bir oyun sunucusu ortamı elde edilir. FreeBSD’in sağladığı güvenlik, kararlılık ve kaynak kullanımı avantajları, Metin2 sunucuları için ideal bir platform oluşturur. Bu yapılandırma, FreeBSD sistemlerde Metin2 sunucu kurulumu yapan geliştiriciler ve sistem yöneticileri için sağlam bir başlangıç noktası sağlar.
Setting Up Metin2 Server on FreeBSD 13.2 x32
Introduction
FreeBSD operating system is preferred for Metin2 servers due to its stability and performance. In this guide, we will detail how to set up a Metin2 server on a FreeBSD 13.2 x32-based VHD (Virtual Hard Disk), configure MySQL 5.7 database, and enable Python 2.7 support. This setup serves as a foundational guide for developers and server administrators looking to host Metin2 game servers on FreeBSD systems.
FreeBSD 13.2 x32 System Requirements and Preparation
Assuming that we are working on a FreeBSD 13.2 x32-based VHD image, we need to have compilers, development libraries, database, and Python support ready to compile and run Metin2 server components. We will use the pkg system for package management on FreeBSD. Let's start by updating the system and installing necessary packages:
Kod:
[B]pkg update && pkg upgrade[BR][/BR]pkg install gcc python27 mysql57-server boost-libs[BR][/BR]
Installing Python 2.7 and MySQL 5.7
Python 2.7 is still supported in some older Metin2 source codes. To install Python 2.7 on FreeBSD, we can use the command above. Additionally, MySQL 5.7 is a commonly used database version for older Metin2 servers. After installation, to start and enable the MySQL service:
Kod:
[B]service mysql-server enable[BR][/BR]service mysql-server start[BR][/BR]
Compiling and Configuring Metin2 Server
Metin2 server source codes are typically based on C++ and can be compiled with GCC or Clang compilers on FreeBSD. Boost libraries are frequently used dependencies in Metin2 server builds. To prepare a correct build environment on FreeBSD, follow these steps:
- Install required libraries (boost, mysql-client, gcc)
- Use Makefile or cmake to compile source code
- Carefully read error messages during compilation
Warning: Python 2.7 is no longer officially supported. However, since it is still used in some older Metin2 projects, we provide this configuration. For security reasons, it is recommended to transition to Python 3 as soon as possible.
Database and Authentication Server Connection
MySQL 5.7 is ideal for Metin2 auth and DB servers. Properly setting database users and passwords is critical for server security. Set the 'root' password in MySQL, create a new user, and grant access permissions to the Metin2 database:
Kod:
[B]mysql_secure_installation[BR][/BR]CREATE USER 'mt2_user'@'localhost' IDENTIFIED BY 'password';[BR][/BR]GRANT ALL PRIVILEGES ON metin2_db.* TO 'mt2_user'@'localhost';[BR][/BR]FLUSH PRIVILEGES;[BR][/BR]
FreeBSD Security and PF Settings
PF (Packet Filter) is used as the system firewall in FreeBSD. For Metin2 servers, required ports (e.g., 13000, 13001, 13002) must be opened through PF. Add the following rules to /etc/pf.conf:
Kod:
[B]pass in proto tcp from any to any port { 13000, 13001, 13002 }[BR][/BR]pass out proto tcp from any to any keep state[BR][/BR]
Conclusion
Upon completing the setup of a Metin2 server with MySQL 5.7 and Python 2.7 on a FreeBSD 13.2 x32-based VHD, a robust game server environment is achieved. The security, stability, and resource usage benefits provided by FreeBSD make it an ideal platform for Metin2 servers. This configuration provides a solid starting point for developers and system administrators who install Metin2 servers on FreeBSD systems.
