- Joined
- Feb 18, 2010
- Messages
- 10
- Reaction score
- 1
Welcome to my first TuT, it will be really long reading so here are some cons first so you don't continue reading if you don't like it:
Please note that after every line you press enter :hehe:
here it is:
- Server Files in German, but I am working on translation
- Has to run on FreeBSD 7.2
- ^If I think of more I add more
- VPS/Dedicated server, that's what I have, 1GB RAM is enough for few people, but might be laggy
- On your PC with Virtual PC and Hamachi- it is an alternative I don't like so I won't be talking about it here. but if you are familiar with hamachi etc you can set it yourself
- At least basic knowledge of computers
- Time and Patience
Please note that after every line you press enter :hehe:
here it is:
First download and install FreeBSD 7.2 32-bit from here
If you choose DVD version then during install you can select from DVD, if you select from FTP you have to point it to this address:
because it is in archive, it wouldn't download from their main site.
More info on how to install FreeBSD here:
When it asks you if you want to install the port package, select yes.
If you still have any questions just ask in the comments I will help you.
After we finished installing here comes the harder part.
just type in the console of your freebsd exactly as I do:
< This will take some time, continue after it downloads the files.
For now, we leave the server files.
Now the database:
< takes some time, after it is done you can continue.
At the end of this file add
Then press ESC-> Leave Editor -> save changes
We need to restart now
after it is all up just login and we can continue.
It asks for Password, just put there the password you entered few steps ago (PASSYOUWANTTOUSE)
<this logs you off mysql
If you know how to set up FTP on FreeBSD you can skip this:
How To let others make account:
Code:
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/ISO-IMAGES/7.2/
Code:
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/7.2-RELEASE/
More info on how to install FreeBSD here:
You must be registered to see links
When it asks you if you want to install the port package, select yes.
If you still have any questions just ask in the comments I will help you.
After we finished installing here comes the harder part.
just type in the console of your freebsd exactly as I do:
Code:
cd /usr
Code:
fetch onlineg.org/game.7z
Code:
cd /usr/ports/archivers/p7zip/ && make install clean
or if that doesn't work the do pkg_add -r p7zip
Code:
rehash
Code:
cd /usr
Code:
p7zip -d game.7z
Code:
tar xvfz rain.tar.gz
Code:
cd /usr/usr
Code:
mv rain /usr/game
For now, we leave the server files.
Now the database:
Code:
cd /usr/ports/databases/mysql51-server/
Code:
make install WITH_XCHARSET=all clean
Code:
chown -R mysql /var/db/mysql/
Code:
chgrp -R mysql /var/db/mysql/
Code:
/usr/local/bin/mysqld_safe –user=mysql &
Code:
/usr/local/bin/mysqladmin -u root password PASSYOUWANTTOUSE
Code:
ee /etc/rc.conf
Code:
mysql_enable="YES"
Code:
chmod -R 777 /var/db/mysql
We need to restart now
Code:
shutdown -r now
Code:
mysql -p
Code:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'
Code:
IDENTIFIED BY 'here put the same pass as before' WITH GRANT OPTION; [ENTER]
Code:
quit
If you know how to set up FTP on FreeBSD you can skip this:
This is the easiest way to setup FTP on Freebsd, eve though it isn't that secure:
ESC -> Leave editor -> Save changes
Just delete root from this and save it.
now try it:
user: root
password: your pass for root
Now connect with your favourite FTP client to your VPS as user root with your pass for root.
Now download these onto your computer:
extract both on your somewhere on you computer (preferably desktop)
from the libs.rar you will have five files, upload them with FTP to
folder.
from mysql.rar you should have fun folder called mysql.
Upload it to:
so it should merge with the mysql folder already there.Rewrite any files if asked to.
We are past half now :yeye:
[size=large]Back To server files![/size]
again, put in your pass.
please make sure you type the 'mt2!@#' right, otherwise it won't work!
add these two lines:ee /etc/rc.conf
Code:
ftpd_enable="YES"
inetd_enable="YES"
Code:
ee /etc/ftpusers
Code:
/etc/rc.d/ftpd start
Code:
ftp localhost
password: your pass for root
Now connect with your favourite FTP client to your VPS as user root with your pass for root.
Now download these onto your computer:
Code:
http://rapidshare.com/files/455917494/libs.rar
Code:
http://rapidshare.com/files/455917727/mysql.rar
from the libs.rar you will have five files, upload them with FTP to
Code:
/usr/lib/
from mysql.rar you should have fun folder called mysql.
Upload it to:
Code:
/var/db/
We are past half now :yeye:
Code:
chmod -R 777 /var/db/mysql/
Code:
cd /usr
Code:
chmod -R 777 game
Code:
cd game/share_data
Code:
chmod -R 777 game
Code:
chmod 777 /usr/lib/
Code:
mysql -p
Code:
GRANT ALL PRIVILEGES ON *.* TO 'mt2'@'localhost'
Code:
IDENTIFIED BY 'mt2!@#' WITH GRANT OPTION;
Code:
quit
How To let others make account:
First install and configure Apache:
add line
exit, save
add line
exit,save
Now in your browser go to your server and you should see something like it works!
if you do, it's all good
Now installing PHP5:
During make config, please make sure that you tick Apache module.
now do as follows, it is copied from freebsdmadeeasy.com:
How to play:
FINALY!
Please tell me if you like it.
If you do, I will add some weapons, How to for Game Masters, english names of the Shop guys, english quests after they are done and big5_string 80% English. Because if you don't like it, there would be no point for me to write more.
If you need help with anything, comment here please.
Thank you
P.S. you run the server with:
and stop the server with:
Code:
cd /usr/ports/www/apache22
make install
ee /etc/rc.conf
Code:
apache22_enable="YES"
Code:
kldload accf_http
ee /boot/loader.conf
Code:
accf_http_load="YES"
Code:
apachectl start
if you do, it's all good
Now installing PHP5:
Code:
cd /usr/ports/lang/php5
make config
Code:
make install
Next find your DirectoryIndex section in your httpd.conf file. Apache is set up for PHP 4, but not PHP 5 currently so you will need to modify it and change the 4s to 5s like this.
This code is telling Apache to open index.php first you have the PHP 5 module loaded. You can change the order as you wish. Or if you just wanted to skip it you could simply add the following line to the httpd.conf file since you know you are going to have php 5.
Now apache just needs to know what it should parse the PHP files with. These two lines should be added to the httpd.conf file, and can be put at the bottom if needed.
If want to use PHP code inside of .htm files you can just add on those extensions.
All should start without errors.
Now download
in folder server edit dbsettings.php to match your settings.
Upload all the files to
and there ya go!
Code:
<IfModule mod_dir.c>
<IfModule mod_php3.c>
<IfModule mod_php5.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.php3 index.html
</IfModule>
</IfModule>
<IfModule !mod_php3.c>
<IfModule mod_php5.c>
DirectoryIndex index.php index.html index.htm
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.html
</IfModule>
</IfModule>
</IfModule>
Code:
DirectoryIndex index.php index.html index.htm
Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Code:
AddType application/x-httpd-php .php .htm .html
Code:
apachectl restart
Now download
Code:
http://rapidshare.com/files/455922275/site.rar
Upload all the files to
Code:
/usr/local/www/apache22/data
How to play:
FINALY!
Everyone you want to play just get them to download
Then Open ClientManager.exe end click English. Close it.
Delete Files mc.txt and Multistarter.exe
Open serverinfo.py
change all 0.0.0.0 to your servers IP.
save
run mc.exe
???
PROFIT!
Code:
http://www.megaupload.com/?d=D9SBW8HE
Delete Files mc.txt and Multistarter.exe
Open serverinfo.py
change all 0.0.0.0 to your servers IP.
save
run mc.exe
???
PROFIT!
If you do, I will add some weapons, How to for Game Masters, english names of the Shop guys, english quests after they are done and big5_string 80% English. Because if you don't like it, there would be no point for me to write more.
If you need help with anything, comment here please.
Thank you
P.S. you run the server with:
Code:
cd /usr/game
./start.sh
and stop the server with:
Code:
./close.sh
Last edited: