Jump to content

  •  

Photo
- - - - -

How to setup your ragnarok server in Linux


This topic has been archived. This means that you cannot reply to this topic.
24 replies to this topic

#1 ragnazorg

ragnazorg

    Poporing

  • Members
  • PipPipPipPip
  • 153 posts

Posted 16 November 2011 - 05:38 AM

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.
Spoiler:


Once connected type in your username and password

Spoiler:


Now type in

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

Spoiler:


Warning: Do not run eAthena as root!

To not run as root follow this steps

adduser eathena (or any username you want)

Spoiler:


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/.

Spoiler:



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

mkdir ragnarok (or any names you wish to use)

Spoiler:


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, 16 November 2011 - 06:47 AM.


#2 Diconfrost VaNz

Diconfrost VaNz

    Are farts the ghost of the things i ate?

  • Members
  • PipPipPipPipPipPipPip
  • 617 posts

Posted 16 November 2011 - 06:34 AM

wow..nice guide :)

#3 Microsoft

Microsoft

    Virtual Machine Hoster

  • Members
  • PipPipPipPipPip
  • 220 posts

Posted 19 November 2011 - 02:13 PM

trying this guide all over again.

#4 Hatake Kakashi

Hatake Kakashi

    Ghostring

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 750 posts

Posted 19 December 2011 - 08:06 PM

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


#5 Magnetix

Magnetix

    Metaling

  • Community Contributors
  • 401 posts

Posted 20 December 2011 - 03:21 AM

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, 20 December 2011 - 03:24 AM.


#6 Hatake Kakashi

Hatake Kakashi

    Ghostring

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 750 posts

Posted 20 December 2011 - 04:12 AM

so what is the best OS for linux? thanks

#7 Alvins182

Alvins182

    Santa Poring

  • Members
  • PipPipPip
  • 62 posts

Posted 20 December 2011 - 07:09 AM

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, 20 December 2011 - 07:13 AM.


#8 Hatake Kakashi

Hatake Kakashi

    Ghostring

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 750 posts

Posted 20 December 2011 - 11:02 AM

damn, i can't connect thru bitvise tunnelier. but in putty connected. wew

#9 glemor123

glemor123

    Ghostring

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 843 posts

Posted 20 December 2011 - 07:05 PM

hatake...putty is the best for me...just use putty

#10 se7ven

se7ven

    Poring

  • Members
  • Pip
  • 15 posts

Posted 22 December 2011 - 08:59 AM

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

[root@darkjizzro darkjizzro]# make clean
make: *** No rule to make target `clean'.  Stop.
[root@darkjizzro darkjizzro]# ./configure --with-mysql
-bash: ./configure: No such file or directory
[root@darkjizzro 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, 22 December 2011 - 09:01 AM.


#11 Angry Mjoo

Angry Mjoo

    Drops

  • Members
  • PipPip
  • 35 posts

Posted 22 December 2011 - 09:33 AM

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, 22 December 2011 - 09:34 AM.


#12 se7ven

se7ven

    Poring

  • Members
  • Pip
  • 15 posts

Posted 22 December 2011 - 11:03 AM

chmod: cannot access `configure': No such file or directory





#13 JayPee

JayPee

    Angeling

  • Community Contributors
  • 535 posts

Posted 22 December 2011 - 01:36 PM

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

#14 se7ven

se7ven

    Poring

  • Members
  • Pip
  • 15 posts

Posted 22 December 2011 - 07:13 PM

how to go there?

#15 JayPee

JayPee

    Angeling

  • Community Contributors
  • 535 posts

Posted 23 December 2011 - 09:30 AM

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.

#16 Alisha

Alisha

    Poring

  • Members
  • Pip
  • 21 posts

Posted 27 December 2011 - 10:08 PM

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

#17 Lilith

Lilith

    ^.^

  • Core Developers
  • 342 posts

Posted 27 December 2011 - 10:31 PM

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

#18 BlueskyVPS

BlueskyVPS

    Poring

  • Members
  • Pip
  • 24 posts

Posted 27 December 2011 - 11:19 PM

perfect guide

#19 strikez14

strikez14

    Santa Poring

  • Members
  • PipPipPip
  • 91 posts

Posted 20 January 2012 - 07:11 AM

@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, 29 January 2012 - 07:16 AM.


#20 strikez14

strikez14

    Santa Poring

  • Members
  • PipPipPip
  • 91 posts

Posted 29 January 2012 - 09:06 PM

bump..

anyone can help me?