Dreamlicker 750 Posted July 7, 2016 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: SSH into your CentOS 7 VPS (Fresh install recommended!) Type "yum -y install unzip" Type "wget http://dreamlicker.co/scripts/setupDreambot.zip" Type "unzip *.zip" 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
Dreamlicker 750 Author Posted July 7, 2016 Yaaaaaaaaaaaaaaaaaaay im not sure what this does This automatically sets up the botting environment. All you have to do is connect to the server with VNC and you can download Dreambot and immediately start botting
Silabsoft 13 Posted July 7, 2016 for those who use DigitalOcean and can't be bothered to run the prereqs of running this script can use use this userdata script when setting up the node: #!/bin/bash yum -y update yum -y install nginx wget http://dreamlicker.co/scripts/setupDreambot.zip unzip setupDreambot.zip Image below indicates where to paste when setting up your vps:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.