Hello.
--Update 2018 Version Debian 9--
Here is updated version for latest Debian 9 as Debian 6 is technically dead
OS: Debian 9.4 x64
First of all we update the OS with follow commands
Let's make OTS dir let make one in / but you can choose any location
Now we download our engine source
first create source folder
Now Download
We install zip and unzip the zip with command
Now we install required libs required for the engine with follow command
Now we have everything installed to make the engine.
Lets start the final part
You should now have file called
theforgottenserver
move it to /ots with command
Now you can upload your OTS file to /ots
and turn on ots with command
And that's all
--------------------------------------------------
--------------------------------------------------
OS: Debian 6 x64
Lots of people have problem with Linux for Tibia 8.6 so here is my way how I do it
Note:
every Linux dist like debian,ubuntu have different version of libboost
to find your version go
and last lines
libboost1.49-all-dev - Boost C++ Libraries development files (ALL)
libboost1.49-dbg - Boost C++ Libraries with debug symbols
libboost1.49-dev - Boost C++ Libraries development files
libboost1.49-doc - Boost.org libraries documentation
so its libboost1.49 all you need is change number in apt-get install libboost1.49-dev........
and apt-get install libboost1.49......
after you will have in folder 1 file theforgottenserver move it to ots folder
put your data and mods and config
then set you datebase
then
make new user
exit of putty login to new user
then go to
and write
and turn on server
any questions ask on this forum
if you how the follow error
all you need is edit these files scriptmanager.cpp and luascript.cpp
and change
std::string s = it->leaf();
to
std::string s = it->path().filename().string();
Best Regards
mlody.1039
--Update 2018 Version Debian 9--
Here is updated version for latest Debian 9 as Debian 6 is technically dead
OS: Debian 9.4 x64
First of all we update the OS with follow commands
Code:
apt update
Code:
apt upgrade
Let's make OTS dir let make one in / but you can choose any location
Code:
mkdir /ots
Code:
cd /ots
Now we download our engine source
first create source folder
Code:
mkdir source
Code:
cd source
Now Download
Code:
wget https://domain.glass/source.zip
We install zip and unzip the zip with command
Code:
apt install zip
Code:
unzip source.zip
Now we install required libs required for the engine with follow command
Code:
apt install libboost1.62-dev
Code:
apt install liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 libsqlite0 libsqlite0-dev libsqlite3-0 libsqlite3-dev sqlite3 lua5.1 libmysql++-dev libgmp3-dev subversion make g++ libxml2 libxml2-dev libxml++2.6-dev libmariadbclient-dev mariadb-client mariadb-common mariadb-server gcc cpp automake autoconf pkg-config
Code:
apt install libboost1.62
Now we have everything installed to make the engine.
Lets start the final part
Code:
chmod +x autogen.sh
Code:
./configure CFLAGS=-fPIC CXXFLAGS=-fPIC
Code:
./autogen.sh && ./configure --enable-mysql --enable-server-diag
Code:
sed -i 's/ -lxml2$/ -lxml2 -lpthread/' Makefile
Code:
make
You should now have file called
theforgottenserver
move it to /ots with command
Code:
mv theforgottenserver /ots
Now you can upload your OTS file to /ots
and turn on ots with command
Code:
screen ./theforgottenserver
And that's all
--------------------------------------------------
--------------------------------------------------
OS: Debian 6 x64
Lots of people have problem with Linux for Tibia 8.6 so here is my way how I do it
Code:
apt-get update
Code:
apt-get upgrade
Code:
cd /home
Code:
mkdir ots
Code:
cd ots
Code:
wget freesa-mp.com/1.zip
Note:
every Linux dist like debian,ubuntu have different version of libboost
to find your version go
Code:
apt-cache search libboost
libboost1.49-all-dev - Boost C++ Libraries development files (ALL)
libboost1.49-dbg - Boost C++ Libraries with debug symbols
libboost1.49-dev - Boost C++ Libraries development files
libboost1.49-doc - Boost.org libraries documentation
so its libboost1.49 all you need is change number in apt-get install libboost1.49-dev........
and apt-get install libboost1.49......
Code:
apt-get install libboost1.49-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 libsqlite0 libsqlite0-dev libsqlite3-0 libsqlite3-dev sqlite3 lua5.1 libmysql++-dev libgmp3-dev subversion make g++ libxml2 libxml2-dev libxml++2.6-dev libmysqlclient15-dev mysql-client-5.5 mysql-common mysql-server-5.5 gcc cpp automake autoconf pkg-config
Code:
apt-get install libboost1.49
Code:
apt-get install zip
Code:
unzip 1.zip
Code:
cd 1
Code:
chmod +x autogen.sh
Code:
./autogen.sh && ./configure --enable-mysql --enable-server-diag && make
after you will have in folder 1 file theforgottenserver move it to ots folder
put your data and mods and config
then set you datebase
then
make new user
Code:
adduser ots
exit of putty login to new user
then go to
Code:
cd /home/ots
and write
Code:
screen
and turn on server
Code:
./theforgottenserver
any questions ask on this forum
if you how the follow error
Code:
scriptmanager.cpp: In member function ‘bool ScriptingManager::loadMods()’:
scriptmanager.cpp:122:23: error: ‘class boost::filesystem3::directory_entry’ has no member named ‘leaf’
make[1]: *** [scriptmanager.o] Error 1
all you need is edit these files scriptmanager.cpp and luascript.cpp
and change
std::string s = it->leaf();
to
std::string s = it->path().filename().string();
Best Regards
mlody.1039
Last edited: