Created
October 20, 2011 23:43
-
-
Save sleepsonthefloor/1302721 to your computer and use it in GitHub Desktop.
Install Basics for Xenserver Devstack
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 | |
set -o xtrace | |
# Install basics for vi and git | |
yum -y --enablerepo=base install gcc make vim-enhanced zlib-devel openssl-devel | |
# Simple but usable vimrc | |
cat > /root/.vimrc <<EOF | |
syntax on | |
se ts=4 | |
se expandtab | |
se shiftwidth=4 | |
EOF | |
# Use the pretty vi | |
if [ -e /usr/bin/vim ]; then | |
rm /bin/vi | |
ln -s /usr/bin/vim /bin/vi | |
fi | |
# Install git | |
if ! which git; then | |
DEST=/tmp/ | |
GITDIR=$DEST/git-1.7.7 | |
cd $DEST | |
rm -rf $GITDIR* | |
wget http://git-core.googlecode.com/files/git-1.7.7.tar.gz | |
tar xfv git-1.7.7.tar.gz | |
cd $GITDIR | |
./configure | |
make install | |
fi | |
# Clone devstack | |
DEVSTACK=/root/devstack | |
if [ ! -d $DEVSTACK ]; then | |
git clone git://github.com/cloudbuilders/devstack.git $DEVSTACK | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment