Last active
January 3, 2016 09:29
-
-
Save leogdion/8442541 to your computer and use it in GitHub Desktop.
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
cd ~ | |
mkdir -p ~/.nave | |
mkdir -p ~/.scripts | |
mkdir -p ~/.installation | |
# Download scripts | |
cd ~/.scripts | |
curl -o backup-wpdb.sh https://gist.github.com/leogdion/8343509/raw | |
curl -o hostnames.sh https://gist.github.com/leogdion/8226872/raw | |
curl -o /etc/profile.d/sudoscreen.sh https://gist.github.com/leogdion/8442367/raw | |
# Download nave script | |
cd ~/.nave | |
curl -o ~/.nave/nave.sh https://raw.github.com/isaacs/nave/master/nave.sh | |
# Download rpms | |
cd ~/.installation | |
curl -O http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm | |
curl -O http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm | |
curl -O http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
curl -O http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
# Install rpms | |
rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm | |
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm | |
rpm -Uvh mysql-community-release-el6-5.noarch.rpm | |
rpm -Uvh epel-release-6*.rpm | |
# Refresh, upgrade, and install | |
cd ~ | |
yum clean all | |
yum -y upgrade | |
yum -y install cyrus-sasl cyrus-imapd mailx mysql-community-client nginx git bind-utils gitflow screen acpid cyrus-sasl-plain monit gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel gcc-c++ postgresql-devel | |
# Create links | |
ln -s ~/.scripts/backup-wpdb.sh /usr/local/bin/backup-wpdb | |
ln -s ~/.scripts/hostnames.sh /usr/local/bin/hostnames | |
ln -s ~/.scripts/sudoscreen.sh /etc/profile.d/sudoscreen.sh | |
ln -s ~/.nave/nave.sh /usr/local/bin/nave | |
# Install node, npm, and grunt | |
chmod 755 ~/.nave/nave.sh | |
nave usemain stable | |
curl https://npmjs.org/install.sh | sh | |
npm install -g grunt-cli | |
# Install rvm | |
curl -L get.rvm.io | bash -s stable | |
source /etc/profile.d/rvm.sh | |
rvm install 2.1.0 | |
# Start services | |
chkconfig acpid on | |
chkconfig nginx on | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment