Last active
February 29, 2016 07:08
-
-
Save girirajsharma/783b80464352f345120c 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
#!/bin/bash | |
#install sublime | |
which subl > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo 'Installing sublime 3' | |
add-apt-repository ppa:webupd8team/sublime-text-3 | |
apt-get update | |
apt-get install -y sublime-text-installer | |
fi | |
#install git | |
dpkg --get-selections | grep git > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo 'Installing git' | |
apt-get update | |
apt-get install -y git gtik | |
git config --global user.name "Taranjeet" | |
git config --global user.email "reachtotj@gmail.com" | |
fi | |
#will copy personal files to /usr/local/bin | |
# installing node and npm | |
echo "Installing Node 0.10.24" | |
wget https://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-x64.tar.gz | |
tar -xf node-v0.10.24-linux-x64.tar.gz | |
#I am moving node to /opt. You can change it to whatever suits you. | |
mv node-v0.10.24-linux-x64/ /opt/ | |
ln -sf "/opt/node-v0.10.24-linux-x64/bin/node" "/usr/bin/node" | |
ln -sf "/opt/node-v0.10.24-linux-x64/bin/npm" "/usr/bin/npm" | |
#install mysql 5.6 | |
echo "Installing Mysql 5.6" | |
apt-get install -y mysql-server-5.6 | |
# # #install java 7 | |
echo "Installing Java for ES" | |
apt-get install -y python-software-properties | |
add-apt-repository ppa:webupd8team/java | |
apt-get update | |
apt-get install -y oracle-java7-installer | |
#install es 1.4 | |
echo "Installing ES 1.4.0" | |
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.4.0.tar.gz | |
tar -xf elasticsearch-1.4.0.tar.gz | |
#I am moving ES to /opt. You can change it to whatever suits you. | |
mv elasticsearch-1.4.0/ /opt/ | |
# was facing some issue in settign softlink to Es | |
# So you will have to manually run it | |
# Issue : You must set ES_CLASSPATH var | |
# ln -sf "/opt/elasticsearch-1.4.0/bin/elasticsearch" "/usr/bin/elasticsearch" | |
#installing arcanist | |
echo 'Installing arcanist' | |
apt-get install -y php5 | |
apt-get install -y php5-curl | |
git clone https://github.com/phacility/libphutil.git | |
git clone https://github.com/phacility/arcanist.git | |
mv libphutil /opt/ | |
mv arcanist /opt/ | |
ln -sf /opt/arcanist/bin/arc /usr/bin/arc | |
#install vlc | |
echo "Installing VLC" | |
apt-get install -y vlc | |
#install redis 3.0.2 | |
# wget http://download.redis.io/releases/redis-3.0.2.tar.gz | |
# make | |
which xclip > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo 'Installing xclip' | |
apt-get update | |
apt-get install xclip | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment