taleg 6 Share Posted March 11, 2017 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: 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 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 More sharing options...
Dreamlicker 750 Author Share Posted March 11, 2017 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 More sharing options...
taleg 6 Share Posted March 15, 2017 ye, I did, firewall on the server blocked me turned it off and it worked, thx! Link to comment Share on other sites More sharing options...
taleg 6 Share Posted April 9, 2017 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 More sharing options...
artleyz 0 Share Posted May 1, 2017 This script is working flawlessly. Thank you so much for saving us all some serious time (and probably trouble). Link to comment Share on other sites More sharing options...
Deus Aureae 48 Share Posted May 2, 2017 Thanks for the guide! Very fast set-up and this OS is awesome. Link to comment Share on other sites More sharing options...
claybotter 23 Share Posted June 6, 2017 working great so far. thanks for the script. vnc in the script didnt work had to do it manually and it was a total bitch, gl boys Link to comment Share on other sites More sharing options...
botzdeOSRS 0 Share Posted August 22, 2018 does this still work?? i can"t seem to set up my vps properly =((((( Link to comment Share on other sites More sharing options...
belurking 2 Share Posted December 16, 2018 Would anyone happen to have a mirror of this ? Sadly it wasn't hosted on Github and his website is down. Link to comment Share on other sites More sharing options...
Frost Bets 5 Share Posted April 21, 2019 I suppose this is out of date.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.