Register for your free account! | Forgot your password?

You last visited: Today at 16:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[How To] Prepare FreeBSD for Metin2

Discussion on [How To] Prepare FreeBSD for Metin2 within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
[How To] Prepare FreeBSD for Metin2

Hi, since many people had troubles with outdated or plain wrong tutorials, I am writing a new one on how to prepare your Metin2 dedicated or VPS to run any kind of Metin2 files.

The first thing we should do is update our operating system to the latest version:

freebsd-update fetch install

Note: If you get a warning about End Of Life, consider upgrading to the most recent supported version (8.4, 9.3 or 10.1). If you have FreeBSD 8.2 for example, you can upgrade to 8.4 with:

freebsd-update upgrade -r 8.4-RELEASE


Now we are going to extract or update the ports, depending on whether you extracted them before or not, you have to run either of these commands:

portsnap fetch extract

if it's the first time, or:

portsnap fetch update

if it's not the first time you download ports.

If we are running a 64 bit version of FreeBSD, we will install the 32 bit libraries now. Replace the version number in the link below with your FreeBSD's version number. You can find out which version you are running with uname -a.

cd /tmp
fetch ftp://ftp.freebsd.org/pub/FreeBSD/re...EASE/lib32.txz
tar xfp lib32.txz -C /


Note: If you get an error here about not being able to unlink existing object, this means that you already have them installed.

Now it's time to install mysql 5.6, the most recent version, as it performs better than the older ones.

pkg install mysql56-server

Note: If this command fails for you, you need to install the pkg tool:

cd /usr/ports/ports-mgmt/pkg
make install UPGRADEPKG=1 clean
pkg2ng


Next we add it to start on boot:

echo "mysql_enable=YES" >> /etc/rc.conf

And start MySQL server:

service mysql-server start

After uploading your database, give the correct permissions and upgrade your tables to the server's version:

chown -R mysql /var/db/mysql
mysql_upgrade


Optional

Running old files

Install the compatibility packages to use games compiled for old versions of FreeBSD.

cd /usr/ports/misc/compat7x
make install clean


We can install the compat8x, compat9x, etc. if we need compatibility with those operating systems in a newer version. Library errors are often solved by installing these packages.

Installing python for qc

pkg install python

OVH

Kimsufi, SoYouStart and OVH dedicated servers use some custom installation of FreeBSD and will throw an error when trying to run or install MySQL. You need to rebuild the password database to fix it with this command:

pwd_mkdb -p /etc/master.passwd
.Shōgun is offline  
Thanks
26 Users
Old 12/27/2014, 23:32   #2

 
elite*gold: 192
Join Date: Aug 2009
Posts: 5,797
Received Thanks: 3,141
Welcome Back and nice tutorial. Are you using MS Office?

I love your work
[-Lee-] is offline  
Thanks
2 Users
Old 12/27/2014, 23:36   #3
 
Poccix's Avatar
 
elite*gold: 44
Join Date: Dec 2009
Posts: 1,696
Received Thanks: 3,835
Unfortunally you are 3 days to late for a christmas-release...
but anyway its better than 20000 maps
Poccix is offline  
Thanks
1 User
Old 12/27/2014, 23:36   #4
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Quote:
Originally Posted by [-Lee-] View Post
Welcome Back and nice tutorial. Are you using MS Office?
I don't think he's using it because you're the best in developer using MS office!

Welcome back!

Regards
Yiv is offline  
Old 12/27/2014, 23:37   #5
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
Quote:
Originally Posted by [-Lee-] View Post
Welcome Back and nice tutorial. Are you using MS Office?
Thanks, I don't understand what you mean with MS Office.
.Shōgun is offline  
Old 12/27/2014, 23:42   #6

 
elite*gold: 192
Join Date: Aug 2009
Posts: 5,797
Received Thanks: 3,141
Quote:
Originally Posted by .Shōgun View Post
Thanks, I don't understand what you mean with MS Office.
btw .. Brathering.


Ah it was a Joke... Sometimes if i am working on my server , for example with the mob drop.text or the special item.text i am using excel for a faster processing

B2T: maybe you can make your topic more structured. For example put the commands in a Quote
[-Lee-] is offline  
Thanks
1 User
Old 12/28/2014, 00:39   #7


 
.Marcel''s Avatar
 
elite*gold: 100
Join Date: Sep 2009
Posts: 8,136
Received Thanks: 2,760
Ich bin erstaunt wie bereits bekannte dinge gefeiert werden...
.Marcel' is offline  
Thanks
7 Users
Old 12/28/2014, 01:04   #8
 
elite*gold: 596
Join Date: Oct 2014
Posts: 481
Received Thanks: 204
Quote:
Originally Posted by .Marcel' View Post
Ich bin erstaunt wie bereits bekannte dinge gefeiert werden...
Da geb ich dir vollkommen , recht.
Würde das ein anderer machen der kein Ruf hat , würde nur #closerequest gepostet werden , weil solch Threads schon gab.
Nichts desto trotz , nette Geste. Thanks Shogun.

Konfiguration der Firewall oder allgemein etwas zur Security wäre in dieser Zeit am besten zu releasen bzw nen guide für die Leute .

Trotzdem Dankeschön.
Яeya is offline  
Old 12/28/2014, 10:53   #9
 
Alergix2's Avatar
 
elite*gold: 103
Join Date: Aug 2014
Posts: 1,425
Received Thanks: 315
Sehr nice Tutorial!#

Aber bereits bekannt :/
Alergix2 is offline  
Old 12/28/2014, 10:56   #10
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
Quote:
Originally Posted by [-Lee-] View Post
btw .. Brathering.


Ah it was a Joke... Sometimes if i am working on my server , for example with the mob drop.text or the special item.text i am using excel for a faster processing

B2T: maybe you can make your topic more structured. For example put the commands in a Quote
Try using OpenOffice Calc, also for protos

Quote:
Originally Posted by .Marcel' View Post
Ich bin erstaunt wie bereits bekannte dinge gefeiert werden...
The existing tutorials do not work anymore. They were made for FreeBSD 7 or 8, yet for example the pkg tool was replaced recently, and freebsd-update didn't exist in those versions earlier. Also, most of them are written by people who don't really have much idea what the commands do. That's why I made in a new one.
.Shōgun is offline  
Old 12/28/2014, 11:17   #11
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Quote:
Originally Posted by .Shōgun View Post
Note: If this command fails for you, you need to install the pkg tool:

cd /usr/ports/ports-mgmt/pkg
make install UPGRADEPKG=1 clean
pkg2ng
On freebsd 9.X, you also need to re-write the configuration files manually. (at least, on almost server-farms' default os installations)

lollo_9_1 is offline  
Thanks
1 User
Old 12/28/2014, 15:20   #12
 
elite*gold: 0
Join Date: Dec 2014
Posts: 20
Received Thanks: 1
#
.Merzah is offline  
Old 12/28/2014, 16:21   #13


 
Kyuso /..'s Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 1,583
Received Thanks: 2,397
Sehr schönes Tutorial danke dafür

- Hausmeister Hardy
Kyuso /.. is offline  
Old 12/28/2014, 19:44   #14
 
»Côoper«™'s Avatar
 
elite*gold: 48
Join Date: Feb 2011
Posts: 974
Received Thanks: 264
Thanks for this tutorial, really helpful as it's in english.
»Côoper«™ is offline  
Old 12/28/2014, 21:16   #15
 
kstmr's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 95
Received Thanks: 29
from what i have test if it is a new installation i would always start with updating pkg and the rest is easy
kstmr is offline  
Reply




All times are GMT +2. The time now is 16:02.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.