Schaue gleich mal wo ich mein tutorial habe.(Ist jedoch ausgelegt für ne installation auf nem root wobei du den auch per hamachi on stellen kannst.)
Edit:
= Serverfiles + 3 verschiedene Lc-Clients
------------------------------------------------------
Anleitung
Quote:
[HOW TO] Set up Last Chaos server using "Ubuntu Jaunty"
My tutorial is for those who use remote host dedicated servers I will try and explain this in as much detail as possible for those who may try using co-linux or Virtual Boxes to run this server off.
======
Set up
======
You need the following Applications:
Command:
apt-get install apache2 php5 php5-mysql mysql-server phpmyadmin
apt-get install alien
in the / directory create a folder called "LCServer"
Command:
mkdir LCServer
cd LCServer
Inside this folder upload all your server contents
Try using "WinSCP" very useless GUI folder manager for your server
Download NaviCat
Get the MYSQL one
Connect to your MYSQL DB using Navicat
Create 2 new databases using Navicat named:
LastchaosDB - Will control your players information
LastchaosData - Will control your Game information
Ok now back to your linux box
Go to the following directory
/LCServer/LoginDB/LoginDB/
Now transfer your SQL data to your database
Commands:
mysql LastchaosDB < newproject_db.sql
mysql LastchaosData < newproject_data.sql
Now go to the following directory
/LCServer/UserDB/UserDB/
And again transfer your SQL data to your database.
Commands:
mysql LastchaosDB < newproject_db.sql
mysql LastchaosData < newproject_data.sql
Ok your database is now set up
Well not quite
Your going to need the .rpm file to be in use so what we need to do is the following since ubuntu doesnt work with this kind of file run this command:
alien -k MySQL-shared-compat-4.0.23-0.i386.rpm
This will convert it to a .deb
now run this command
dpkg -i mysql-shared-compat_4.0.23-0_i386.deb
This should now allow you to run it better
======
Ok so now we're going to set up your server
go to the following directory using WinSCP
/LCServer/LastChaos/
Ok inside here you will have the following folders:
Connector
GameServer
Helper
LogFiles
LoginServer
Messenger
Inside each will be a control file named after the folder it is stored in for eg Connector
You need to go back to the directory \LCServer\ and create a folder named "new"
mkdir new
Inside here you are going to place a "control file" from each of the folders listed inside this new folder you created
Now set all permissions for everything including maps, bin and control files to 777 so root can read and write correctly.
Ok now we are going to edit the .bin files inside each folder.
You will notice the localhost IP 127.0.0.1 on alot of the IP's leave them as they. Change the other IP's to your IP.
You will notice it will ask to connect to database as well in the bin files well if you look at the name of the database they either end in DB or Data so for the following:
newproject_data WILL BE LastchaosData
and
newproject_db WILL BE LastchaosDB
Now that this is all set up your database should be working fine now and the server should be ready to start
Create a shell folder at the following directory:
/LCServer/LastChaos/
Put the following text inside the shell file
Code:
#!/bin/sh
echo "==============================================================="
echo "= Starting Last Chaos Server ="
echo "==============================================================="
cd Connector
./Connector start &
cd ../Helper
./Helper start &
cd ../Messenger
./Messenger start &
cd ../LoginServer
./LoginServer start &
cd ../GameServer
./GameServer start &
and call this shell start.sh
now create another but call it stop.sh and the code will be
Code:
#!/bin/sh
echo "==============================================================="
echo "= Stoppping Last Chaos Server ="
echo "==============================================================="
/usr/bin/killall Connector
/usr/bin/killall Helper
/usr/bin/killall Messenger
/usr/bin/killall LoginServer
/usr/bin/killall GameServer
echo "==============================================================="
echo "= Last Chaos Server Stopped ="
echo "==============================================================="
Open the following Ports using this command:
ufw allow from any to any port 4106 proto tcp
ufw allow from any to any port 4110 proto tcp
ufw allow from any to any port 4100 proto tcp
ufw allow from any to any port 4200 proto tcp
ufw allow from any to any port 4101 proto tcp
then enable your firewall
ufw enable
Your server should be ready to go
do the following
/LCServer/LastChaos/start.sh
This should start the server if there is any issues it will tell you with an error that keeps repeating so open another session and do the following command
/LCServer/LastChaos/stop.sh
This will stop the server and you can then look into the error it is possibly just a missing library file so get the name of it and search in google you will probably have to download a .rpm file again so do the same as I done above with the "Alien" command and convert to .deb and the same command with the .deb but changing the file names of course.
Anyways this is about as much information as I have right now with this, Registration scripts are easy you should really know this sort of stuff I will be releasing alot of php scripts soon that work well with the server once theyre 100% running.
Anyways hope this helps.
|
Ubuntu Jaunty Download link's
Server:-
Desktop:=
@RedAlba
Root ist seit gestern down ^^ wärst du so nett und restartest ihn ?
mfg.
Shadow52