• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Configuration Ubuntu - From nothing to complete server (TFS, ModernAAC, MySQL, Lighttpd)!

Start the server
The server can be started really easy, even with auto restart:
Code:
cd
screen -A -S tfs
cd tfs
while true; do ./theforgottenserver; done
Click Ctrl + A + D to put the screen session into the background. If you want to resume the session run:
Code:
screen -r tfs
To kill the screen run:
Code:
screen -X -S tfs
to make sure TFS is not running, you can also use this:
Code:
killall -9 theforgottenserver
Note: The auto restarter WILL kickin if you don't kill the screen.

stian, Im new using LINUX, and I run the server with

cd /home
cd folder
./TFS

And then it ask for super user and ask me to say y/n... How to disable it and also, how to make works the restarter... :S
 
[4:31:41.137] >> Loading config (config.lua)
[4:31:41.138] >> Opening logs
[4:31:41.144] >> Opening logs

Hey because error?
 
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:38: Boost::condition_variable::~condition_variable(): Assertion `!pthread_cond_destroy(&cond)' failed.
Cancelado
[10:7:33.568] the forgotten server, version 0.4_dev ()
[10:7:33.568] compiled with gnu c++ version 4.4.3 at jul 2 2010, 09:52:26.
[10:7:33.568] a server developed by elf, talaturen, kaczooh, stian and kornholijo.
[10:7:33.568] visit our forum for updates, support and resources: http://otland.net.

[10:7:33.568] >> loading config (config.lua)

[10:7:33.569] > error: Unable to load config.lua!


How can i edit the lua? I compiled and try nano -w config.lua and just show me a blank document ;/ help!
Thx =)

or how can i get this work? ;o

solved!
 
Last edited:
Help error in compile:
o theforgottenserver actions.o allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o depot.o dispatcher.o e xception.o fileloader.o game.o globalevent.o group.o house.o housetile.o ioban. o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items .o luascript.o mailbox.o manager.o map.o monster.o monsters.o movement.o network message.o npc.o otserv.o outfit.o outputmessage.o party.o player.o position.o pr otocol.o protocolgame.o protocolhttp.o protocollogin.o protocolold.o quests.o ra ids.o rsa.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talka ction.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1 -lmysqlclient -lcryptopp -lboost_filesystem-mt - lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lz -lg mp -lxml2
actions.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::sys tem::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::sys tem::get_posix_category()'
baseevents.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::sys tem::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::sys tem::get_posix_category()'
beds.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::sys tem::get_posix_category()'
beds.o:/usr/include/boost/system/error_code.hpp:209: more undefined references t o `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: ** [theforgottenserver] Erro 1
make[1]: Leaving directory `/home/trunk.r3664'
make: ** [all] Error 2

Solved!
 
Last edited:
Error!

I got this error while trying to download Modern Acc using this code:
Code:
cd /var/www
chmod 666 . #Safe, just gives us SVN permissions for a while
svn co svn://svn.tech1.org/modernaac/trunk .
chmod 777 -R . #not really needed, but required in order to edit pages etc.

Code:
aklu@aklu-laptop:~$ cd /var/www
aklu@aklu-laptop:/var/www$ chmod 666 . #Safe, just gives us SVN permissions for a while
chmod: cambiando los permisos de «.»: Operación no permitida
aklu@aklu-laptop:/var/www$ svn co svn://svn.tech1.org/modernaac/trunk .
svn: No se puede crear el directorio «.svn»: Permiso denegado
aklu@aklu-laptop:/var/www$ chmod 777 -R . #not really needed, but required in order to edit pages etc.
chmod: cambiando los permisos de «.»: Operación no permitida
chmod: cambiando los permisos de «./index.lighttpd.html»: Operación no permitida
aklu@aklu-laptop:/var/www$

WHats wrong? Thx!
 
Im having the same problem, and the thing is that on /var/www doesnt exist the folder phpmyadmin.

EDITED:

IM A MOTHERFUCKEBRAIN! I found the solution, and I have 1 hour using LINUX! IM SO EXCITED!

The thing is that you need to start it...

/etc/init.d/mysql start

From what I've experienced before with Ubuntu it's that it auto start however. You might have been unlucky.

Anyway, PhpMyAdmin should have given you a error that it would not connect to MySQL.

Ubuntu Karmic - 64 Bit


run?
Ehm, yes?
 
3241-linuxubuntuserver.png


Assuming I shall just ignore everything here?
 
@Znote: If you want remote access, choose OpenSSH. Otherwise ignore everything.
 
Help Dont Work For Me Ubuntu 10.4

Ok. Begin by downloading the newest Ubuntu server from Ubuntu homepage | Ubuntu (currently 10.04). Burn it to a CD and boot up on your server. People using VPS or dedicated might request reinstallation from the companies.

Note: Choose OpenSSD if you want remote access.

When your done installing (it doesn't need any futher guiding as there is very good explainations, then login, either using SSH (using putty from PuTTY: a free telnet/ssh client) or from the console directly. Now a console window with shell access will start up and you will be able to do basic things on your server. We begin my installing the webserver.

Mysql / Webserver
Run this commands:
Code:
sudo apt-get install mysql-server
(It will now ask you for the a password for the root user)

Code:
sudo apt-get install lighttpd php5-cgi
sudo lighty-enable-mod fastcgi
Code:
sudo apt-get install phpmyadmin
(First question is your mysql root password, leave the second black to make a random PMA password, and in the list remember to select "lighttpd").

Try to access your server from: http://yourserver/phpmyadmin/install.php

Next step is to install TFS:
This is the steps for 0.3. 0.4 require you to upload the package to the server using winscp or filezilla first. I'll later add a tutorial step how to update rev without replacing your own edits.

First run:
Code:
cd
sudo apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev libcrypto++-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen

Then 0.3.6pl1:
svn co forgottenserver - Revision 81: /tags/0.3.6pl1 tfs
cd tfs

[/code]
0.4:
Upload the .tar.gz rev to your home directory. And run this:
Code:
tar xf *trunk*.tar.gz
mv *trunk* tfs
chmod 777 -R tfs

Now run this:
Code:
./autogen.sh
./configure --enable-mysql
make -j 2
when it's done, you need to edit the config.lua file (using nano -w config.lua or winscp/filezilla).

Start the server
The server can be started really easy, even with auto restart:
Code:
cd
screen -A -S tfs
cd tfs
while true; do ./theforgottenserver; done

Click Ctrl + A + D to put the screen session into the background. If you want to resume the session run:
Code:
screen -r tfs

To kill the screen run:
Code:
screen -X -S tfs
to make sure TFS is not running, you can also use this:
Code:
killall -9 theforgottenserver
Note: The auto restarter WILL kickin if you don't kill the screen.

Last step is to install ModernAAC Trunk:
Code:
cd /var/www
sudo svn co svn://svn.tech1.org/modernaac/trunk .
sudo chown www-data -R .
sudo chmod 777 -R .

First go to http://youserver/phpmyadmin/index.php, login and create a new database. Name it "theforgottenserver".
Go to: http://yourserver/, and you'll be redirected to the installation page. Fill out the form, and submit.

To update the modernaac rev run:
Code:
cd /var/www
sudo svn up
Don't forget to upload your own data and mods to TFS! :)

If the server is ready to go public, then please sign it up on VAPus - Otlist ;)

Code:
root@crmb-desktop:~# mv trunk.r3746 tfs
root@crmb-desktop:~# chmod 777 -R tfs
root@crmb-desktop:~# ./autogen.sh
bash: ./autogen.sh: No existe el fichero ó directorio
root@crmb-desktop:~# cd tfs
root@crmb-desktop:~/tfs# ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:3: installing `./install-sh'
configure.ac:3: installing `./missing'
Makefile.am: installing `./depcomp'
autoreconf: Leaving directory `.'
root@crmb-desktop:~/tfs# ./configure --enable-mysql
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ceil... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.7.6)
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init2 in -lgmp... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lz... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking boost/asio.hpp usability... yes
checking boost/asio.hpp presence... yes
checking for boost/asio.hpp... yes
checking boost/tr1/unordered_set.hpp usability... yes
checking boost/tr1/unordered_set.hpp presence... yes
checking for boost/tr1/unordered_set.hpp... yes
checking cryptopp/sha.h usability... yes
checking cryptopp/sha.h presence... yes
checking for cryptopp/sha.h... yes
checking cryptopp/md5.h usability... yes
checking cryptopp/md5.h presence... yes
checking for cryptopp/md5.h... yes
checking cryptopp/adler32.h usability... yes
checking cryptopp/adler32.h presence... yes
checking for cryptopp/adler32.h... yes
checking cryptopp/hex.h usability... yes
checking cryptopp/hex.h presence... yes
checking for cryptopp/hex.h... yes
checking cryptopp/base64.h usability... yes
checking cryptopp/base64.h presence... yes
checking for cryptopp/base64.h... yes
checking cryptopp/hmac.h usability... yes
checking cryptopp/hmac.h presence... yes
checking for cryptopp/hmac.h... yes
checking cryptopp/cryptlib.h usability... yes
checking cryptopp/cryptlib.h presence... yes
checking for cryptopp/cryptlib.h... yes
checking for main in -lcryptopp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for main in -lmysqlclient... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

theforgottenserver 0.4

Server diagnostics.......... : no
Login server mode........... : no
OTAdmin protocol............ : no
Root run permission......... : no
Login server mode........... : no
Home-directory configuration : no
OTServ custom allocator..... : no
Debug build................. : no
Using LuaJIT................ : no

Build with MySQL............ : yes
Build with SQLite........... : no
Build with PostgreSQL....... : no

Configure complete, now you may type './build.sh'.
root@crmb-desktop:~/tfs# make -j 2
make  all-am
make[1]: se ingresa al directorio `/root/tfs'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT allocator.o -MD -MP -MF .deps/allocator.Tpo -c -o allocator.o allocator.cpp
mv -f .deps/allocator.Tpo .deps/allocator.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT baseevents.o -MD -MP -MF .deps/baseevents.Tpo -c -o baseevents.o baseevents.cpp
mv -f .deps/baseevents.Tpo .deps/baseevents.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT beds.o -MD -MP -MF .deps/beds.Tpo -c -o beds.o beds.cpp
mv -f .deps/actions.Tpo .deps/actions.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT chat.o -MD -MP -MF .deps/chat.Tpo -c -o chat.o chat.cpp
mv -f .deps/beds.Tpo .deps/beds.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT combat.o -MD -MP -MF .deps/combat.Tpo -c -o combat.o combat.cpp
mv -f .deps/chat.Tpo .deps/chat.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT condition.o -MD -MP -MF .deps/condition.Tpo -c -o condition.o condition.cpp
mv -f .deps/combat.Tpo .deps/combat.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT configmanager.o -MD -MP -MF .deps/configmanager.Tpo -c -o configmanager.o configmanager.cpp
mv -f .deps/condition.Tpo .deps/condition.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT connection.o -MD -MP -MF .deps/connection.Tpo -c -o connection.o connection.cpp
mv -f .deps/configmanager.Tpo .deps/configmanager.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT container.o -MD -MP -MF .deps/container.Tpo -c -o container.o container.cpp
mv -f .deps/container.Tpo .deps/container.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT creature.o -MD -MP -MF .deps/creature.Tpo -c -o creature.o creature.cpp
mv -f .deps/connection.Tpo .deps/connection.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT creatureevent.o -MD -MP -MF .deps/creatureevent.Tpo -c -o creatureevent.o creatureevent.cpp
mv -f .deps/creatureevent.Tpo .deps/creatureevent.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT cylinder.o -MD -MP -MF .deps/cylinder.Tpo -c -o cylinder.o cylinder.cpp
mv -f .deps/creature.Tpo .deps/creature.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT database.o -MD -MP -MF .deps/database.Tpo -c -o database.o database.cpp
mv -f .deps/cylinder.Tpo .deps/cylinder.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT databasemanager.o -MD -MP -MF .deps/databasemanager.Tpo -c -o databasemanager.o databasemanager.cpp
mv -f .deps/database.Tpo .deps/database.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT databasemysql.o -MD -MP -MF .deps/databasemysql.Tpo -c -o databasemysql.o databasemysql.cpp
mv -f .deps/databasemysql.Tpo .deps/databasemysql.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT depot.o -MD -MP -MF .deps/depot.Tpo -c -o depot.o depot.cpp
mv -f .deps/databasemanager.Tpo .deps/databasemanager.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT dispatcher.o -MD -MP -MF .deps/dispatcher.Tpo -c -o dispatcher.o dispatcher.cpp
mv -f .deps/depot.Tpo .deps/depot.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT exception.o -MD -MP -MF .deps/exception.Tpo -c -o exception.o exception.cpp
mv -f .deps/exception.Tpo .deps/exception.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT fileloader.o -MD -MP -MF .deps/fileloader.Tpo -c -o fileloader.o fileloader.cpp
mv -f .deps/dispatcher.Tpo .deps/dispatcher.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
mv -f .deps/fileloader.Tpo .deps/fileloader.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT globalevent.o -MD -MP -MF .deps/globalevent.Tpo -c -o globalevent.o globalevent.cpp
mv -f .deps/globalevent.Tpo .deps/globalevent.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT group.o -MD -MP -MF .deps/group.Tpo -c -o group.o group.cpp
mv -f .deps/group.Tpo .deps/group.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT house.o -MD -MP -MF .deps/house.Tpo -c -o house.o house.cpp
mv -f .deps/game.Tpo .deps/game.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT housetile.o -MD -MP -MF .deps/housetile.Tpo -c -o housetile.o housetile.cpp
mv -f .deps/house.Tpo .deps/house.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT ioban.o -MD -MP -MF .deps/ioban.Tpo -c -o ioban.o ioban.cpp
mv -f .deps/housetile.Tpo .deps/housetile.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT ioguild.o -MD -MP -MF .deps/ioguild.Tpo -c -o ioguild.o ioguild.cpp
mv -f .deps/ioban.Tpo .deps/ioban.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT iologindata.o -MD -MP -MF .deps/iologindata.Tpo -c -o iologindata.o iologindata.cpp
mv -f .deps/ioguild.Tpo .deps/ioguild.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT iomap.o -MD -MP -MF .deps/iomap.Tpo -c -o iomap.o iomap.cpp
mv -f .deps/iomap.Tpo .deps/iomap.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT iomapserialize.o -MD -MP -MF .deps/iomapserialize.Tpo -c -o iomapserialize.o iomapserialize.cpp
mv -f .deps/iologindata.Tpo .deps/iologindata.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.cpp
mv -f .deps/iomapserialize.Tpo .deps/iomapserialize.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT itemattributes.o -MD -MP -MF .deps/itemattributes.Tpo -c -o itemattributes.o itemattributes.cpp
mv -f .deps/item.Tpo .deps/item.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT items.o -MD -MP -MF .deps/items.Tpo -c -o items.o items.cpp
mv -f .deps/itemattributes.Tpo .deps/itemattributes.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
mv -f .deps/items.Tpo .deps/items.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT mailbox.o -MD -MP -MF .deps/mailbox.Tpo -c -o mailbox.o mailbox.cpp
mv -f .deps/mailbox.Tpo .deps/mailbox.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT manager.o -MD -MP -MF .deps/manager.Tpo -c -o manager.o manager.cpp
mv -f .deps/manager.Tpo .deps/manager.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT map.o -MD -MP -MF .deps/map.Tpo -c -o map.o map.cpp
mv -f .deps/luascript.Tpo .deps/luascript.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT monster.o -MD -MP -MF .deps/monster.Tpo -c -o monster.o monster.cpp
mv -f .deps/map.Tpo .deps/map.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT monsters.o -MD -MP -MF .deps/monsters.Tpo -c -o monsters.o monsters.cpp
mv -f .deps/monster.Tpo .deps/monster.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT movement.o -MD -MP -MF .deps/movement.Tpo -c -o movement.o movement.cpp
mv -f .deps/monsters.Tpo .deps/monsters.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT networkmessage.o -MD -MP -MF .deps/networkmessage.Tpo -c -o networkmessage.o networkmessage.cpp
mv -f .deps/networkmessage.Tpo .deps/networkmessage.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT npc.o -MD -MP -MF .deps/npc.Tpo -c -o npc.o npc.cpp
mv -f .deps/movement.Tpo .deps/movement.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT otserv.o -MD -MP -MF .deps/otserv.Tpo -c -o otserv.o otserv.cpp
mv -f .deps/npc.Tpo .deps/npc.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT outfit.o -MD -MP -MF .deps/outfit.Tpo -c -o outfit.o outfit.cpp
mv -f .deps/otserv.Tpo .deps/otserv.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT outputmessage.o -MD -MP -MF .deps/outputmessage.Tpo -c -o outputmessage.o outputmessage.cpp
mv -f .deps/outputmessage.Tpo .deps/outputmessage.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT party.o -MD -MP -MF .deps/party.Tpo -c -o party.o party.cpp
mv -f .deps/outfit.Tpo .deps/outfit.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT player.o -MD -MP -MF .deps/player.Tpo -c -o player.o player.cpp
mv -f .deps/party.Tpo .deps/party.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT position.o -MD -MP -MF .deps/position.Tpo -c -o position.o position.cpp
mv -f .deps/position.Tpo .deps/position.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT protocol.o -MD -MP -MF .deps/protocol.Tpo -c -o protocol.o protocol.cpp
mv -f .deps/protocol.Tpo .deps/protocol.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT protocolgame.o -MD -MP -MF .deps/protocolgame.Tpo -c -o protocolgame.o protocolgame.cpp
mv -f .deps/player.Tpo .deps/player.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT protocolhttp.o -MD -MP -MF .deps/protocolhttp.Tpo -c -o protocolhttp.o protocolhttp.cpp
mv -f .deps/protocolhttp.Tpo .deps/protocolhttp.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT protocollogin.o -MD -MP -MF .deps/protocollogin.Tpo -c -o protocollogin.o protocollogin.cpp
mv -f .deps/protocollogin.Tpo .deps/protocollogin.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT protocolold.o -MD -MP -MF .deps/protocolold.Tpo -c -o protocolold.o protocolold.cpp
mv -f .deps/protocolgame.Tpo .deps/protocolgame.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT quests.o -MD -MP -MF .deps/quests.Tpo -c -o quests.o quests.cpp
mv -f .deps/protocolold.Tpo .deps/protocolold.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT raids.o -MD -MP -MF .deps/raids.Tpo -c -o raids.o raids.cpp
mv -f .deps/quests.Tpo .deps/quests.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT rsa.o -MD -MP -MF .deps/rsa.Tpo -c -o rsa.o rsa.cpp
mv -f .deps/rsa.Tpo .deps/rsa.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT scheduler.o -MD -MP -MF .deps/scheduler.Tpo -c -o scheduler.o scheduler.cpp
mv -f .deps/raids.Tpo .deps/raids.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT scriptmanager.o -MD -MP -MF .deps/scriptmanager.Tpo -c -o scriptmanager.o scriptmanager.cpp
mv -f .deps/scheduler.Tpo .deps/scheduler.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT server.o -MD -MP -MF .deps/server.Tpo -c -o server.o server.cpp
mv -f .deps/scriptmanager.Tpo .deps/scriptmanager.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT spawn.o -MD -MP -MF .deps/spawn.Tpo -c -o spawn.o spawn.cpp
mv -f .deps/server.Tpo .deps/server.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT spells.o -MD -MP -MF .deps/spells.Tpo -c -o spells.o spells.cpp
mv -f .deps/spawn.Tpo .deps/spawn.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT status.o -MD -MP -MF .deps/status.Tpo -c -o status.o status.cpp
mv -f .deps/status.Tpo .deps/status.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT talkaction.o -MD -MP -MF .deps/talkaction.Tpo -c -o talkaction.o talkaction.cpp
mv -f .deps/spells.Tpo .deps/spells.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__     -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT teleport.o -MD -MP -MF .deps/teleport.Tpo -c -o teleport.o teleport.cpp
cc1plus: warnings being treated as errors
talkaction.cpp: In static member function ‘static bool TalkAction::guildCreate(Creature*, const std::string&, const std::string&)’:
talkaction.cpp:784: error: suggest braces around empty body in an ‘if’ statement
make[1]: *** [talkaction.o] Error 1
make[1]: *** Se espera a que terminen otras tareas....
mv -f .deps/teleport.Tpo .deps/teleport.Po
make[1]: se sale del directorio `/root/tfs'
make: *** [all] Error 2
root@crmb-desktop:~/tfs#
 
Last edited by a moderator:
@chacarron

cd tfs, then run those commands.


Updated the tutorial again.
 
Well, basicly no big diffrence between Ubuntu when it comes to use, but Ubuntu is a hell lot better when it comes to finding guides etc. This tutorial is meant for beginners.

If I make more tutorials like this, it will probable be for Fedora core.
 
Yes or No at this step?
3264-phpmyadminubuntu.png


I first choosed YES.

Then it wanted to create an username or password or something, I wrote the existing admin user I had when I installed mysql, root and mypass.

And then it said it couldn't connect to the mysql database. So I could "redo steps with questions" or "redo steps without questions" "cancel" or "ignore".

I choosed to redo steps and click No in that window, and it didnt ask for user/password.

edit:
I cant connect to the VPS from my windows machine for a weird reason.

Well... Text based webbrowsers ftw! ;D
3265-phpmyadminubuntu3.png


/Since it seem like it works fine I assume I had that previous problem because I was already running the mysql server and phpmyadmin perhaps tried to create another instance of it.

3266-placeholderpage.png
 
Last edited:
@Znote

It's "yes", "root password", blank, blank. If I remember correctly. But well, it seems to work for ya :)
 
Hehe oki. :p

Btw, feel free to use my images in your tutorial <3

Images makes users quickly much more comfortable.
 
Back
Top