Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Fluffee

[Tutorial] Setup Debian (VPS) (6.x, 7.x, 8.x) for Botting (32 and 64 Bit) LG Support Updated August 20th 2016

Recommended Posts

Notes: I have only been able to test this setup procedure, on Debian 6.0, 7.9 and 8.1 (as they are all DigitalOcean provides). I can assume if it works on those, it will work on the other distributions in that set, but there are no guarantees.

 

Secondly, this script requires root privileges to run, do not try and run without root or you will encounter issues

 

Thirdly, this script and tutorial, will guide you through the process of disabling root logins on your server, creating a new account which you will use with root privileges, and changing the default ssh port. If for some reason you feel those are not good things to do (they are, leaving root logins enabled opens you to a world of issues) then you can edit this script yourself, or skip those steps in the guide. Do not post here complaining you can't login as root, you should never ssh as root after you setup the server, and I refuse to promote that terrible practice.

 

Lastly, there are some redundant commands in the script, however they do no harm so I'm not concerned with them at the moment

 

Step 1. Acquire a non-setup Debian VPS (Recommended Debian 7 x86) (http://www.waveride.at is a personal favorite)

 

Step 2. Download PuTTY (PuTTY Homepage)

 

Step 3. Download a VNC Viewer (TightVNC is my personal recommendation, use whatever you prefer)

Step 4. SSH into your server, and get to a root prompt (SSH in this case means to connect via PuTTY) (NOTE: YOU MUST BE ROOT)
 

Step 4a) Open PuTTy, you should see a screen like this 

mo8Mu.png

 

Step 4b) Enter your Server IP Address into the box that says Host Name (Or IP Address)
Step 4c) Enter your server login details and you're done

 

Step 5. If you don't care to learn anything, and you really just want the server setup and done with, go ahead and run this command 

 

(32 Bit)

apt-get update && apt-get install -y sudo wget && wget --no-check-cert 'https://dl.dropboxusercontent.com/u/81527571/Debian%207%20(32%20Bit)/install32.sh'&& chmod +x install32.sh && ./install32.sh 

(64 Bit)

apt-get update && apt-get install -y sudo wget && wget --no-check-cert 'https://dl.dropboxusercontent.com/u/81527571/Debian%207%20(64%20bit)/install64.sh'&& chmod +x install64.sh && ./install64.sh 

The command above installs sudo and wget (Installed by default in Debian 7.0+), downloads the install bash script from my Dropbox, gives the script run permissions, and then runs the script.

 

If you'd like to view the script before running it (which you should): 32 Bit 64 Bit

 

Step 6. When the script starts, it will prompt you for the following information: Hit enter after entering your information for each question

 

What would you like your user account to be named? Must be lowercase

This is going to be the name of the account you will be using from now on, as root logins will be disabled (over ssh, you can connect as this account and then switch to root afterwards, just not directly connect as root). Just type in the name of your account in all lowercase, for example bots

 

What port would you like to use to ssh to your server?

This port is the port used when you use PuTTy to access your server, the default is 22, please change it from 22 to make your server more secure. I recommend something kinda random, such as 6754. Again, just type in your port number of choice

 

What port would you like to use to vnc to your server? 

The default port for this is 5901, if you want to continue with that port type in 5901 or type in any other port of your choice.

 

What would you like your ssh password to be?

This is the password of the new account the script will create, type in whatever you want your password to be, you must enter a value

 

What would you like your vnc password to be?

This is the password used when you vnc to your server, it can be anything but you must enter a value

 

Step 7. Now that the information is entered you can sit back and relax, and the script will do the rest. When it finishes, you can go ahead and VNC into your server and run your favorite botting client :)

 

For anyone you doesn't care what the script does, this tutorial is finished! Please feel free to spread some love for the time I spent writing this tutorial, and perfecting the script :)

 

For the advanced users, or anyone who isn't just going to run something that I claim is safe, read on and I'll walk you through every command, well most of 'em

 

Command Explanation

 

apt-get update - This command checks the repositories included, for any updates to the Debian software, and updates them automatically

 

apt-get -y install sudo wget nano - This command is slightly redundant, and I just noticed it. Anyways, I'm not fixing it because there's no harm here, but this command installs: sudo (Allows other users to run things as root) wget (allows you to download things from the internet, via bash) nano (A nice bash text editor, which is merely my preferred option over vi [the default bash editor])

 

sed -i "s/Port 22/Port $sshport/g" /etc/ssh/sshd_config - Replaces the phrase Port 22 with the port inputted at the beginning of the tutorial, if you're running this by copying and pasting each command, replace $sshport with your port of choice. Or, use nano or vi to edit the file /etc/ssh/sshd_config and change the port there         

 

echo "AllowUsers $name" >> /etc/ssh/sshd_config - Adds the user account inputted in the being to the list of users allowed to connect via ssh replace $name with your user account name, if you're doing this yourself

 

sed -i "s/PermitRootLogin no/PermitRootLogin yes/g" /etc/ssh/sshd_config - Turns root logins off by replacing the line, skip this if you don't want to turn off root logins

 

chmod 600 sshd_config - Assigns the correct permissions to sshd_config, this command is also unnecessary as of now.

 

service ssh restart - Restarts the ssh service to make the changes take effect, this will not close your connection

 

apt-get -y install xorg lxde tightvncserver - Installs Xorg a LXDE component, LXDE a lightweight desktop environment and TightVNC Server, which will allow you to use VNC to connect to your server

 

sudo adduser $name --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password - Adds a user account without a password, if doing this yourself, replaces $name with your desired name

 

echo "$name:$sshpassword" | sudo chpasswd - Changes the password of the account just created, replace $name with the account name, and $sshpassword with the desired password

 

sudo adduser $name sudo - Adds the created user to the sudo user group, which will allow it to run commands as root, replace $name with your desired account name

 

mkdir /home/$name/.vnc - Creates the .vnc directory

 

echo $vncpassword >/home/$name/.vnc/file - Writes the vncpassword to a file, change $vncpassword with the desired password

 

vncpasswd -f </home/$name/.vnc/file >/home/$name/.vnc/passwd - Creates the password file used by the vnc server, and writes the password

 

chown $name /home/$name/.vnc - Changes ownership of file to the user you created

 

chgrp $name /home/$name/.vnc - Changes the group of the file to the user you created

 

su - $name -c "vncserver" - Runs vncserver as the created user

 

su - $name -c "vncserver -kill :1" - Kills the vncserver process as the created user

 

All the curl and wget commands are used to download the popular botting clients, and OSBuddy, places them in a created folder

 

echo deb commands are used to add repositories to Debian to download java (Google Debian JDK8 webupd8 for more details)

 

apt-key gives the server the proper key to connect to the repositories

 

echo oracle allows the script to auto accept the java license agreement

 

chmod 777 /usr/lib/jvm/java-8-oracle/jre/lib/security/java.policy - Gives permission to policy file for LG

 

The rest of the commands install firefox, allow the Java Runtime to be seen, create the tightvnc service (so it autostarts) and modify the vncport.

 

If you genuinely have questions, hit me up on Skype: HiFluffee

 

Update January 19th, 2016: Updated both sh files to disable root logins properly, had a mistake in the code. The script also converts any capital letters in the account name to lowercase. If capitals are present the account doesn't get created.
Update February 29th, 2016: Fixed the sh files to allow automatically allow connections via VNC to a custom port on reboot of the server.
Update: March 2nd, 2016: Now automates keyboard, character and encoding selection
Update: March 6th, 2016: Automatically picks Java to open Jar files, and removes Screensaver
Update August 20th, 2016: The script now installs TightVNC 1.3.9.10 which fixes the VNC crashing error when too many programs are opened at once.

 

Edited by iFluffee
  • Like 8

Share this post


Link to post
Share on other sites

Mind pasting a code formatted version of the command script cant copy and paste it very well from the format youve put it in ;)

I'm not really sure what you're looking for, the only version I have is what's on my dropbox :/

I don't know if that helps or not?

Share this post


Link to post
Share on other sites

Sorry worded it pretty poorly what I meant is a copy of the command to run like

apt-get install -y sudo wget && wget --no-check-cert 'https://dl.dropboxusercontent.com/u/81527571/Debian%207.0%20and%208.1%20(32%20Bit)/install32.sh%27'&& chmod +x install32.sh && ./install32.sh

because quotes chop off the link. Also the 32 bit sh file returns a 404 :(

Share this post


Link to post
Share on other sites

Sorry worded it pretty poorly what I meant is a copy of the command to run like

apt-get install -y sudo wget && wget --no-check-cert 'https://dl.dropboxusercontent.com/u/81527571/Debian%207.0%20and%208.1%20(32%20Bit)/install32.sh%27'&& chmod +x install32.sh && ./install32.sh

because quotes chop off the link. Also the 32 bit sh file returns a 404 :(

 

Fixed it, should work now :)

Share this post


Link to post
Share on other sites

Did this and I am no longer able to connect to my SSH, remote control or anything else :( I am not sure what I did wrong, I accidently chose a username with an uppercase letter tho, maybe that's what causes the problem? Please help me out! 

That would cause the problem, when logging in via SSH, make sure you enter your username in all lowercase. Also make sure you're using the correct port

If you still can't figure it out, add my Skype!

Edited by iFluffee

Share this post


Link to post
Share on other sites

@iFluffee Really good guide, makes set up very easy. How good are waverider's vps's? I was thinking about buying the 4gb one to test them out (I'm hoping it is capable of running atleast 4 bots)

 

I can't really say for certain, it's been a long time since I bought a server from them. However, with their low cost, you wouldn't be losing much by trying it

Share this post


Link to post
Share on other sites

I got Kubuntu running on my dedicated server. Whenever i open tribot it runs super slow even though I definitely have enough RAM for it. I have 64gb and Im running JAVA 8. Any idea what the issue could be?

I haven't use Kubuntu in a long time, however if you want to add my Skype I can do my best to help? :)

Share this post


Link to post
Share on other sites

Hey @ifluffee 

If you were me, how would you jump into linux based programming and networks. Noob looking to improve.

 

Also, your script here is like butter.

 

I don't actually know where to direct you, I don't know a heck of a lot I kinda just find things I want to figure out then go learn about them. At the moment, my current battle is getting Open NAT and VPN working for my Xbox, via a DD-WRT router.

I learned how to setup servers by just googling most of the stuff I wanted to know, and just messing about until it worked, I don't know if that helps?

Thanks though, glad you liked it! :)

Share this post


Link to post
Share on other sites

@iFluffee

I can give you a hand with your NAT+VPN if you need it.

Amazing script.

I haven't tested this, but I'm using Ubuntu 14.04 with LXDE-core installed.

I set up my VMS last week.. Wish I saw this script then.

It took me a while to work out how to get xllvnc to autostart.

Since it's built for Debian, I'll assume this will work for Ubuntu server also? I might give it a run next server install. (I'd assume only repos would be different if anything)

Share this post


Link to post
Share on other sites

@iFluffee

I can give you a hand with your NAT+VPN if you need it.

Amazing script.

I haven't tested this, but I'm using Ubuntu 14.04 with LXDE-core installed.

I set up my VMS last week.. Wish I saw this script then.

It took me a while to work out how to get xllvnc to autostart.

Since it's built for Debian, I'll assume this will work for Ubuntu server also? I might give it a run next server install. (I'd assume only repos would be different if anything)

Figured it out actually, had an out of date DD-WRT build

And I would assume it would, let me know if it doesn't though, I'm sure I can probably modify it to fit Ubuntu

Share this post


Link to post
Share on other sites

After running this script and restarting my server. When I try to connect to my vps using ThightVNC I get this error "error in tightvnc viewer no connection could be made because the target machine actively refused it". I'm using the correct port that I choose while the script was running.

This is what it looks like

 https://gyazo.com/fa2c3a42d44e2c9f57d31daaa54b2b4f

Oh and this is what I get when I type vncserver in puty

450d394584ce909ec04f84697dd2c9ba.png
https://gyazo.com/450d394584ce909ec04f84697dd2c9ba

 

Edit: I figured it out. The VNC server wasn't started. And instead of saying 

' vncserver, I had to type 'sudo vncserver'.

Edited by lil 0mfg0rz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Fluffee
      Fluffee's Server Setup 2.0 [BETA]
      As some of you may know, I released an automated server setup script a little over a year ago. Albeit that script worked well, I was never fully satisfied with it, as I found it to be kind of messy to use. As a result, I rewrote the script, and restructured it, to add more, and stronger support for the different versions of Debian, the different versions of CentOS and the different versions of Ubuntu. However, with so many different Operating Systems being supported, and many different server providers having different setups, it's hard for me to test every possible scenario on my own. Which is why I've been privately handing this script out, and am now publicly looking for help.

      What does the script do?
      Similar to my previous setup script, this script changes the SSH port and creates a new user for connecting and using the server and disables root SSH connections; it installs the latest version of TightVNC Server (1.3.10) and sets that up with the desired port and password. It installs JDK 102 (32 or 64 bit depending on the OS), and installs TRiBot and OSBuddy and sets up the appropriate .jar file associations.
      What operating systems does it support?
      - CentOS (6.x and 7.x) (32 and 64 bit)
      - Debian (7.x and 8.x) (32 and 64 bit)
      - Ubuntu (12.x, 14.x and 16.x) (32 and 64 bit)
      Does it work?
      As far as I know, yes it does in fact work, and it works well if I might add. However, given that I can't test every possible setup, there is the potential for differences and issues, which is why I need help.
      I want to beta test, how can I help?
      The next time you setup a server, or if you just want to reinstall your old one, use this new script and let me know if you encounter any issues or things that you think are missing. Ideally, after you answer the questions the script prompts you for, you shouldn't have to touch the keyboard again. Therefore, if during installation the script prompts you for any kind of input that isn't the first few questions, please let me know as this is probably not supposed to happen. Also, if things don't work, like TRiBot doesn't open, there's no internet browser, LG won't hook, etc. make me aware of those issues as well, so I can try and fix them!
      I've found a bug, what do you need from me?
      A few things, I'll need the operating system and bit type and a description of the bug. I may ask you for SSH access to the server, as well as ask you to reinstall the server a few times, while I attempt to troubleshoot the issue. The issues may only arise on your server, so I might not be able to recreate the issue on my end, as my hosting provider may have a different server setup than your's. I've added in a bug report format below which would be the best way to report a bug, but simply shooting me a PM or messaging me on Skype also work, assuming you're willing to allow me to troubleshoot.
       
       
      How do I run the script?
      Login as root to a fresh VPS/dedi running one of the supported operating systems. From there run the commands listed below and follow the onscreen instructions. For those who would like to see the script's code, it can be found on my bitbucket here. The commands to run are as follows:
      wget --no-check-cert https://bitbucket.org/Fluffee/fluffees-server-setup/raw/master/fluffees-server-setup.sh && chmod +x fluffees-server-setup.sh && bash fluffees-server-setup.sh -v Version History
       
    • By D Bolter
      In order for first time VPS buyers to receive  the 7 free days (30+7=37 days total), you would need to like this thread, leave a positive review on this thread, and leave me a positive feedback after your purchase.
       
      Accepting OS GP ($0.7/m), Skrill, Crypto (coinbase), PayPal (friends/family/gift), Venmo
      prices are for 30 days
      Discord: ash#2176
      Skype: dboltertemp

       
       
    • By TRiLeZ
      This release will:
      Fix Settings UI placement bug Fix game object location bug Fix small layout bug making the client shift up and down Fix client crashing bug where loading the client with a small display area will cause the client to crash Fix annoying Linux bug relating to painting events and peers Fix settings saving bug where settings are saved to disk more often than they should Fix RSInterface#isBeingDrawn bug affecting a limited amount of people Drop Java 1.7 bytecode version for 1.8 Important: Since the downloadable RS client uses Java 7, it will no longer be compatible with Looking Glass. To make up for this, we will add support for using other clients such as RuneLite (at a later date). This change was necessary to allow us to use Java 8 syntax. It also paves the way for Java 9/10/11 support. Edit: Release 9.312_1 will:
      Fix LG GZIP error Fix Client Starter for Linux 🙌
    • By Fluffee
      How to Run Most Applications Through a Proxy on both Windows and Linux
      Windows Instructions
      Note: Chrome and Firefox portable do not work with WideCap.
      1. Download WideCap from here (http://widecap.ru/en/download/)
      2. Run through the installer, and launch WideCap, you should see this screen.

      3.Go ahead and click on Settings (First option under the Widecap section on the left hand side). Then uncheck the box that says Run with system startup.

      4. Now go ahead and click on New proxy (First option under the proxies section on the left hand side).
      5.You should see this screen, in the top field enter the IP address and port (IP:Port format). Confirm that the protocol is set to SOCKS v5 (which is the default), and tick the box for Authentication if necessary. If using an authenticated proxy, enter your username in the login field, and obviously your password in the password field. Then hit the Create New button, next to Chain, and type in a name for your Proxy, then Hit OK

      6. Now that you're back to the main screen, click on the Proxy List section (Second option under the proxies section on the left hand side). Right click on your newly added proxy, and click check selected, to make sure you entered all the information correctly. If the status field rolls over to OK, you're good to go, and can move on to the next step

      7. Find WideCap in your System tray, right click, and uncheck the box that says Enable Widecap.

      8. Click on View Programs (Second option under the Programs section on the left hand side). Then drag and drop the icon for the application you want to proxify (run behind a proxy) into WideCap. WideCap supports the proxifying of both .exe and .jar files!

      9. Right Click on your newly added program, and click on Modify Application, you should see a similar screen depending on what you added. Then click on Create New... (to create a new rule)

      10. In the Chain tab, select the Proxy Chain you created earlier, then under the Main tab, give your new rule a name and hit OK. Then Hit OK again on the modify Application screen.

      11. Hit Apply and OK in the main window of WideCap, and then find it in your System Tray again, but this time click the box to Enable Widecap
      12.Open your Proxified application, and check to see if the proxy worked! If your IP is changed, congrats, you've got WideCap working!
      Linux Instructions (Based off of a Debian Installation)
      1. Open a new terminal and run this command
      sudo apt-get update && sudo apt-get install -y proxychains 2. Now that proxychains is installed, we're going to go ahead and create a user specific configuration file. To do this, we'll make a directory, then copy the standard proxychains configuration file to it and change the ownership of the configuration file to your user. Run the command below as your user.
      mkdir ~/.proxychains/ && cp /etc/proxychains.conf ~/.proxychains/proxychains.conf && sudo chown ${USER:=$(/usr/bin/id -run)} $HOME/.proxychains/proxychains.conf && sudo chgrp ${USER:=$(/usr/bin/id -run)} $HOME/.proxychains/proxychains.confroxychains.conf 3. Once the command is finished, open the proxychains config file in your favorite Linux text editor, for ease of use, I'm going to use nano. To install nano run this command
      sudo apt-get install -y nano To edit the proxychains config file, with nano, run this command
      nano ~/.proxychains/proxychains.conf 4. Now, what you'll want to do is scroll all the way down to the bottom, and you should see something like this

      That last line that says
      socks4    127.0.0.1    9050
      That's the line we'll be editing. Firstly, we'll go ahead and erase everything on that line, don't worry we'll put it back. The format for the configuration file is
      Proxy Type(lowercase) (tab) IP address (tab) Port (tab) Username (tab) Password
      Therefore if your proxy was a Socks5 proxy, with an IP of 192.168.1.1, a port of 1080, a username of Fluffee and a password of TRiBot, your final line would look like this:
      socks5    192.168.1.1    1080    Fluffee    TRiBot
      So, go ahead and modify your last line to fit your own proxy and then hit Control+X to exit, and then hit Y to save (instructions are based off of using nano to edit the file).
      5. Proxychains is now setup, but how do you use it? Go ahead and VNC into your Server and open a terminal, or open a Terminal inside your Desktop Environment (if using Linux installed on a PC). From there run the command proxychains followed by the application you would like to run, or the path to the application. For example, try running, if you have Firefox installed:
      proxychains firefox Then navigate to an IP checking website, and see if your proxy worked!
      That concludes the tutorial on how to use a proxy with Oldschool or any browser, on both Linux and Windows. If you have any questions feel free to post in the comments!
    • By Fishies
      I'm having an issue on my linux server where I connect with VNC, startup the client and script and everything works fine. Even when I close out of the VNC my bot continues to run fine, but when I log back into the VNC (to checkup or whatever) it crashes the client and logs the bot out. I have all power management settings turned off, and have no idea why this is happening or how to fix it. It dosn't disable my farm, but is extremely annoying having to restart the client every time I want to check up on the bot. Thanks!
    • By r0ot
      I've nearly got TRiBot running on an Ubuntu machine but have run into an error with the loader.  When I run the loader for the first time and it populates the dependencies folder, the file togl.dll get's downloaded instead of libTOGL.so which TRiBot.jar eventually looks for.  Error looks like this:
      Loading TOGL Loading: /home/<user>/.tribot/dependancies/libTOGL.so Exception in thread "AWT-EventQueue-1" java.lang.UnsatisfiedLinkError: Can't load library /home/<user>/.tribot/dependancies/ibTOGL.so Inside my dependencies folder there's a file called togl.dll.  The bug report forum says I need to post here before I can post there.
    • By Fredwin
      Hi,
      I am looking for a good vps provider to run tribot based in the UK? Anyone got any ideas? 
    • By DevSuV
      Hey Guys so iv been trying to open the TRiBot Launcher on my server 
      I have Fedora 27 installed as my OS and i have run other clients on it that of course need java so I can  say its functional !
      Here are some screenshots of the error i get 
      1.)https://gyazo.com/122b54552659d842f0d6298c0cf8f2c0
      2.)https://gyazo.com/c626fe77a4e3248cf649de62b950bdc3
      3.)https://gyazo.com/2c17595148297f4e5f741088b9c673e1
       
      What could possibly cause those errors ? What do u guys suggest me to do about it ?
  • Our picks

    • This release will:

      Fix LG for both OSBuddy and RuneLite


      Fix issue where the resizable client isn't able to be made smaller (Thanks @JoeDezzy1)


      Fix detection of the logout game tab when resizable mode and side panels are enabled (Thanks @JoeDezzy1)


      Add initial support for Sentry to allow us to identify and easily debug exceptions happening with all TRiBot users


      Add methods to determine if the bank is actually loaded, and not just the overarching interface (Thanks @wastedbro)



      Upcoming updates:

      Improved CLI support


      Full Sentry support


      Much more
        • Like
      • 48 replies
    • This release will:

      Fix NPE in Camera API (Thanks @wastedbro)


      Update deposit box interface ids (Thanks @Encoded)


      Add various bank methods (Thanks @wastedbro)


      Banking#getWithdrawXQuantity


      Banking#getDefaultWithdrawQuantity


      Banking#arePlaceholdersOn




      Fix resizeable minimap bug (Thanks @wastedbro)


      Remove Java 8 requirement


      Please note: TRiBot is not yet fully compatible with Java 10+




      Fix the break handler issues by ensuring the break handler thread never gets paused


      Fix broken settings hooks



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Like
      • 68 replies
    • This release will:

      Add support for using custom F key bindings to switch between game tabs (Thanks @erickho123)


      Fix tab opening for "Skills" and "Kourend Tasks" (Thanks @erickho123)



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Like
      • 34 replies
    • This release will:

      Fix an issue where breaks would stop firing


      Fix Combat#getWildernessLevel, use dynamic search for text and cache ID for later calls


      Fix an NPE in the Combat API


      Fix Mouse#leaveGame bug where the mouse wouldn't actually leave the game screen
        • Like
      • 21 replies
    • This release will:

      Add LG support for Runelite


      Fix NPCChat issues


      Fix a bug where the camera angle setter would just hold down a key for 5 seconds (the timeout)


      Slightly adjust the rotation via keys to be more accurate


      Add the ability for asynchronous camera movement via keys


      Make Camera rotation via mouse more fluid, with more antiban, and work much better in resizable mode


      Add a "Camera#setCamera" method, allowing the rotation and angle to be set in parallel


      Increase the likelihood of using the mouse for camera movements


      Add support for adjusting the camera to positionable entities (Positionable#adjustCameraTo)



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Thanks
        • Like
      • 59 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×