Skip to content

Instantly share code, notes, and snippets.

@tonypiazza
Last active September 5, 2016 11:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonypiazza/4a068f229eca4028940b to your computer and use it in GitHub Desktop.
Save tonypiazza/4a068f229eca4028940b to your computer and use it in GitHub Desktop.
A BASH script to setup everything we need for a Couchbase development machine with Xubuntu Desktop. You will need a machine with at least 4348 MB of RAM and 4 cores.
#!/bin/bash
# Script written by Tony Piazza (https://gist.github.com/tonypiazza)
# Privileges check
if [ $UID != 0 ]
then
echo -e "Insufficient privileges!"
exit 1
fi
echo "-----> Installing Couchbase Server 4.x"
wget -P ~/Downloads http://packages.couchbase.com/releases/4.1.0/couchbase-server-enterprise_4.1.0-ubuntu14.04_amd64.deb
dpkg -i ~/Downloads/couchbase-server-enterprise_4.1.0-ubuntu14.04_amd64.deb
echo "-----> Adding required PPAs for Java"
add-apt-repository -y ppa:webupd8team/java
apt-get update
echo "-----> Installing Java"
apt-get install oracle-java8-installer
echo "-----> Installing Eclipse"
wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/mars/R/eclipse-java-mars-R-linux-gtk-x86_64.tar.gz
cd /opt
tar -zxf ~/Downloads/eclipse-java-mars-R-linux-gtk-x86_64.tar.gz
touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse
echo "-----> Installing Sublime Text"
add-apt-repository ppa:webupd8team/sublime-text-2
apt-get update
apt-get install sublime-text
echo "-----> Installing Conky"
apt-get install conky
echo "-----> Installation has finished!"
exit 0
@tonypiazza
Copy link
Author

Here are the steps to run this script from the home directory:

sudo apt-get -y install git
git init
git pull https://gist.github.com/4a068f229eca4028940b.git
chmod +x setup-couchbase-dev.sh
sudo ./setup-couchbase-dev.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment