diff --git a/README.md b/README.md index 2e0a31f..38973da 100644 --- a/README.md +++ b/README.md @@ -6,43 +6,43 @@ To install any of the following, just copy and paste the text in the box on a fr Install OpenVZ on CentOS 6.x ----- - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installOpenVZ.sh --insecure) + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installOpenVZ.sh --insecure) Install NTP on CentOS 6.x ----- - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installNTP.sh --insecure) + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installNTP.sh --insecure) Install GlusterFS on CentOS 6.x ----- - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installGlusterFS.sh --insecure) + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installGlusterFS.sh --insecure) Install NodeJS on CentOS 6.x ----- - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installNodeJS.sh --insecure) + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installNodeJS.sh --insecure) Install LAMP stack on CentOS 6.x ----- - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installLAMP.sh --insecure) + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installLAMP.sh --insecure) Install MongoDB on CentOS 6.x ----- - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installMongoDB.sh --insecure) + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installMongoDB.sh --insecure) To install them All: ----- - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installOpenVZ.sh --insecure) && \ - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installNodeJS.sh --insecure) && \ - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installLAMP.sh --insecure) && \ - source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installMongoDB.sh --insecure) + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installOpenVZ.sh --insecure) && \ + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installNodeJS.sh --insecure) && \ + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installLAMP.sh --insecure) && \ + source <(curl -s https://raw.github.com/mani95lisa/CentOS-6-Quick-Install-Scripts/master/installMongoDB.sh --insecure) diff --git a/installMongoDB.sh b/installMongoDB.sh index b6fe457..62f3280 100644 --- a/installMongoDB.sh +++ b/installMongoDB.sh @@ -14,4 +14,4 @@ yum install -y mongo-10gen mongo-10gen-server service mongod start chkconfig mongod on clear -echo 'MongoDB is installed, running and set to auto-start on reboots.... your still a NoSQL groupie...' +echo 'MongoDB is installed, running and set to auto-start on reboots.... your still a NoSQL groupie...' \ No newline at end of file diff --git a/installNTP.sh b/installNTP.sh index b5da6f8..a2dcb24 100644 --- a/installNTP.sh +++ b/installNTP.sh @@ -1,6 +1,13 @@ #!/bin/bash -echo 'installing and configuring NTP' +echo 'Choose timezone:' +ls /usr/share/zoneinfo/ +read -p 'Enter zoneinfo to set (Hongkong)' zoneinfo +zoneinfo=${zoneinfo:-Hongkong} +rm /etc/localtime +ln -s /usr/share/zoneinfo/$zoneinfo /etc/localtime + +echo 'Installing and configuring NTP' yum install -y wget ntp chkconfig ntpd on diff --git a/installNodeJS.sh b/installNodeJS.sh index ffdebc2..c34b5f8 100644 --- a/installNodeJS.sh +++ b/installNodeJS.sh @@ -1,48 +1,10 @@ #!/bin/bash - -#install NTP just incase: -source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installNTP.sh --insecure) - -# CHANGE THIS URL FOR DIFF VERSIONS ::: -# ----------------------------------------------------- - -JSURL=http://nodejs.org/dist/v0.8.18/node-v0.8.18.tar.gz - -# ----------------------------------------------------- - -FILENAME=${JSURL##*/} # get the filename from the URL -TEMPFOLDER="${FILENAME%.*}" -FOLDER="${TEMPFOLDER%.*}" - -clear - -echo 'We are going to install NodeJS for you... ' - -echo 'checking if we got wget magic' -yum install -y wget #check if we have it - -echo 'lets download nodejs..' - -rm -r -f /usr/local/src -mkdir -p /usr/local/src -cd /usr/local/src - -wget $JSURL - -mkdir -p ./nodesrc -tar -zxvf ./$FILENAME - -echo 'Files extracted....' - -cd ./$FOLDER - -yum install -y openssl-devel -yum groupinstall -y "Development Tools" - -echo 'Configuring and installing NodeJS' - -./configure -make -make install - -echo 'welllllll....... that should be it.... hopefully :)' +yum install git -y +git clone git://github.com/creationix/nvm.git ~/nvm +echo "source ~/nvm/nvm.sh" >> ~/.bashrc +source ~/.bashrc +read -p 'Enter node.js version to install : (0.10.2) ' version +version=${version:-0.10.2} +nvm install $version + +echo 'Have fun with Node.js' \ No newline at end of file