[VPS] How to setup an Ubuntu VPS [GUI/VNC/Botclient]

TJ!

Member
Reputation
0
[Note: Keep in mind I wrote this about 6 months ago on another website. I personally use CentOS so if anything is out of date please let me know and I will answer your question to fix it as well as update the guide!]


How to setup a VPS under an installation of Ubuntu 8.04+


From the Founder and Owner of VPSInfinity.com
By: TJ!

I. Table of Contents:
I: Table of Contents
a. Why Ubuntu?
II: Required Programs
III: Running Putty
a. Installing Necessary Programs
b. Running the VNC Server
c. Editing the startup file
d. Downloading & Unzipping the botclient
IV: Running UltraVNC
a. Choosing your settings and saving them
b. Connecting to your VPS
V: Installing the Bot
VI: Running the Bot
VII: Conclusion

I: Why Ubuntu?

There are literally hundreds of Linux distributions, so some may ask, “Why Ubuntu?” The short and simple answer is: Personal preference. Ubuntu has built up a name for itself that it’s essentially becoming the face of Linux for the general public. It is the most well known distribution of Linux, and is one of the more supported. The majority of VPS providers will provide you with the choice of Debian, Ubuntu, CentOS, fedora, and a few others. The most widely used for botting though, are Ubuntu and CentOS. Most people choose CentOS 5, but as I mentioned – some people just prefer Ubuntu, and some just plain don’t have another option from their VPS provider.

Personally, my OS of choice is CentOS and this is what is running on all of VPSInfinity.com's servers.

II: Required Programs

For this guide, you will require two programs:
PuTTY: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
UltraVNC: 32 Bit http://sc.uvnc.com/download/click.php?id=51
64 Bit http://sc.uvnc.com/download/click.php?id=52

PuTTY is what’s called an SSH (Secure Shell) client, it allows you to remotely connect to your VPS via command line.
UltraVNC is a VNC viewer, which allows you to connect to your VPS when a VNC server is running on the machine.

*Note – You are more than welcome to use another VNC viewer such as TightVNC, but this guide will show UltraVNC

III: Running PuTTY

a. After logging in, type the following *Double check your spelling!*
(If you don’t know how to use PuTTY, just put your IP in the “Host Name (Or IP Address)” Field, and click the Open button, then type “root” as your username, and enter the password you were provided – the password will be invisible.)
Code:
sudo apt-get install vnc4server ubuntu-desktop default-jdk unzip
*Note the italized words, “ubuntu-desktop” can be changed if you like. Installing this package means you will be running GNOME, the default desktop environment which most are used to. Below is a breakdown of the options.

• ubuntu-desktop Runs GNOME Package size: 2.46 Gb (Default)
• kubuntu-desktop Runs KDE Package size: 1.66 Gb (Some people just like this)
• xubuntu-desktop Runs XFCE Package size: 1.61 Gb (Least resource use)

b. Running the VNC Server
This parts easy, just type:
Code:
vncserver
Anytime you reboot your VPS, you will need to retype this in order to start the VNC server. This will ask you for the password you would like to set, make sure it is a safe one.
c. Editing the startup file
This part is probably the most technical, but it’s not hard – no worries!
Type:
Code:
nano /root/.vnc/xstartup
This will open up a text editor program called “nano” and will allow you to edit the startup file so that you can run your GUI (Graphical User Interface, what you see when you’re using a computer)
Add to the last line of the file one of the options below (depending what you installed in part a.)

• If you installed the default “ubuntu-desktop” add the last line as: “/usr/bin/gnome-session &”
• If you installed the KDE “kubuntu-desktop” add the last line as: “startkde &”.
• If you installed XFCE “xubuntu-desktop” add the last line as: “startxfce4 &”.



Now type:
Code:
vncserver –kill :1
and restart the VNC server by typing:
Code:
vncserver

d. Downloading and unzipping the botclient
This part is pretty easy, type these three commands:
Code:
cd Desktop
Code:
wget impsoft.info/download.php –O bot.zip
Code:
unzip bot.zip –d bot

IV: Running UltraVNC

Startup UltraVNC and get ready to see your VPS in action!



But first, let’s tweak some settings…
First off, put your IP address in the top form and then add a “:1” to the end (ie: 80.80.80.80:1)
Check the box at the bottom that says “ Save connection settings as default “
The hit the options button!
In the top left, deselect “Auto select best settings” and then choose “4 Grey colors” in the second column.
Click Ok
Click Connect! You should now see your VPS’s desktop!

V: Installing the bot

You should see a folder called “bot” on your desktop, right click it and click “open terminal here”. When the terminal pops up type:
Code:
 chmod +x install-mac-linux.sh
Code:
 ./install-mac-linux.sh
Now select either “Linux GTK 32/34 Bit” or “Linux GTK 64Bit” Depending on whether your Ubuntu installation is 32 or 64 bit. If above the text box it says “i386”, you have a 32bit installation; otherwise it is 64bit.
The botclient will now be installed
Now type:
Code:
 nano run-linux.sh
And change the –Xmx1000 to a lower number, such as –Xmx300 . Make sure everything is on the same line!
Now hit on your keyboard “CRTL+X” and then type “Y” and hit ENTER. This will save the file
VI: Running the bot
Type:
Code:
 ./run-linux.sh
or
Code:
 sh run-linux.sh
Whichever is your preference!

VII: Conclusion

Setting up on Ubuntu is pretty much just as easy as CentOS. It’s all about personal preference! Make sure that when you’re loading RS for the first time, you put all your Global Settings to the left, and hold the ‘s’ key while RS is “checking for updates”. This will ensure that your updates don’t get frozen.

Happy botting! And feel free to leave any comments or trouble you run into below! Leave a comment if this helped you out and vote for this to be an official guide!

If you find any errors/typos, let me know!

-TJ!
 
Back
Top