This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# requirements | |
yum -y install wget | |
# repository | |
cd /usr/local/src | |
wget https://gist.github.com/skt-bford/4961513/raw/epel.setup.sh | |
sh epel.setup.sh | |
rm epel.setup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
yum -y install ntp | |
rm -f /etc/localtime | |
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime | |
/etc/init.d/ntpd stop | |
ntpdate pool.ntp.org | |
/sbin/chkconfig --levels 235 ntpd on | |
/etc/init.d/ntpd start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# requirements | |
yum -y install wget | |
cd /usr/local/src | |
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm | |
rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm | |
rm -f rpmforge-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#requirements | |
yum -y install wget | |
cd /usr/local/src | |
wget http://mirrors.xmission.com/fedora/epel/6/i386/epel-release-6-8.noarch.rpm | |
rpm -Uvh epel-release-6-8.noarch.rpm | |
rm -f epel-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# requirements | |
yum -y install wget | |
# repository | |
cd /usr/local/src | |
wget https://gist.github.com/skt-bford/4961501/raw/repoforge.setup.sh | |
sh repoforge.setup.sh | |
rm -f repoforge.setup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemon (place in /etc/init.d/nginx) | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /opt/nginx/conf/nginx.conf | |
# pidfile: /var/run/nginx.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# requirements | |
yum -y install wget | |
# install passenger | |
gem install passenger --no-ri --no-rdoc | |
passenger-install-nginx-module | |
# copy init script for nginx | |
cd /usr/local/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# requirements | |
yum -y install wget crontabs sudo | |
/sbin/chkconfig --levels 235 crond on | |
/etc/init.d/crond start | |
# perform updates | |
yum -y update | |
# configure NTP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# requirements | |
yum -y install wget | |
# initial setup | |
cd /usr/local/src | |
wget https://gist.github.com/skt-bford/4961941/raw/centos.init.sh | |
sh centos.init.sh | |
rm -f centos.init.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# requirements | |
yum -y install wget | |
# setup postgres repo | |
sed -ri '/\[base\]/ a\ | |
exclude=postgresql*' /etc/yum.repos.d/CentOS-Base.repo | |
sed -ri '/\[updates\]/ a\ | |
exclude=postgresql*' /etc/yum.repos.d/CentOS-Base.repo |
OlderNewer