Sign in to follow this  
Followers 0
ragnazorg

How to setup your ragnarok server in Linux

25 posts in this topic

Now you're done paying your vps or dedicated machine. But how are you going to install your Ragnarok server in it?

Here is a simple guide on how to setup your ragnarok server in linux (the easiest way)

Programs needed:

Putty

Filezilla

Sqlyog

Store your details in a notepad and save it somewhere since you might forget your password.

Connect to your server using putty.

Host name will be the IP of your vps.

putty.png

Once connected type in your username and password

2j5ko54.png

Now type in

apt-get install php5 phpmyadmin mysql-server mysql-client apache2 gcc subversion libmysqlclient15-dev make zlib1g-dev libpcre3-dev

24ooz95.png

Warning: Do not run eAthena as root!

To not run as root follow this steps

adduser eathena (or any username you want)

l9uo6.png

Follow the steps and it will ask you information such as password etc it will ask you for confirmation by Y or N. Input Y.

Now to go to your users folder type in

cd /home/eathena

You may want to ask why with home/ by default users will have its directory inside home/.

2163ia.png

Now all pre-needs are set up let's start and install eathena!

mkdir ragnarok (or any names you wish to use)

104kpl0.png

Now leaves you three options or branches you want to install

For Trunk

svn co http://eathena-project.googlecode.com/svn/trunk/

For Renewal

svn co http://eathena-project.googlecode.com/svn/branches/renewal/

and For Stable

svn co http://eathena-project.googlecode.com/svn/branches/stable/

Now we all know we can choose Txt or SQL for eathena too and you can't run your eathena without choosing one and compiling it.

For SQL

make clean
./configure --with-mysql
make sql

Now if you're running 64 bit system

make clean
./configure --enable-64-bit
make sql

For TXT

make clean
./configure
make txt

Now that your eathena is compiled you have to install your database if you're using SQL.

Open your browser with your server ip/phpmyadmin. (i.e. 123.456.789.01/phpmyadmin). Once you're there, create a new database named 'ragnarok' ( or any name you want). Then, navigate to the database and point to privileges. Add a user 'ragnarok' (or anything you want as username) with password 'ragnarok' (or any password you want) that has all privileges to database 'ragnarok' (server database name). Import your main.sql, item_db.sql, item_db2.sql, mob_db.sql and mob_db2.sql, logs.sql. You can configure the user and password as you wish but make sure you edit the files in your conf/import folder.

This includes changes in

char_conf

inter_conf

login_conf

map_conf

Now if you want your server to be more secured

open login.conf, char_conf, map_conf

and add

bind_ip: 123.456.789.01 (or your servers ip)

This is how it will look like.

login_conf

bind_ip: 123.456.789.01

// MySQL Login SQL Server
login_server_ip: 123.456.789.01
login_server_port: 3306
login_server_id: ragnarok
login_server_pw: ragnarok
login_server_db: ragnarok

// Ipban features (SQL only)
ipban.enable: yes
ipban.sql.db_hostname: 123.456.789.01
ipban.sql.db_port: 3306
ipban.sql.db_username: ragnarok
ipban.sql.db_password: ragnarok
ipban.sql.db_database: ragnarok
ipban.sql.ipban_table: ipbanlist

// SQL
account.sql.db_hostname: 123.456.789.01
account.sql.db_port: 3306
account.sql.db_username: ragnarok
account.sql.db_password: ragnarok
account.sql.db_database: ragnarok

map_conf

userid: S1
passwd: P1

char_ip: 123.456.789.01
bind_ip: 123.456.789.01
map_ip: 123.456.789.01

char_conf

userid: S1
passwd: P1

login_ip: 123.456.789.01
bind_ip: 123.456.789.01
char_ip: 123.456.789.01

inter_conf

// MySQL Character SQL server
char_server_ip: 123.456.789.01
char_server_port: 3306
char_server_id: ragnarok
char_server_pw: ragnarok
char_server_db: ragnarok

// MySQL Map SQL Server
map_server_ip: 123.456.789.01
map_server_port: 3306
map_server_id: ragnarok
map_server_pw: ragnarok
map_server_db: ragnarok

// MySQL Log SQL Database
log_db_ip: 123.456.789.01
log_db_port: 3306
log_db_id: ragnarok
log_db_pw: ragnarok
log_db_db: ragnarok

// for TXT -> SQL convertors
db_server_ip: 123.456.789.01
db_server_port: 3306
db_server_id: ragnarok
db_server_pw: ragnarok
db_server_logindb: ragnarok

Now you're ready to run your eathena!

To start

./athena-start start

To Stop

./athena-start stop

Cheers*

Edited by ragnazorg
1

Share this post


Link to post
Share on other sites

this is not working when i put this command in my linux.

apt-get install php5 phpmyadmin mysql-server mysql-client apache2 gcc subversion libmysqlclient15-dev make zlib1g-dev libpcre3-dev

0

Share this post


Link to post
Share on other sites

this is not working when i put this command in my linux.

apt-get install php5 phpmyadmin mysql-server mysql-client apache2 gcc subversion libmysqlclient15-dev make zlib1g-dev libpcre3-dev

It's not apt-get but rather 'yum' since you're on CentOS 5.5

yum install php5 phpmyadmin mysql-server mysql-client apache2 gcc subversion libmysqlclient15-dev make zlib1g-dev libpcre3-dev

Edited by Magnetix
0

Share this post


Link to post
Share on other sites

Note: Those commands can only apply on any linux Like Fedura,Centos or Ubuntu.

Yum - Centos or Fedura

Apt-get - Ubuntu or Debian

Try tutorial http://www.eathena.w...howtopic=201876

so what is the best OS for linux? thanks

Centos Or Fedura

Edited by Alvins182
0

Share this post


Link to post
Share on other sites

im error with this guide. when i type the sql i forgot to mention my linux version is centos 5.5 32bit thank you.

[[email protected] darkjizzro]# make clean
make: *** No rule to make target `clean'.  Stop.
[[email protected] darkjizzro]# ./configure --with-mysql
-bash: ./configure: No such file or directory
[[email protected] darkjizzro]# make sql

and when i type this, nothings happen it says password will prompt ryt? but when i type that nothings happen.

adduser darkjizzro

Edited by se7ven
0

Share this post


Link to post
Share on other sites
][/font]and when i type this, nothings happen it says password will prompt ryt? but when i type that nothings happen.
adduser darkjizzro

Try with this command..

chmod +x configure

Edited by Angry Mjoo
0

Share this post


Link to post
Share on other sites

check your directory you need to be inside the server files director use dir command to see the files

0

Share this post


Link to post
Share on other sites

use cd directoryname ex: cd myfolder. Some dos commands that you usually use in Windows are used in Linux like cd and dir and if your going to use Linux without GUI you must have a basic knowledge on those.

0

Share this post


Link to post
Share on other sites

It didnt work phpmyadmin also configure also it didnt work for me also my os is debian

0

Share this post


Link to post
Share on other sites

It didnt work phpmyadmin also configure also it didnt work for me also my os is debian

Try to insert into the end of a file /etc/apache2/apache2.conf

Include /etc/phpmyadmin/apache.conf

then restart apache

0

Share this post


Link to post
Share on other sites

@ragnarzorg

I did do all your guide but when im doing this..

make clean

./configure --with-mysql

make sql

the message appears like this.

make: *** No rule to make target `clean'. Stop.

can you help me with this problem?? im using centos linux vps.

i have an error also on my putty when logging-in again.

i just quit my putty because i cannot continue anymore due to errors.

but when i log in again i see this message

fatal error server unexpectedly closed network connection. kindly help me please..

and follow-up question:

about patching dbase in host server.

i really need your help.. for those who have a kind heart who can teach me please add me in ym.... strike_zenith

Edited by strikez14
0

Share this post


Link to post
Share on other sites

@ragnarzorg

I did do all your guide but when im doing this..

make clean

./configure --with-mysql

make sql

the message appears like this.

make: *** No rule to make target `clean'. Stop.

can you help me with this problem?? im using centos linux vps.

i have an error also on my putty when logging-in again.

i just quit my putty because i cannot continue anymore due to errors.

but when i log in again i see this message

fatal error server unexpectedly closed network connection. kindly help me please..

and follow-up question:

about patching dbase in host server.

i really need your help.. for those who have a kind heart who can teach me please add me in ym.... strike_zenith

my Question is

1.Are u Compiling You server when its still Running??

@_@

2.check the Owner of the root server is already connected with your ip or not,

some VPS hosting Server didnt set up this for you so u must do it manually to change the owner of root.

3. Pathcing dbase?? dbase sql?

0

Share this post


Link to post
Share on other sites

I have this problem me too. I am with AsuraHosting, it use centOS and i have phpmyadmin install. I have import my database, my server and change the lan ip and wan ip.

server refused

i have the good user and pass. I am eathena ws. The next time will change for windows... I dont know what to do

Edited by fredou81
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0