From 7f89c9fdc2a65b85cb755ed8ed01ecf6eaddd144 Mon Sep 17 00:00:00 2001 From: mani Date: Thu, 14 Mar 2013 15:54:16 +0800 Subject: [PATCH 1/8] update nodejs to 0.10.0 --- installNodeJS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installNodeJS.sh b/installNodeJS.sh index ffdebc2..bd6a204 100644 --- a/installNodeJS.sh +++ b/installNodeJS.sh @@ -6,7 +6,7 @@ source <(curl -s https://raw.github.com/qrpike/CentOS-6-Quick-Install-Scripts/ma # CHANGE THIS URL FOR DIFF VERSIONS ::: # ----------------------------------------------------- -JSURL=http://nodejs.org/dist/v0.8.18/node-v0.8.18.tar.gz +JSURL=http://nodejs.org/dist/v0.10.0/node-v0.10.0-linux-x64.tar.gz # ----------------------------------------------------- From 864e55528fd16128e94647d1153d40ab1ce92c09 Mon Sep 17 00:00:00 2001 From: mani Date: Thu, 14 Mar 2013 16:20:02 +0800 Subject: [PATCH 2/8] add install compiler --- installNodeJS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installNodeJS.sh b/installNodeJS.sh index bd6a204..8b7db71 100644 --- a/installNodeJS.sh +++ b/installNodeJS.sh @@ -36,7 +36,7 @@ echo 'Files extracted....' cd ./$FOLDER -yum install -y openssl-devel +yum install openssl-devel gcc-c++ gcc yum groupinstall -y "Development Tools" echo 'Configuring and installing NodeJS' From d0d749f4c71d6b2748733263c43cc46a931fe79c Mon Sep 17 00:00:00 2001 From: mani Date: Thu, 14 Mar 2013 16:43:47 +0800 Subject: [PATCH 3/8] add nodejs bin path --- installNodeJS.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/installNodeJS.sh b/installNodeJS.sh index 8b7db71..81ac733 100644 --- a/installNodeJS.sh +++ b/installNodeJS.sh @@ -39,10 +39,8 @@ cd ./$FOLDER yum install openssl-devel gcc-c++ gcc yum groupinstall -y "Development Tools" -echo 'Configuring and installing NodeJS' - -./configure -make -make install +touch ~/.profile +echo 'export PATH=/usr/local/src/node-v0.10.0-linux-x64/bin:$PATH' >> ~/.profile +source ~/.profile echo 'welllllll....... that should be it.... hopefully :)' From d5577dafb031b9227650496ba51e5b0e341c64b0 Mon Sep 17 00:00:00 2001 From: mani Date: Thu, 14 Mar 2013 16:45:53 +0800 Subject: [PATCH 4/8] change name --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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) From 5357c8415fdf73270020f57ca09f32a195b4cf01 Mon Sep 17 00:00:00 2001 From: mani Date: Thu, 14 Mar 2013 21:56:03 +0800 Subject: [PATCH 5/8] add profile --- installNodeJS.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installNodeJS.sh b/installNodeJS.sh index 81ac733..881fa02 100644 --- a/installNodeJS.sh +++ b/installNodeJS.sh @@ -39,8 +39,7 @@ cd ./$FOLDER yum install openssl-devel gcc-c++ gcc yum groupinstall -y "Development Tools" -touch ~/.profile -echo 'export PATH=/usr/local/src/node-v0.10.0-linux-x64/bin:$PATH' >> ~/.profile -source ~/.profile +echo 'export PATH=/usr/local/src/node-v0.10.0-linux-x64/bin:$PATH' >> /etc/profile +source /etc/profile echo 'welllllll....... that should be it.... hopefully :)' From 87f68ac4ec45e6efc928c59929edda4881059688 Mon Sep 17 00:00:00 2001 From: mani Date: Wed, 10 Apr 2013 22:04:58 +0800 Subject: [PATCH 6/8] change mongo and nodejs --- installMongoDB.sh | 17 +++++++++++++++- installNodeJS.sh | 49 +++++++---------------------------------------- 2 files changed, 23 insertions(+), 43 deletions(-) diff --git a/installMongoDB.sh b/installMongoDB.sh index b6fe457..c28d5a9 100644 --- a/installMongoDB.sh +++ b/installMongoDB.sh @@ -11,7 +11,22 @@ echo 'enabled=1' >> /etc/yum.repos.d/10gen.repo yum install -y mongo-10gen mongo-10gen-server -service mongod start +echo 'Begin to config MongoDB...' +read -p 'Enter path to save config : (/etc/mongod.conf) ' config +config=${config:-/etc/mongod.conf} +touch $config +read -p 'Enter path to save data : (/data/db) ' dbpath +dbpath=${dbpath:-/data/db} +echo 'dbpath = '$dbpath >> $config +read -p 'Enter path to save log : (/var/log/mongodb/mongod.log) ' logpath +logpath=${logpath:-/var/log/mongodb/mongod.log} +echo 'logpath = '$logpath >> $config +echo 'fork = true' >> $config +echo 'port = 27017' >> $config +echo 'bind_ip = 127.0.0.1' >> $config +echo 'logappend = true' >> $config + +service mongod --config $config chkconfig mongod on clear echo 'MongoDB is installed, running and set to auto-start on reboots.... your still a NoSQL groupie...' diff --git a/installNodeJS.sh b/installNodeJS.sh index 881fa02..da74b7d 100644 --- a/installNodeJS.sh +++ b/installNodeJS.sh @@ -1,45 +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.10.0/node-v0.10.0-linux-x64.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 openssl-devel gcc-c++ gcc -yum groupinstall -y "Development Tools" - -echo 'export PATH=/usr/local/src/node-v0.10.0-linux-x64/bin:$PATH' >> /etc/profile -source /etc/profile +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 'welllllll....... that should be it.... hopefully :)' From 12c5b8364cb4e45229f53a36d3f3327fc3d588a8 Mon Sep 17 00:00:00 2001 From: mani Date: Fri, 12 Apr 2013 23:50:40 +0800 Subject: [PATCH 7/8] Update shell --- installMongoDB.sh | 19 ++----------------- installNTP.sh | 9 ++++++++- installNodeJS.sh | 4 ++-- 3 files changed, 12 insertions(+), 20 deletions(-) diff --git a/installMongoDB.sh b/installMongoDB.sh index c28d5a9..62f3280 100644 --- a/installMongoDB.sh +++ b/installMongoDB.sh @@ -11,22 +11,7 @@ echo 'enabled=1' >> /etc/yum.repos.d/10gen.repo yum install -y mongo-10gen mongo-10gen-server -echo 'Begin to config MongoDB...' -read -p 'Enter path to save config : (/etc/mongod.conf) ' config -config=${config:-/etc/mongod.conf} -touch $config -read -p 'Enter path to save data : (/data/db) ' dbpath -dbpath=${dbpath:-/data/db} -echo 'dbpath = '$dbpath >> $config -read -p 'Enter path to save log : (/var/log/mongodb/mongod.log) ' logpath -logpath=${logpath:-/var/log/mongodb/mongod.log} -echo 'logpath = '$logpath >> $config -echo 'fork = true' >> $config -echo 'port = 27017' >> $config -echo 'bind_ip = 127.0.0.1' >> $config -echo 'logappend = true' >> $config - -service mongod --config $config +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..9aa7971 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 ' 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 da74b7d..c34b5f8 100644 --- a/installNodeJS.sh +++ b/installNodeJS.sh @@ -5,6 +5,6 @@ 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 +nvm install $version -echo 'welllllll....... that should be it.... hopefully :)' +echo 'Have fun with Node.js' \ No newline at end of file From 258837199c75afe0914237dd42c3ac3d74fd146b Mon Sep 17 00:00:00 2001 From: mani Date: Sat, 13 Apr 2013 21:06:54 +0800 Subject: [PATCH 8/8] set zoninfo default to Hongkong --- installNTP.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installNTP.sh b/installNTP.sh index 9aa7971..a2dcb24 100644 --- a/installNTP.sh +++ b/installNTP.sh @@ -2,7 +2,7 @@ echo 'Choose timezone:' ls /usr/share/zoneinfo/ -read -p 'Enter zoneinfo to set ' zoneinfo +read -p 'Enter zoneinfo to set (Hongkong)' zoneinfo zoneinfo=${zoneinfo:-Hongkong} rm /etc/localtime ln -s /usr/share/zoneinfo/$zoneinfo /etc/localtime