OtStrikers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[UBUNTU] How to make an OTserver. TFS 0.3.6pl1

Go down

[UBUNTU] How to make an OTserver. TFS 0.3.6pl1 Empty [UBUNTU] How to make an OTserver. TFS 0.3.6pl1

Post by Sweddy Thu Dec 22, 2011 9:32 am

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

Ok. Begin by downloading the newest Ubuntu server from Ubuntu homepage . 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.

Post upgrade
We don't like the old packages (also 0.4 might depends on newer once):
Code:

    sudo apt-get update
    sudo apt-get upgrade
VPS/VDS/Dedicated pre step
Often VPS/VDS and dedicated servers comes with apache2. You will have to run a extra step to get rid of it:
Code:


    sudo apt-get remove apache2 phpmyadmin mysql-server
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/index.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 libssl-dev libluajit-5.1-dev
Then 0.3.6pl1:
Code:


    svn co svn://svn.otland.net/public/forgottenserver/tags/0.3.6pl1 tfs
    cd tfs
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
    cd 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 (Cause you guys just love unstable experimental versions ):
Code:


    cd /var/www
    sudo rm index.html
    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!

Credits goes to: Stian - Otland/Vapus.
Sweddy
Sweddy
Administrator

Profession :
  • HTML Coder

Posts : 18
Reputation : 4
Join date : 2011-12-21
Age : 31
Location : Sweden

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum