Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Automatic VPS Setup Script [CentOS 7 Only]


    Dreamlicker

    Recommended Posts

    I ran into the same issue, i used this guide and just installed vnc manually

    https://www.howtoforge.com/vnc-server-installation-on-centos-7 

    thx none, I'll give it a try!

    I ran into the same issue, i used this guide and just installed vnc manually

    https://www.howtoforge.com/vnc-server-installation-on-centos-7 

    it gives me error 404 page not found.

    hi, I found it. I've been following the guide, but after this step https://i.imgur.com/hxpHOK3.png ( I created a password ) it kicked me off and wouldn't let me connect

     

    Automatic CentOS 7 VPS Setup Script

     

    Hey everyone, I set up a script that automatically does everything you need for a CentOS 7 VPS and I figured I'd release it all to you.

     

    It will:

    Install JDK

    Install xfce (Windows Manager)

    Install vncserver

    Handle starting/stopping the VNC completely for you

    Instruct you on how to connect using a VNC client

     

     

    Installation Instructions:

    1. SSH into your CentOS 7 VPS (Fresh install recommended!)
    2. Type "yum -y install unzip"
    3. Type "wget http://dreamlicker.co/scripts/setupDreambot.zip"
    4. Type "unzip *.zip"
    5. Type "sh setupDreambot.sh"

    You are now in the setup script. Check out the help options if you're confused. Pressing 1 will install everything, which is what you need for a full install.

    PS: The help options contain detailed information on how to use the program and how to use the VNC options.

     

    Then, check out the "How to connect to VNC" option.

    NOTE: Installation options need to be ran as root. Feel free to browse the script if you dont feel it is safe.

     

    Post any problems you might have or any questions you have. 

     

     

    Source

     

     

     

    
    
    #!/bin/bash
     
    menu () {
    echo "#######################################"
    echo "#                                     #"
    echo "#     Dreamlicker's Setup Script      #"
    echo "#                                     #"
    echo "#  1: Full install                    #"
    echo "#  2: Check for Java                  #"
    echo "#  3: Install Java                    #"
    echo "#  4: About/Help                      #"
    echo "#  5: Install Desktop environment     #"
    echo "#  6: Start/Stop VNC Server           #"
    echo "#  7: How to connect to VNC           #"
    echo "#  8: Quit                            #"
    echo "#                                     #"
    echo "#######################################"
    }
     
    vncMod () {
    ps cax | grep Xvnc > /dev/null
    if [ $? -eq 0 ]; then
    vncserver -kill :1
    else
    vncserver
    fi
    }
     
    descVnc () {
    echo "VNC is software that allows remote desktop usage."
    echo "Your VPS runs the VNC server, and you must use a VNC client."
    echo "I recommend using TightVNC. There is a Windows version and a Java version."
    echo "If you are on Windows, I would just use the Windows version."
    echo "All operating systems can use the Java version."
    echo "After using option 6 to start the server, start TightVNC and enter your"
    echo "VPS's IP address in the IP address bar with a :1 following it."
    echo "Example: 122.111.33.54:1"
    echo "Use your username that you are using to start the script (Recommended not to be root)"
    echo ""
    echo "IMPORTANT:"
    echo "Use the password you set up after installing VNC. If you didn't do this, go to the terminal"
    echo "Once at the terminal, type \"vncserver\" and it will ask you to configure a password"
    echo "You can use it now, or you can come into this script and use 6 to stop it"
    echo "If you don't know what you're doing, don't start vncserver from the terminal"
    echo "Only start it using the main menu of this script"
    }
     
    installJava () {
      if ! which java > /dev/null; then
          echo "Installing JDK 8"
          wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm
          rpm -Uvh jdk-8u91-linux-x64.rpm
      else
          echo "Java is installed"
      fi
    }
     
    checkJava () {
      if ! which java > /dev/null; then
        echo "Java not found!"
      else
        echo "Java was found!"
      fi
    }
     
    installVNC () {
      yum -y install epel-release
      yum -y groupinstall "X Window system"
      yum -y groupinstall xfce
      yum -y install vnc-server
      mkdir ~/.vnc && cp xstartup ~/.vnc/xstartup
    }
     
    fullInstall () {
      installJava
      installVNC
    yum -y install firefox
    }
     
    about () {
      echo "Dreambot setup tool for CentOS"
      echo "Made by Dreamlicker"
      echo "Full install will install the JDK if not present."
      echo "It will also install xfce and vnc-server. These allow you to use a desktop."
    echo "Finally, the full install will install Firefox so you can download Dreambot's launcher and browse the site."
      echo "The rest is pretty self-explanatory."
    }
     
    c="0"
     
    while [ ! $c -eq 8 ]; do
      menu
      read -n 1 c
      clear
      printf "\n"
      if [ $c -eq 1 ]; then
        fullInstall
      elif [ $c -eq 2 ]; then
        checkJava
      elif [ $c -eq 3 ]; then
        installJava
      elif [ $c -eq 4 ]; then
        about
      elif [ $c -eq 5 ]; then
        installVNC
      elif [ $c -eq 6 ]; then
    vncMod
    elif [ $c -eq 7 ]; then
    descVnc
    fi
    if [ $c -eq 8 ]; then 
    exit
    else
    read -rsp $'Press any key to continue...\n' -n1 key
    fi
    clear
    done
     

     

     

     

    Hi, I did this https://i.imgur.com/HR2oW1C.png after setting up the VNC with typing 6, and choosing a password. 

     

    when I try to do as explained in TightVNC it says it fails to connect, or can't connect (it's in my language, so not sure how to translate it)

     

    did I do something wrong? any help is appreciated!

    Link to comment
    Share on other sites

    thx none, I'll give it a try!

    it gives me error 404 page not found.

    hi, I found it. I've been following the guide, but after this step https://i.imgur.com/hxpHOK3.png ( I created a password ) it kicked me off and wouldn't let me connect

    Hi, I did this https://i.imgur.com/HR2oW1C.png after setting up the VNC with typing 6, and choosing a password. 

     

    when I try to do as explained in TightVNC it says it fails to connect, or can't connect (it's in my language, so not sure how to translate it)

     

    did I do something wrong? any help is appreciated!

     

    You need to specify the port number after your IP with two colons if you aren't doing so.

    Link to comment
    Share on other sites

    • 4 weeks later...

    Hi I've setup my server and it all works, except there is memory leak when I use quickstart of about 10x the memory that is use without quickstart. I've tried parameters "-Xmx256m flag" but it doesn't work. I've had this problem for 2 weeks now, could anyone please support me? 

    Link to comment
    Share on other sites

    • 4 weeks later...
    • 1 month later...
    • 1 year later...
    • 3 months later...
    • 4 months later...

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.