- Joined
- Jan 15, 2014
- Sythe Gold
- 0
- Messages
- 1,711
Cheezy intro:
Ever wanted to bot with your computer off? Thought it was impossible? Nope. With today's technology you can do that quite easily. Actually, this is old technology, but we'll assume it's new to you
. In this guide I will be going through, step by step, the process of setting up a VPS. A VPS is known as a Virtual Private Server. A VPS is essentially a computer away from home. We've all heard of remote desktopping to a different computer, well this is the same thing but with a "virtual" machine. These machines are virtual because they have no physical hardware. All resources are partitioned and shared from a physical machine through a process called virtualization. Imagine a physical machine split up into many different machines. For example think of a machine with 4 processor cores (quadcore), 4 gb of ram, and a 200 gb harddrive can be split into 4 machines with 1 processor core, 1 gb of ram and 50 gb of harddrive space each. You may think that a single core and 1 gb ram machine may run slow, but with today's speed of hardware it will perform quite well with most applications that aren't resource heavy: it's actually great hardware to bot with. These virtual machines are typically sold by hosting companies and you can get them at a pretty decent price, if you know where to look
.
Here's how to setup a bot on an Ubuntu VPS.
Table of Contents:
I. Tools you will need:
- Note: These are recommended tools. You can use whatever version of SSH protocol you'd like, or a different VNCviewer, but these are just my favorite and some of the simplest.
- Note: I'm going to be using DMEhosting's VPS for the examples.
1. When you go to buy a server at any site you will see something like this
- Note: The hostname is not important. You can name it whatever you wish. You will need to remember the root password. The root password is what your will use to log into the virtual machine. If you have a password on your home computer that you use to log in then this is effectively the samet hing.
2. Select Ubuntu 13.10 (current version at time of posting this)
- Note: You can use Debian with this guide, but you will -not- be able to use CentOS. If you accidentally select the wrong OS then most hosting companies will have software that allows you to reinstall the entire server to a different OS with the click of a mouse. The email we will receive from DMEhosting will have a link in it to take us to a panel where we could do exactly that. Just make sure you select the right OS from the beginning and you won't have to mess with it
.
- Unimportant note: The closer the server is to your house the faster the connection. Pick whatever you'd like, but remember if your account starts playing in different countries then it may set off some red flags on Jagexs end.
3. Buy the server
4. You will receive an email that looks like this shortly after purchase
- Note: Most hosting providers will have this same layout.
II. Setting up the server through PuTTY
1. Open PuTTY
With the information from the email, place the IP into the Hostname or IP field.
- Note: You can save the profile by typing in a profile name and clicking save. This will save you time on having to type in the IP every time.
2. Click "Open"
- Note: You will be prompted with a security warning on the first time, just click yes through it.
3. Your log in username will be "root". Type root and press enter. It will always be root unless you opted to have a different root name when purchasing the server.
4. Press enter and your password will be whatever password you set when buying the server.
- Note: It doesn't show that you're typing a password but when you type, it's there. Just type the password and press enter.
5. You should now be logged in, congratulations
6. From here you have 2 options.
- Option 1: Skip the remainder of this section and go straight to section III (3). Follow the setups with the script I wrote. (RECOMMENDED)
- Option 2: Continue reading and install everything manually and learn a few things along the way.
7. If you have selected to do the advanced method we need to install a few things onto your server.
8. Type/copy and paste the following commands in order. Press "y" when if it prompts you to confirm installation on anything.
- Note: This may take a few minutes depending on the servers speed and internet speed. Additionally, it may prompt you for a few things, just press enter or accept everything.
9. This part is tricky, pay close attention. You have to edit your startup file to start XFCE automatically in VNC. If you do this improperly then you may only see a grey screen with a bold X cursor in VNC. To begin, type the following code into PuTTY
- Note: You may or may not see colors depending on the version of PuTTY that you have, but this is not important. The main focus here is to make the characters in the files look like this. You will need to comment out the lines that need commented out and add one line to the end. To comment out an line you will need to put a "#" at the front of the line. This effectively will make the line useless and it will not be read or execute.
- Note: To make it look like this, press "i". This will put you into INSERT mode. You can see "-- INSERT --" in the bottom left hand corner. Now use your arrows to put you in the right spaces where you need to make the changes. Make sure you put a # in front of all the necessary lines and add the bottom line to the file. To make the new line you will have to put the cursor (the green block) at the last character and press "enter". To exit INSERT mode press ESCAPE. Once you've pressed escape and exited insert mode, type ":wq" and press enter. Typing :wq is a command to save and exit the file.
10. Now we need to start the VNC server, type this into PuTTY
It will ask for a password, type one in and remember it. Like most password applications it will ask twice for the password.
11. VNC server is now started.
- Note: To kill the VNCserver type the following code
- Note: If the server is ever taken down or restarted you will need to connect to putty and simply type "vncserver" to start the vncserver.
III. Easy Server Setup
1. After you have logged into PuTTY type the following commands
- Note: These files are not malicious. You can view them at any time on my server. They are simple shell scripts.
2. This will begin the download, install and execution of everything needed in setups 7-11 of section II.
3. It may prompt you to answer a few questions about keyboard layouts, just press enter through them. (See last picture of section II #8.)
4. Near the end it will ask for a password for the vncserver, type one in and remember it. Like most password applications it will ask twice for the password. You will use this password to log into UltraVNC in section 4.
5. You are now done with PuTTY, it can be closed.
- Note: If the server is ever taken down or restarted you will need to connect to putty and simply type "vncserver" to start the vncserver.
IV. Using VNC
1. Attempt to connect to the VNC with UltraVNC
- Important Note: You must append :5901 to your IP for the port. It will not work without this port added to the IP. UVNC will ask you for the VNC password you made when you started the VNC server back in PuTTY.
- Note: It may ask you what type of panel you want for your first time. Select default
2. If you have followed all the steps correctly then you should be successfully connect to the VNC.
3. At the top is an "applications menu", go to it and then internet, then firefox.
4. Go to your favorite bot site and download the client.
- Note: Save file.
5. Click "show in folder". The show in folder button is the circular folder button to the right in the following picture
6. Drag and drop the bot file to the desktop
7. Double click the bots .jar file
- Last note: Happy botting
.
Btw I'm super noob when it comes to the newer versions of RS and RS bots. Don't ask any particular questions about the game or the bots themselves.
Ever wanted to bot with your computer off? Thought it was impossible? Nope. With today's technology you can do that quite easily. Actually, this is old technology, but we'll assume it's new to you
Here's how to setup a bot on an Ubuntu VPS.
Table of Contents:
- I. Tools you will need
- II. Setting up the server through PuTTY
- III. Easy Server Setup
- IV. Using VNC
I. Tools you will need:
- PuTTY
Download: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html - UltraVNC
Download: http://www.uvnc.com/downloads/ultravnc.html - A VPS
Good place to find a cheap one: http://www.webhostingtalk.com/forumdisplay.php?f=104
- Note: It's recommended to have at least 1 full core and 1GB of RAM. If you find a good deal this shouldn't cost more than 6$ a month.
- Note: These are recommended tools. You can use whatever version of SSH protocol you'd like, or a different VNCviewer, but these are just my favorite and some of the simplest.
- Note: I'm going to be using DMEhosting's VPS for the examples.
1. When you go to buy a server at any site you will see something like this
- Note: The hostname is not important. You can name it whatever you wish. You will need to remember the root password. The root password is what your will use to log into the virtual machine. If you have a password on your home computer that you use to log in then this is effectively the samet hing.
2. Select Ubuntu 13.10 (current version at time of posting this)
- Note: You can use Debian with this guide, but you will -not- be able to use CentOS. If you accidentally select the wrong OS then most hosting companies will have software that allows you to reinstall the entire server to a different OS with the click of a mouse. The email we will receive from DMEhosting will have a link in it to take us to a panel where we could do exactly that. Just make sure you select the right OS from the beginning and you won't have to mess with it
- Unimportant note: The closer the server is to your house the faster the connection. Pick whatever you'd like, but remember if your account starts playing in different countries then it may set off some red flags on Jagexs end.
3. Buy the server
4. You will receive an email that looks like this shortly after purchase
- Note: Most hosting providers will have this same layout.
II. Setting up the server through PuTTY
1. Open PuTTY
With the information from the email, place the IP into the Hostname or IP field.
- Note: You can save the profile by typing in a profile name and clicking save. This will save you time on having to type in the IP every time.
2. Click "Open"
- Note: You will be prompted with a security warning on the first time, just click yes through it.
3. Your log in username will be "root". Type root and press enter. It will always be root unless you opted to have a different root name when purchasing the server.
4. Press enter and your password will be whatever password you set when buying the server.
- Note: It doesn't show that you're typing a password but when you type, it's there. Just type the password and press enter.
5. You should now be logged in, congratulations
6. From here you have 2 options.
- Option 1: Skip the remainder of this section and go straight to section III (3). Follow the setups with the script I wrote. (RECOMMENDED)
- Option 2: Continue reading and install everything manually and learn a few things along the way.
7. If you have selected to do the advanced method we need to install a few things onto your server.
- Necessary updates
- Destktop Environment (Xubuntu)
- Vncserver
- Java
8. Type/copy and paste the following commands in order. Press "y" when if it prompts you to confirm installation on anything.
Code:
sudo apt-get update
Code:
sudo apt-get -y install xubuntu-desktop vnc4server default-jre
- Note: This may take a few minutes depending on the servers speed and internet speed. Additionally, it may prompt you for a few things, just press enter or accept everything.
9. This part is tricky, pay close attention. You have to edit your startup file to start XFCE automatically in VNC. If you do this improperly then you may only see a grey screen with a bold X cursor in VNC. To begin, type the following code into PuTTY
Code:
vim .vnc/xstartup
- Note: You may or may not see colors depending on the version of PuTTY that you have, but this is not important. The main focus here is to make the characters in the files look like this. You will need to comment out the lines that need commented out and add one line to the end. To comment out an line you will need to put a "#" at the front of the line. This effectively will make the line useless and it will not be read or execute.
- Note: To make it look like this, press "i". This will put you into INSERT mode. You can see "-- INSERT --" in the bottom left hand corner. Now use your arrows to put you in the right spaces where you need to make the changes. Make sure you put a # in front of all the necessary lines and add the bottom line to the file. To make the new line you will have to put the cursor (the green block) at the last character and press "enter". To exit INSERT mode press ESCAPE. Once you've pressed escape and exited insert mode, type ":wq" and press enter. Typing :wq is a command to save and exit the file.
10. Now we need to start the VNC server, type this into PuTTY
Code:
vncserver
It will ask for a password, type one in and remember it. Like most password applications it will ask twice for the password.
11. VNC server is now started.
- Note: To kill the VNCserver type the following code
Code:
vncserver -kill :1
III. Easy Server Setup
1. After you have logged into PuTTY type the following commands
Code:
wget http://xolr.com/vpssetup.sh
Code:
chmod +x vpssetup.sh
Code:
./vpssetup.sh
2. This will begin the download, install and execution of everything needed in setups 7-11 of section II.
3. It may prompt you to answer a few questions about keyboard layouts, just press enter through them. (See last picture of section II #8.)
4. Near the end it will ask for a password for the vncserver, type one in and remember it. Like most password applications it will ask twice for the password. You will use this password to log into UltraVNC in section 4.
5. You are now done with PuTTY, it can be closed.
- Note: If the server is ever taken down or restarted you will need to connect to putty and simply type "vncserver" to start the vncserver.
IV. Using VNC
1. Attempt to connect to the VNC with UltraVNC
- Important Note: You must append :5901 to your IP for the port. It will not work without this port added to the IP. UVNC will ask you for the VNC password you made when you started the VNC server back in PuTTY.
- Note: It may ask you what type of panel you want for your first time. Select default
2. If you have followed all the steps correctly then you should be successfully connect to the VNC.
3. At the top is an "applications menu", go to it and then internet, then firefox.
4. Go to your favorite bot site and download the client.
- Note: Save file.
5. Click "show in folder". The show in folder button is the circular folder button to the right in the following picture
6. Drag and drop the bot file to the desktop
7. Double click the bots .jar file
- Last note: Happy botting
Btw I'm super noob when it comes to the newer versions of RS and RS bots. Don't ask any particular questions about the game or the bots themselves.





























