Running your RuneScape private server on CentOS (Linux)
Hello and welcome to my tutorial on how to run RSPS in CentOS.
I don't know if this has been posted before, even if it was, it must be quite different.
I found this way myself and I think it's quite easy one. Anyway, it took me a while to figure out.
So here it is, post replies and feel free to ask questions.
1. Connecting to our VPS with "Secure Shell Client"
Well I find this program quite easy to use. It's quite simple and it has file manager included.
First off, download and intall this program. Here is quite huge list for it: [Only registered and activated users can see links. ]
Start the program, and click quick connect.
Fill in your VPS information and click connect.
If connection is successful, a box for password should pop-up.
Enter password and click ok. Then a table for "Add to profiles" will pop-up.
You can add it to profiles so it will be easier to connect next time.
2. Installing the JDK
Ok so now you are connected to your VPS. Here is the hard part.
What you want to do now, is to get latest JDK for linux.
Go to: [Only registered and activated users can see links. ]
Click on "Download JDK" and select platform Linux.
Then you will see 2 downloads available.
Click the one with RMP in it's filename. (The first one in the image)
When you got your linux JDK downloaded, on your Secure Shell Client click the file transfer icon. ( )
And just drag your downloaded JDK to the right side of file manager.
Wait for it to finish uploading.
Right click the jdk install and hit Properties.
Set permission mode to 777.
Now you can minimize the file transfer window and go back to Secure Shell Client.
Copy the file name of your JDK you downloaded and type in: ./FILENAME
And wait for JDK to install.
That's it for JDK installation.
3. Running your RSPS
For runing we will be using program called "SCREEN".
It allows you to run your program in background, so server will be online after you close the Secure Shell Client.
I know JAVAW launcher allows you to do that, but somehow I couldn't get it to work on CentOS.
To get "SCREEN" you basicly have to type: yum install screen
Just wait until it downloads and installs it.
Well now open file transfer window again. Delete all those jdk files, it's just for installation they are uneeded now.
Now upload your source, just drag all folder with your source in. Wait for it to upload.
Alright, now when you got your source uploaded, close file transfer window.
On Secure Shell Client, go to your source folder by typing: cd FOLDERNAME
Now in your source just open your run.bat and look for the line with "java" command.
It should look something like this:
Ok so now you could run your server just by typing this in Secure Shell Client.
But if you would do so, after you close the Secure Shell Client your server would turn off also.
So what we want to do is run it with "SCREEN", the program we downloaded earlier.
In order to run it with screen you have add this before your command: screen -A -m -d -S NAME
Well for name just use something obvious, like RSPS. So my example would be:
screen -A -m -d -S rsps java -classpath bin:deps/poi.jar:deps/mysql.jar:deps/mina.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar server.Server
So just type the line in your Secure Shell Client and your server will start up.
To make sure that your server started up, type "free -m" before and after you run your server.
You will see huge ram boost when you run it.
In order to shutdown your server. Type in: killall java
Use "free -m" to make sure you have done it successfully.
Well that's it I hope I was clear enough. Post all your questions.