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:
To kill the screen run:
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:
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