[Video Tutorial] Setup TFS + ZnoteAAC on Ubuntu 16.04 LTS Linux Server

Fu Manchu

Sepultra™
Joined
Jan 28, 2011
Messages
439
Best answers
0
Reaction score
9
spend the hour watching the videos. this tutorial for the most part is copy and paste. but there is some info in the video your going to want to hear. and there is great support response on it aswell. My question where answerd to the best of there knowledge, and everything worked out successfully. also im using the desktop version 16.04. phpmyadmin.config << when i try to open and edit it. its just creates a new file. not sure if maybe it in a diffrent directorie or what... and this would be the file you edit to change they way you get to phpmyadmin.
 
OP
Damon

Damon

Check my status to contact me :)
Joined
Mar 26, 2011
Messages
6,090
Best answers
1
Reaction score
1,849
Location
Germany
spend the hour watching the videos. this tutorial for the most part is copy and paste. but there is some info in the video your going to want to hear. and there is great support response on it aswell. My question where answerd to the best of there knowledge, and everything worked out successfully. also im using the desktop version 16.04. phpmyadmin.config << when i try to open and edit it. its just creates a new file. not sure if maybe it in a diffrent directorie or what... and this would be the file you edit to change they way you get to phpmyadmin.
Normally phpmyadmin config would be located at /etc/apache2/conf-available/phpmyadmin.conf . Sometimes the main config file is also located at /etc/phpmyadmin/config.inc.php according to phpmyadmin wiki ( https://help.ubuntu.com/lts/serverguide/phpmyadmin.html )
 

Fiodor

Lua & Maps
Joined
Mar 14, 2009
Messages
400
Best answers
0
Reaction score
10
Location
Poland
I just followed all the steps from your tutorial, but I don't understand one thing. What is the version of TFS I just compiled? I wanted to use 0.3.6 Crying Damson, but there was nowhere an option to choose, it's just "forgotten server" and it has it's own config.lua and all the files. Can you explain it to me?
 
OP
Damon

Damon

Check my status to contact me :)
Joined
Mar 26, 2011
Messages
6,090
Best answers
1
Reaction score
1,849
Location
Germany
I just followed all the steps from your tutorial, but I don't understand one thing. What is the version of TFS I just compiled? I wanted to use 0.3.6 Crying Damson, but there was nowhere an option to choose, it's just "forgotten server" and it has it's own config.lua and all the files. Can you explain it to me?
You are compiling latest TFS from the official TFS github repo :) Thus it is no TFS version you choose but the latest. You can exchange the build files with the one of the TFS version you want to compile it with older TFS versions.
 

Fiodor

Lua & Maps
Joined
Mar 14, 2009
Messages
400
Best answers
0
Reaction score
10
Location
Poland
You can exchange the build files with the one of the TFS version you want to compile it with older TFS versions.
can you tell me exactly what does that mean? In Crying Damson files there is no 'CMakelist' and when I paste source files into forgottenserver/src it doesn't work at all.
 
OP
Damon

Damon

Check my status to contact me :)
Joined
Mar 26, 2011
Messages
6,090
Best answers
1
Reaction score
1,849
Location
Germany
can you tell me exactly what does that mean? In Crying Damson files there is no 'CMakelist' and when I paste source files into forgottenserver/src it doesn't work at all.
Thats because you are using windows sources. In fact I am not sure where linux sources for tfs < 1.0 can be obtained @HalfAway ?
 

Fiodor

Lua & Maps
Joined
Mar 14, 2009
Messages
400
Best answers
0
Reaction score
10
Location
Poland
anyway thanks man, it's a great tutorial and it really helped me a lot
 
Joined
Sep 3, 2011
Messages
3,677
Best answers
19
Reaction score
2,324
Location
Sweden
so this https://otland.net/threads/8-60-the-forgotten-server-0-3-6-crying-damson-v8.147913/ can't be compiled on linux because those sources are for windows? ;/ eh
I just want to compile something to start 8.6 tibia client server on ubuntu, but as I see now it's much harder than I expected
That can be compiled for Linux.

Install the required libs:
Code:
apt-get install build-essential libxml2-dev libxml++2.6-dev liblua5.1-0-dev libboost-all-dev libmysql++-dev libgmp3-dev liblua5.1-sql-mysql-dev zlib1g-dev dh-autoreconf
CD into the folder with all the source files.
Then run these command:
Code:
sh autogen.sh
Code:
./configure --enable-mysql
Code:
sh build.sh
 

Fiodor

Lua & Maps
Joined
Mar 14, 2009
Messages
400
Best answers
0
Reaction score
10
Location
Poland
That can be compiled for Linux.

Install the required libs:
Code:
apt-get install build-essential libxml2-dev libxml++2.6-dev liblua5.1-0-dev libboost-all-dev libmysql++-dev libgmp3-dev liblua5.1-sql-mysql-dev zlib1g-dev dh-autoreconf
CD into the folder with all the source files.
Then run these command:
Code:
sh autogen.sh
Code:
./configure --enable-mysql
Code:
sh build.sh
when I'm trying to install libs:
Code:
E: Couldn't find any package by glob 'liblua5.1-sql-mysql-dev'
when I type sh build.sh
Code:
sh: 0: Can't open build.sh
:(
 
OP
Damon

Damon

Check my status to contact me :)
Joined
Mar 26, 2011
Messages
6,090
Best answers
1
Reaction score
1,849
Location
Germany
when I'm trying to install libs:
Code:
E: Couldn't find any package by glob 'liblua5.1-sql-mysql-dev'
when I type sh build.sh
Code:
sh: 0: Can't open build.sh
:(
Is build.sh executable? If not chmod +x build.sh and then ./build.sh
 

Fiodor

Lua & Maps
Joined
Mar 14, 2009
Messages
400
Best answers
0
Reaction score
10
Location
Poland
I compiled it somehow, but server crashes after using spells on paladin and knight
and I don't know what miracle this is, but I downloaded fresh tfs 0.4 with default data files and that bug appears there too (!), even though those 2 servers work on different files (!). I'm so confused
https://otland.net/threads/spells-crash-server.245512/
 

ojje

Excellent OT User
Joined
Dec 30, 2008
Messages
20
Best answers
0
Reaction score
1
Location
Sweden
hello, i get some error message on your step:
sudo cmake ..
i have recorded it as video and will post it here aswell if you need it , if you need more info just write to me
Code:
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/include/x86_64-linux-gnu
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find PugiXML (missing: PUGIXML_INCLUDE_DIR PUGIXML_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindPugiXML.cmake:5 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:27 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/ojje/forgottenserver/build/CMakeFiles/CMakeOutput.log".
See also "/home/ojje/forgottenserver/build/CMakeFiles/CMakeError.log".
[email protected]:/home/ojje/forgottenserver/build# sudo make
make: *** Inga mål angavs och ingen makefil hittades.  Stannar.
[email protected]:/home/ojje/forgottenserver/build# cat /home/ojje/forgottenserver/build/CMakeFiles/CMakeError.log"
> cat /home/ojje/forgottenserver/build/CMakeFiles/CMakeError.log"^C
[email protected]:/home/ojje/forgottenserver/build# cat /home/ojje/forgottenserver/build/CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
Change Dir: /home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_23ec3/fast"
/usr/bin/make -f CMakeFiles/cmTC_23ec3.dir/build.make CMakeFiles/cmTC_23ec3.dir/build
make[1]: Entering directory '/home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_23ec3.dir/src.cxx.o
/usr/bin/c++     -Wall -Werror -pipe -fno-strict-aliasing -std=c++11 -DCOMPILER_KNOWS_STDLIB   -stdlib=libc++ -o CMakeFiles/cmTC_23ec3.dir/src.cxx.o -c /home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
CMakeFiles/cmTC_23ec3.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_23ec3.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_23ec3.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_23ec3/fast' failed
make: *** [cmTC_23ec3/fast] Error 2

Source file was:
int main() { return 0; }
[email protected]:/home/ojje/forgottenserver/build#


Code:
Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
Change Dir: /home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_23ec3/fast"
/usr/bin/make -f CMakeFiles/cmTC_23ec3.dir/build.make CMakeFiles/cmTC_23ec3.dir/build
make[1]: Entering directory '/home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_23ec3.dir/src.cxx.o
/usr/bin/c++     -Wall -Werror -pipe -fno-strict-aliasing -std=c++11 -DCOMPILER_KNOWS_STDLIB   -stdlib=libc++ -o CMakeFiles/cmTC_23ec3.dir/src.cxx.o -c /home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
CMakeFiles/cmTC_23ec3.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_23ec3.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_23ec3.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_23ec3/fast' failed
make: *** [cmTC_23ec3/fast] Error 2

Source file was:
int main() { return 0; }

Would really appreciate if you could help me :)
 
Last edited:
OP
Damon

Damon

Check my status to contact me :)
Joined
Mar 26, 2011
Messages
6,090
Best answers
1
Reaction score
1,849
Location
Germany
hello, i get some error message on your step:
sudo cmake ..
i have recorded it as video and will post it here aswell if you need it , if you need more info just write to me
Code:
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/include/x86_64-linux-gnu
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find PugiXML (missing: PUGIXML_INCLUDE_DIR PUGIXML_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindPugiXML.cmake:5 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:27 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/ojje/forgottenserver/build/CMakeFiles/CMakeOutput.log".
See also "/home/ojje/forgottenserver/build/CMakeFiles/CMakeError.log".
[email protected]:/home/ojje/forgottenserver/build# sudo make
make: *** Inga mål angavs och ingen makefil hittades.  Stannar.
[email protected]:/home/ojje/forgottenserver/build# cat /home/ojje/forgottenserver/build/CMakeFiles/CMakeError.log"
> cat /home/ojje/forgottenserver/build/CMakeFiles/CMakeError.log"^C
[email protected]:/home/ojje/forgottenserver/build# cat /home/ojje/forgottenserver/build/CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
Change Dir: /home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_23ec3/fast"
/usr/bin/make -f CMakeFiles/cmTC_23ec3.dir/build.make CMakeFiles/cmTC_23ec3.dir/build
make[1]: Entering directory '/home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_23ec3.dir/src.cxx.o
/usr/bin/c++     -Wall -Werror -pipe -fno-strict-aliasing -std=c++11 -DCOMPILER_KNOWS_STDLIB   -stdlib=libc++ -o CMakeFiles/cmTC_23ec3.dir/src.cxx.o -c /home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
CMakeFiles/cmTC_23ec3.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_23ec3.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_23ec3.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_23ec3/fast' failed
make: *** [cmTC_23ec3/fast] Error 2

Source file was:
int main() { return 0; }
[email protected]:/home/ojje/forgottenserver/build#


Code:
Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
Change Dir: /home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_23ec3/fast"
/usr/bin/make -f CMakeFiles/cmTC_23ec3.dir/build.make CMakeFiles/cmTC_23ec3.dir/build
make[1]: Entering directory '/home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_23ec3.dir/src.cxx.o
/usr/bin/c++     -Wall -Werror -pipe -fno-strict-aliasing -std=c++11 -DCOMPILER_KNOWS_STDLIB   -stdlib=libc++ -o CMakeFiles/cmTC_23ec3.dir/src.cxx.o -c /home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
CMakeFiles/cmTC_23ec3.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_23ec3.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_23ec3.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/ojje/forgottenserver/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_23ec3/fast' failed
make: *** [cmTC_23ec3/fast] Error 2

Source file was:
int main() { return 0; }

Would really appreciate if you could help me :)
Can you please post your command history using the "history" command?
 

ojje

Excellent OT User
Joined
Dec 30, 2008
Messages
20
Best answers
0
Reaction score
1
Location
Sweden
Can you please post your command history using the "history" command?
Code:
    1  cd
    2  sudo apt-get -y install apache2
    3  sudo systemctl enable apache2
    4  sudo systemctl start apache2
    5  sudo systemctl status apache2
    6  sudo apt-get -y install mysql-server mysql-client
    7  sudo systemctl status mysql
    8  sudo apt-get -y update
    9  sudo apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi  php7.0 libapache2-mod-php7.0
   10  php -v
   11  sudo apt-get -y update
   12  php -v
   13  sudo systemctl status mysql
   14  sudo apt-get -y install phpmyadmin
   15  history
   16  sudo nano /etc/apache2/apache2.conf
   17  sudo apt-get -y install php-mbstring php7.0-mbstring php-gettext
   18  sudo systemctl restart apache2
   19  sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf
   20  sudo systemctl restart apache2
   21  sudo apt-get -y install luajit
   22  sudo apt-get -y install git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev
   23  sudo apt-get -y update
   24  sudo git clone https://github.com/otland/forgottenserver.git
   25  cd forgottenserver
   26  sudo mkdir build && cd build
   27  sudo cmake ..
   28  history
 
Last edited:
OP
Damon

Damon

Check my status to contact me :)
Joined
Mar 26, 2011
Messages
6,090
Best answers
1
Reaction score
1,849
Location
Germany
Retry and Run apt-get Update/Upgrade before
 

ojje

Excellent OT User
Joined
Dec 30, 2008
Messages
20
Best answers
0
Reaction score
1
Location
Sweden
Retry and Run apt-get Update/Upgrade before
I've did, you cant see it in the history command of course because I did it on the first user, when i switch user you only see those commands in history
 
Top