I often get messages asking how I setup a Linux VPS & VNC with rATHENA. Whell, This is how I did it on CentOS. You can do this method on any clean Linux VPS host with no cPanel or other programs that require disabling of the GUI environments. This guide is intent to help a individual get started on his/her's VPS, hope this helps. This is done with 100% ssh bash commands. VNC is just there to help you if needed to see something visualy.
This process might seem a little intimidating at first, don't let it be. In no time at all you can have your VPS rocking in Linux. No reason nowadays you can't google your questions and, answers. Takeyourtime, doublereadeverything. Let's get started
TIP: Use a program to generate a random password "like LassPass". Keep it in between 12 characteristics for SQL names & passwords "unless you edit it".
//You might need to run a mysqld restart before setting up a secure installation.
service mysqld restart
//There will be several screens. Setup your root MySQL password and, take your sweet time, double, reading, EVERYTHING!
//For the most part just push "y".
mysql_secure_installation
//Log in as your Root Super User.
mysql --user=root -p
//Notice your command hand changes to
mysql>
//Rename and create your own databases. Make sure your MySQL code ends with ;
CREATE DATABASE rathena_rag;
CREATE DATABASE rathena_log;
//Now this is where it gets a tad confusing. Just replace your VPS IP and name from mine. Also come up with a different password...
//Keep in mind this is the same information you will be placing in "inter_athena.conf" & "subnet_athena.conf".
CREATE USER 'matrixfox8'@'192.168.1.100' IDENTIFIED BY 'secretpassword';
GRANT SELECT,INSERT,UPDATE,DELETE ON `rathena_rag`.* TO 'matrixfox8'@'192.168.1.100';
GRANT SELECT,INSERT ON `rathena_log`.* TO 'matrixfox8'@'192.168.1.100';
//Log back in as your User account, exit out of root.
//There are many ways of doing this processes, different strokes for different folks. We're just using nano to keep things simple for this guide.
nano trunk/conf/char_athena.conf
// Server Communication username and password.
userid: desiredusername
passwd: desiredpassword
// Login Server IP
// The character server connects to the login server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
login_ip: 192.168.1.100
// Character Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
char_ip: 192.168.1.100
nano trunk/conf/map_athena.conf
// Interserver communication passwords, set in account.txt (or equiv.)
userid: desiredusername
passwd: desiredpassword
// Character Server IP
// The map server connects to the character server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
char_ip: 192.168.1.100
// Map Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
map_ip: 192.168.1.100
nano trunk/conf/inter_athena.conf
// Global SQL settings
// overriden by local settings when the hostname is defined there
// (currently only the login-server reads/obeys these settings)
sql.db_hostname: 192.168.1.100
sql.db_port: 3306
sql.db_username: matrixfox8
sql.db_password: secretpassword
sql.db_database: rathena_rag
sql.codepage:
// MySQL Character SQL server
char_server_ip: 192.168.1.100
char_server_port: 3306
char_server_id: matrixfox8
char_server_pw: secretpassword
char_server_db: rathena_rag
// MySQL Map SQL Server
map_server_ip: 192.168.1.100
map_server_port: 3306
map_server_id: matrixfox8
map_server_pw: secretpassword
map_server_db: rathena_rag
// MySQL Log SQL Database
log_db_ip: 192.168.1.100
log_db_port: 3306
log_db_id: matrixfox8
log_db_pw: secretpassword
log_db_db: rathena_log
log_codepage:
log_login_db: loginlog
nano trunk/conf/subnet_athena.conf
subnet: 255.0.0.0:192.168.1.100:192.168.1.100
How to start your server in SSH.
cd ~
cd trunk
./athena-start start
./athena-start stop
Now everything should be configured and working, Congratulations! One more thing! There is a lot to know about security. You might want to learn more to make your sever at least 60% safe. Hyperlink
P.S. Please keep in mind, make your own thread for support, or drop me a PM on the rA board.
Question
Matrixfox
I often get messages asking how I setup a Linux VPS & VNC with rATHENA. Whell, This is how I did it on CentOS. You can do this method on any clean Linux VPS host with no cPanel or other programs that require disabling of the GUI environments. This guide is intent to help a individual get started on his/her's VPS, hope this helps. This is done with 100% ssh bash commands. VNC is just there to help you if needed to see something visualy.
This process might seem a little intimidating at first, don't let it be. In no time at all you can have your VPS rocking in Linux. No reason nowadays you can't google your questions and, answers. Take your time, double read everything. Let's get started
_____________________________________________________________________________
VPS Requirements
//You need at least 512mb of ram, however I suggest 1gig if you're doing all of this.
//Also running your VNC will seriously drain your resources. My server will cap at 99.7% CPU speed. So beware of the over speed issues.
_____________________________________________________________________________
Installing & Configuring VNC
//You can start by installing Gnome Environment and VNC.
//Use Nano to edit /etc/sysconfig/vncservers
//Remove the # in front of these syntax. Change the user name and geometry.
//Create a none root Linux account with out Super User commands. Also make a very strong password.
//After "passwd yourusername" it will prompt you for Unix password.
TIP: You can also stop here and go straight to installing the basis of rathena and mysql. Them come back here later.
// DO NOT RUN AS ROOT!!! NEVER, NEVER, FOR THE LOVE OF GOD, NEVER RUN AS ROOT!!!!!!!!!!!!!
//After starting and killing the processes, it will create a xstartup file for that account.
//In the middle of this you will be prompt to setup a VNC password.
//Edit your xstartup with Nano
//Remove the # in front of unset, exec. Then add and edit these two following lines.
TIP: Make sure you press enter at the very end of nano, leaving a blank syntax line..
//Start VNC n' get ready to log in.
//Now open your VNC client and log in as your ip, remember the :2 for the port number at the end of the IP.
//VNC Super User Commands
_____________________________________________________________________________
Installing rATHENA on CentOS
//Make sure your back in your Super User account, aka Root.
//If you already made an account for VNC ignore this step! Skip to configuring MySQL.
_____________________________________________________________________________
Configuring MySQL
TIP: Use a program to generate a random password "like LassPass". Keep it in between 12 characteristics for SQL names & passwords "unless you edit it".
//You might need to run a mysqld restart before setting up a secure installation.
//There will be several screens. Setup your root MySQL password and, take your sweet time, double, reading, EVERYTHING!
//For the most part just push "y".
//Log in as your Root Super User.
//Notice your command hand changes to
//Rename and create your own databases. Make sure your MySQL code ends with ;
//Now this is where it gets a tad confusing. Just replace your VPS IP and name from mine. Also come up with a different password...
//Keep in mind this is the same information you will be placing in "inter_athena.conf" & "subnet_athena.conf".
_____________________________________________________________________________
Installing rATHENA
//Minimize your MySQL root SSH. Then log in as your lower account SSH to install rATHENA.
//If you wish to delete a older svn in SSH. Type this command with the correct directory name.
//Navigate to your SQL files and get ready for extracting.
//You will be prompt for your MySQL password each time.
//Now it's time to compile into SQL.
//Log in as your MySQL root user for the following commands.
//Editing s1/p1 in MySQL. This is where you edit the info for "char_athena.conf" & "map_athena.conf".
//Adding a new account in MySQL
_____________________________________________________________________________
Editing rATHENA Files
//Log back in as your User account, exit out of root.
//There are many ways of doing this processes, different strokes for different folks. We're just using nano to keep things simple for this guide.
How to start your server in SSH.
Now everything should be configured and working, Congratulations! One more thing! There is a lot to know about security. You might want to learn more to make your sever at least 60% safe. Hyperlink
P.S. Please keep in mind, make your own thread for support, or drop me a PM on the rA board.
If I get enough +1's I'll make a video.
Link to comment
Share on other sites
26 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.