[Debian 7 Wheezy VPS 637 NO B.S. Guide 2014]
A no B.S. guide to get a Debian 7 VPS running Selox Release today. No im not joking.
I was in the process of going back to a 317 after about a 6 year break and realized that I
really cant take the small layout and horrible definition (fullscreen just waxes @##)
anyway I could not find a working source, client or anything most of the links I found
were dead ends. The amount of b.s. useless threads and flamers you have to dig through is unreal.
I am a Linux administrator, I have several gaming severs, I have a few websites one of which is my own encrypted email service, and a few other things. I wanted to make an updated tutorial on running an rsps since I am coming back to it as a much older and well funded guy. I enjoy Linux over, windows especially servers. Linux is far cheaper. I believe I can really help the new comers. I am also pretty fluent with centos and redhat and this guide will work for those too just change the apt-get to yum
I will update with pictures soon I just typed this as I finished up my server so bear with me.
First off I am using the Selox Release
This is the only release I found that actually worked, without any compile errors for that I want to say a huge
thanks to the Selox release team. Second I have not modified or changed any information in
this release except for what I am about to show you I have here. I will begin blanking this source for my rsps, I'm just playing with the idea at the moment. but if i do decide it will be hosted indefinitely for at least a year on a highspeed server capable of running hundreds of users. :D
Selox Release thread:
I use unmanaged linux vps's they are very cheap, but you have to know exactly what you are
doing. There is no support and it's easy to mess up if your running as root. I prefer
running as root but you can make a sudo user if you like but for the sake of this guide we
will assume you are running as root.
Linux VPS - I am running Debian 7 Wheezy x64
you can use minimal but you may need additonal packages.
I suggest you have the provider page opened in a tab somewhere.
You will need to know the ip address to your vps usually you can find it on your
management page on your vps provider.
It is assumed you are using windows as your pc, mostly because if you could use linux you
wouldnt need my guide. so install these programs on your windows pc.
You need a program to connect to your vps.
PUTTY - SSH client to securely connect to your vps.
WinSCP - SFTP client to securely connect to your ftp on your vps.
or you can use MTPUTTY it has the options to run multiple tabs but i prefer putty.
download putty open it up
you will see this screen
Change Your.Server.IP.Here with your vps server ip. leave the port at 22 then single click
default so it is highlighted then click save.
press connect. You should be greeted with Login:
then 'your root password' without quotes ( You will not see any stars or anything
indicating you have typed. This is normal. Just type the password and press enter.
Some vps's you have to set your root password on the management page on the vps provider.
there will be a tab that says root password set it then try to run putty.
Debian 7 Wheezy or Ubuntu server
Centos 7 is going to use different commands basically the same though.
What to do your very first login
Linux is case sensitive so if you have a file named Selox and you enter selox it will not
work it, has to be identicle.
[Basic debian command line]
Mouse: Right click is paste while on the command line
CTRL+c will close a running prosses. if it doesnt try
CTRL+z to suspend if it doesnt work, reboot the vps from the provider page.
to go back a directory in linux type cd ../
then type ls it will list files in your current directory. so you know which folder to cd
to next or you can go back to root directory by typing cd /
first command on a new vps is going to be (just copy it then left click on putty then
right click to paste on the command line) press enter.
echo 'deb [url]ftp://ftp.us.debian.org/debian/[/url] wheezy non-free
deb [url]http://security.debian.org/[/url] wheezy/updates non-free deb
[url]http://volatile.debian.org/debian-volatile[/url] wheezy/volatile non-free' >>
do the same thing with this
echo "deb [url]http://ppa.launchpad.net/webupd8team/java/ubuntu[/url] trusty main" | tee
echo "deb-src [url]http://ppa.launchpad.net/webupd8team/java/ubuntu[/url] trusty main" | tee -a
then do this
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
If you have problems go here
This will add a repository so that you can install the package unrar so you can use .rar
files and a repository that will install java 8 jdk and will update and upgrade for you!
apt-get update //this updates the repository list
apt-get upgrade //this installs the upgrades from repositorys
apt-get install oracle-java8-installer
apt-get install unrar //this installs unrar so you can open .rar files on debian.
apt-get install ssh //this installs ssh it is not installed by default
apt-get install nano //nano is a text editor that is very easy to use compared to vi or
apt-get install apache2 //this installs apache webserver
apt-get install mysql-server //this installs mysql
You will be prompted by mysql to create a root password i suggest you do and save it in a
text file somewhere because you will need it.
after it finishes type
apt-get install php5-mysql
apt-get install phpmyadmin
you will be prompted to use default config or something like that select yes.
Now enter the mysql root password you saved in the text file. Then you will be asked to
create a phpmyadmin root password you can make it the same if you like for simplicity and
ease of access.
now type: adduser rsserver
you will be prompted for a new unix password enter whatever you like
and then you will have Name: , organization: prompts i leave them blank and press enter
type y on is this info correct.
now type cd /home/rsserver
now type mkdir serverfiles
If you need any help with this part google wheezy install mysql or whatever package you
have trouble with. luckily there are tons of guides and great information that is easy to
Now that that is out of the way
Stay away from megacmd you are new and it will screw up your server if you try and use it.
If you upgrade your repositories to unstable to try and install it you will not be able to
install java you will get a message about broken packages and you will be screwed the
error followed me even after a fresh debian install so do not attempt or do so at your own
risk. just be patient and do it this way.
Download selox release from mega on your windows pc. Upload it to your server, it will
take a little bit but not long just depends on your connection mine is really slow and it
took about 20 min.
TO UPLOAD the selox source. Open winscp connect to your vps the same way you connected
with putty basically, use port 21, use the same user and password. Check the box that says
remember password for the rest of the session otherwise everytime you edit something it
will not save unless you fill in the password prompt
once you are logged in you will see a list of files on your server
click on the 'home' folder in the list then click on 'rsserver' drag and drop the
Selox.rar into the folder it will upload wait until it is finished to do anything else
once it is finished type
unrar x Selox.rar //this will extract Selox.rar
Use WinSCP to rename the folder that is extracted to serverfiles
double click serverfiles
rename Selox Source to source and rename Selox Client to client //you cannot have spaces
in filenames on linux.
will will not need the client so you can delete it or keep it here for a back up incase
you lose it on your windows pc.
double click on source
you will see your run.bat and other tools
right click in a blank area click new file name it run.sh
it will open a page then
move it out of the way and right click run.bat click edit
copy everything and close it go back the the run.sh paste the stuff from run.bat into
Note: you can do the same for compile.bat but It is not needed you do not have to compile
on your linux server. you can just use run.sh
edit the -Xmx512m is how much ram in mb you want the server to use i chose 1750. Example:
java -client -Xmx1750m -classpath bin:lib/* org.selox.RS2ServerBootstrap
this is what your run.sh should look like.
you can easily convert .bat to .sh files like this
any -cp should be changed to -classpath
any of the ; to :
so an easy way to do this is click the ab ac next to the binoculars in the run.sh editor
on WinSCP this will find and replace :D quick and easy.
now click on putty type
then type ls
you should see your run.sh in the list
type chmod +x run.sh //this will give run.sh executable permissions
now type su - rsserver //this will switch users from root to rsserver
type ./run.sh // this is how you run .sh files you have to first use the chmod +x command
to make it executable. once you use chmod type ./yourfile.sh to start it
if all goes well your server will run on the user rsserver to edit your files you can
login to WinScp and user the rsserver username and pass
to keep the server running type su - root and enter the root password again, now your
server will continue to run as that user if you type exit to get back to root it will stop
Now for the client
open the client on your windows pc
I made a folder on my desktop called rsservers
i extracted the client from the rar file with winrar
to the rsservers on my desktop then I right clicked edited the ~compiler to this
"C:\Program Files\Java\jdk1.8.0_31\bin\javac.exe" -cp lib/clientlibs.jar;lib; *.java [MENTION=41862]pause[/MENTION]
Change my "C:\Program Files\Java\jdk1.8.0_31\bin\javac.exe" to match your installed java
jdk location and version.
right click and edit Start Selox and change to your ip in the last line servaddr
your.server.ip.here be sure to use the same ip as putty.
now run it
no back to winscp
open up your /home/rsserver/serverfiles/source/ directory
click on src then org selox io then open ForumIntegration.java
press ctrl+f to find connection = DriverManager
it looks like this
connection = DriverManager.getconnection("jdbc:mysql://yourserveriphere/rsserver",
this is the line you will edit.
now open up firefox or whatever browser you use type in Your.Server.IP.Here/phpmyadmin
you will have a myphpadmin page type in root for the username and the password set up
earlier during the installation phase.
login click on databases tab next to the sql tab
it says create new database
type in rsserver and leave collation and dont touch an other settings click create
you will see the database on the left hand side rsserver click it then click on the sql
tab inbetween the structure and search tab
This Create Table query was taken from this post:
Credit goes to demon dylan001 I did not write this.
copy and paste this
CREATE TABLE `users` (
`id` bigint(100) NOT NULL AUTO_INCREMENT,
`username` varchar(1000) COLLATE latin1_german2_ci NOT NULL,
`password` varchar(1000) COLLATE latin1_german2_ci NOT NULL,
`forum_id` bigint(100) NOT NULL,
`starter` tinyint(1) NOT NULL DEFAULT '0',
`locationX` smallint(5) NOT NULL DEFAULT '-1',
`locationY` smallint(5) NOT NULL DEFAULT '-1',
`height` tinyint(1) NOT NULL DEFAULT '-1',
`hitpoints` smallint(4) NOT NULL DEFAULT '100',
`spellbook` smallint(3) NOT NULL DEFAULT '192',
`ancientcurses` tinyint(1) NOT NULL DEFAULT '0',
`banktab` varchar(2000) COLLATE latin1_german2_ci NOT NULL,
`privatetextcolor` tinyint(2) NOT NULL DEFAULT '0',
`lastXAmount` int(100) NOT NULL DEFAULT '0',
`lastPoison` smallint(100) NOT NULL DEFAULT '0',
`lastSelection` tinyint(4) NOT NULL,
`prayerPoints` smallint(100) NOT NULL DEFAULT '0',
`autoretaliate` tinyint(1) NOT NULL DEFAULT '0',
`experiencecounter` int(100) NOT NULL DEFAULT '0',
`banktabs` varchar(100) COLLATE latin1_german2_ci NOT NULL DEFAULT '0',
`strongholdFlags` tinyint(100) NOT NULL DEFAULT '0',
`specialAmount` smallint(255) NOT NULL DEFAULT '1000',
`slayerTask` varchar(100) COLLATE latin1_german2_ci NOT NULL,
`date` text COLLATE latin1_german2_ci NOT NULL,
`notes` varchar(2000) COLLATE latin1_german2_ci NOT NULL,
`isonline` int(100) NOT NULL DEFAULT '0',
`skillLvl` varchar(1000) COLLATE latin1_german2_ci NOT NULL DEFAULT
`skillXP` varchar(10000) COLLATE latin1_german2_ci NOT NULL DEFAULT
`items` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '-1',
`itemsN` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '-1',
`bankitems` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '-1',
`bankitemsN` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '-1',
`equipment` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '-1',
`equipmentN` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '-1',
`friends` varchar(2000) COLLATE latin1_german2_ci NOT NULL,
`ignores` varchar(2000) COLLATE latin1_german2_ci NOT NULL,
`usergroup` int(11) NOT NULL DEFAULT '2',
`mainacc` int(11) NOT NULL DEFAULT '0',
`previousname` varchar(1000) COLLATE latin1_german2_ci NOT NULL,
`namedate` text COLLATE latin1_german2_ci NOT NULL,
`maindate` text COLLATE latin1_german2_ci NOT NULL,
`familiarId` bigint(100) NOT NULL,
`familiarTicks` bigint(100) NOT NULL,
`doublexptime` bigint(100) NOT NULL,
`familiarSpecialPoints` bigint(100) NOT NULL,
`looks` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '3,14,18,26,34,38,42',
`colours` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '3,16,16,11,14',
`gender` int(11) NOT NULL DEFAULT '0',
`summoningOrbSetting` bigint(100) NOT NULL DEFAULT '0',
`burdenBeastItems` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '-1',
`burdenBeastItemsN` varchar(2000) COLLATE latin1_german2_ci NOT NULL DEFAULT '-1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=607 DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci;
press go, this will create the mysql database table for your players. to create accounts
now click on privileges tab, click on add a new user
leave use text field in the dropdown box type your username you want to play on
change the drop down option on host from use text field to Local which will change the
text on the right to localhost
then enter the password you want for your character
select Grant all privileges on database "rsserver" press go and it is done
go back and open up your ForumIntegration.java and double check that your server ip is
correct and the /rsserver matches the database name you created if you followed my guide
exactly then it is /rsserver and change the "PLAYERNAME" and "PASSWORD" to the user you
just created in the priviliges tab.
now close out putty winscp all that stuff
reopen putty connect
then to run your server type su - rsserver
then type ./run.sh
then su - root
now leave it open and open up the client, Start Selox.bat on your windows pc.
When the client opens login with the username and pass you created on your priviliges page
you now have your own rsps running on Debian 7 Linux ;D