[How To] Prepare FreeBSD for Metin2

12/27/2014 23:09 .Shōgun#1
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
12/27/2014 23:32 [-Lee-]#2
Welcome Back and nice tutorial. Are you using MS Office?

I love your work :)
12/27/2014 23:36 Poccix#3
Unfortunally you are 3 days to late for a christmas-release...
but anyway its better than 20000 maps :D
12/27/2014 23:36 Yiv#4
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
12/27/2014 23:37 .Shōgun#5
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.
12/27/2014 23:42 [-Lee-]#6
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
12/28/2014 00:39 .Marcel'#7
Ich bin erstaunt wie bereits bekannte dinge gefeiert werden...
12/28/2014 01:04 Яeya#8
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.
12/28/2014 10:53 Alergix2#9
Sehr nice Tutorial!#

Aber bereits bekannt :/
12/28/2014 10:56 .Shōgun#10
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.
12/28/2014 11:17 lollo_9_1#11
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)

[Only registered and activated users can see links. Click Here To Register...]
12/28/2014 15:20 .Merzah#12
#
12/28/2014 16:21 Kyuso /..#13
Sehr schönes Tutorial danke dafür

- Hausmeister Hardy
12/28/2014 19:44 »Côoper«™#14
Thanks for this tutorial, really helpful as it's in english.
12/28/2014 21:16 kstmr#15
from what i have test if it is a new installation i would always start with updating pkg and the rest is easy