Skip to content

Instantly share code, notes, and snippets.

@jassoncasey
Last active January 22, 2018 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jassoncasey/176b160a3f11b78eb7184404299b524e to your computer and use it in GitHub Desktop.
Save jassoncasey/176b160a3f11b78eb7184404299b524e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Preconditions
# - CentOS 7 min ISO install
# - Executed by user with sudo NOPASSWD
# - Internet access
yum -y update && yum -y install epel-release ntp
systemctl start ntpd
yum -y install \
ant \
autoconf \
autogen \
automake \
bc \
bison \
bind-utils \
bzip2 \
cmake \
curl \
docker \
dejagnu \
flex \
gcc \
gcc-c++ \
git \
golang \
gperf \
hg \
java-1.8.0-openjdk-devel \
jq \
libtool \
libxslt \
lzip \
lz4 \
make \
ncurses-devel \
nmap \
nmap-ncat \
openssl-devel \
patch \
perl \
pkgconfig \
python34 \
svn \
rpm-build \
tcpdump \
tex \
texinfo \
unzip \
wget \
whois \
which \
vim \
virt-manager \
zip \
zlib-dev \
&& yum clean all
rm -rf /var/cache/yum
systemctl enable docker
systemctl start docker
# Setup our bash profile
cat >>.bash_profile <<BASH_PROFILE
alias vi="vim"
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
export LD_LIBRARY_PATH JAVA_HOME
BASH_PROFILE
source ~/.bash_profile
# Setup vim syntax coloring
git clone https://gist.github.com/6d82d2bb7eb6ea57e64a.git
mv 6d82d2bb7eb6ea57e64a/.vimrc ~/.vimrc
rm -rf 6d82d2bb7eb6ea57e64a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment