Thread: Running RSPS on CentOS (Linux)

Page 1 of 15 12311 ... LastLast
Results 1 to 10 of 146
  1. #1 Running RSPS on CentOS (Linux) 
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084

    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:
    SSHSecureShellClient-3.2.9.exe - FTP Mirror Search (Downloads)

    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: Java SE Downloads
    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:

    Code:
    java -Xmx800m -cp 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
    Well now what you need to do is to convert that line to LINUX format.
    Just change all ; to : and -cp to -classpath. This line converted looks like that:

    Code:
    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
    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:

    Code:
    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.
    Good luck.
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Donator
    Defiled-X's Avatar
    Join Date
    Jun 2010
    Posts
    1,434
    Thanks given
    52
    Thanks received
    78
    Rep Power
    27
    Good Job But its too late for me now, I canceled my CentOS because I didn't know how to use it lol
    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    Quote Originally Posted by Defiled-X View Post
    Good Job But its too late for me now, I canceled my CentOS because I didn't know how to use it lol
    Lol, too bad. People are buying expensive windows servers just because they don't know how to do it on linux.
    Reply With Quote  
     

  6. #4  
    Registered Member

    Join Date
    Dec 2010
    Posts
    1,982
    Thanks given
    174
    Thanks received
    256
    Rep Power
    223
    Much easier way

    Open up putty

    yum install java

    Download Winscp

    Move Source files onto a new directory example /home/rsps

    then use cd /home/rsps

    sh compile.sh
    Test if java is working

    Then sh run.sh

    go to No-IP - Dynamic DNS, Static DNS for Your Dynamic IP

    set a no-ip to your vps's ip

    done. nuff said.

    But if you cant edit some simple stuff then follow his guide gj.
    Reply With Quote  
     

  7. #5  
    Registered Member
    Enjoi's Avatar
    Join Date
    Sep 2008
    Posts
    2,451
    Thanks given
    566
    Thanks received
    282
    Rep Power
    1325
    To avoid downloading and uploading twice, if your on a slower connection, just wget the file from Java's site
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    Quote Originally Posted by Enjoi View Post
    To avoid downloading and uploading twice, if your on a slower connection, just wget the file from Java's site
    Yeah I was thinking about that, but doesn't java site generate like unique random url just for you? Check how long that link is.
    Reply With Quote  
     

  10. #7  
    Registered Member
    TORONTO's Avatar
    Join Date
    Feb 2010
    Age
    30
    Posts
    873
    Thanks given
    348
    Thanks received
    212
    Rep Power
    92
    meh good job.
    Running on CentOS isn't good for beginners though
    retired from RSPS for good

    EDIT:
    I came back one last time just to thank this post:
    [SPOIL]
    [/SPOIL]
    Reply With Quote  
     

  11. #8  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    Quote Originally Posted by Ramifications View Post
    meh good job.
    Running on CentOS isn't good for beginners though
    What do you mean?
    Reply With Quote  
     

  12. #9  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    graveduhbump
    Reply With Quote  
     

  13. #10  
    Registered Member
    TORONTO's Avatar
    Join Date
    Feb 2010
    Age
    30
    Posts
    873
    Thanks given
    348
    Thanks received
    212
    Rep Power
    92
    Quote Originally Posted by wOok View Post
    What do you mean?
    Like most people are use to using windows with a GUI, most of the kids here are not use to operating through a command linke (SSH)
    retired from RSPS for good

    EDIT:
    I came back one last time just to thank this post:
    [SPOIL]
    [/SPOIL]
    Reply With Quote  
     

Page 1 of 15 12311 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Running an RSPS on Ubuntu (Linux)
    By playsoon in forum Tutorials
    Replies: 28
    Last Post: 01-07-2013, 06:05 PM
  2. Replies: 10
    Last Post: 12-26-2012, 03:32 PM
  3. Setting up a server on Centos (Linux)?
    By Throat in forum Help
    Replies: 7
    Last Post: 07-20-2010, 05:27 PM
  4. Problem Running My RSPS on a Arch Linux VPS.
    By Maximum ZxZ in forum Software
    Replies: 3
    Last Post: 07-12-2010, 01:44 AM
  5. Help with Linux CentOS
    By Cryptikx in forum Software
    Replies: 7
    Last Post: 12-05-2009, 11:54 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •