Skip to content

Instantly share code, notes, and snippets.

@tonypiazza
Last active December 16, 2015 04:59

Revisions

  1. tonypiazza revised this gist Feb 26, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    #!/bin/bash

    # Script written by Tony Piazza (https://gist.github.com/tonypiazza)

    # make sure we have sufficient privileges
    if [ $UID != 0 ]
    then
  2. tonypiazza revised this gist Nov 6, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ Categories=GNOME;Application;Development;
    StartupNotify=true"
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/kepler/SR1/eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz
    cd /opt
    tar -zxf ~/Downloads/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz
    tar -zxf ~/Downloads/eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz
    touch /usr/bin/eclipse
    chmod 755 /usr/bin/eclipse
    echo -e "$eclipse_bin" | tee /usr/bin/eclipse
  3. tonypiazza revised this gist Nov 6, 2013. 1 changed file with 3 additions and 11 deletions.
    14 changes: 3 additions & 11 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -12,12 +12,12 @@ add-apt-repository -y ppa:webupd8team/java
    apt-get update

    echo "-----> Downloading Cassandra..."
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/apache/cassandra/1.2.9/apache-cassandra-1.2.9-bin.tar.gz
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/apache/cassandra/2.0.2/apache-cassandra-2.0.2-bin.tar.gz

    echo "-----> Installing Java..."
    echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
    echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
    apt-get -y install oracle-java6-installer
    apt-get -y install oracle-java7-installer

    echo "-----> Installing Eclipse..."
    eclipse_bin="#!/bin/sh
    @@ -33,7 +33,7 @@ Terminal=false
    Type=Application
    Categories=GNOME;Application;Development;
    StartupNotify=true"
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/kepler/SR1/eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz
    cd /opt
    tar -zxf ~/Downloads/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz
    touch /usr/bin/eclipse
    @@ -76,14 +76,6 @@ git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    cd

    echo "-----> Customizing Launcher..."
    rm /usr/share/applications/ubuntu-amazon-default.desktop
    rm /usr/share/applications/UbuntuOneMusiconeubuntucom.desktop
    rm /usr/share/applications/ubuntuone-installer.desktop
    echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
    rmmod floppy
    update-initramfs -u

    echo "-----> Reinstalling VMware Tools..."
    apt-get -y autoremove
    apt-get -y install build-essential linux-headers-`uname -r` psmisc
  4. tonypiazza revised this gist Aug 31, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ add-apt-repository -y ppa:webupd8team/java
    apt-get update

    echo "-----> Downloading Cassandra..."
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/apache/cassandra/1.2.8/apache-cassandra-1.2.8-bin.tar.gz
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/apache/cassandra/1.2.9/apache-cassandra-1.2.9-bin.tar.gz

    echo "-----> Installing Java..."
    echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
  5. tonypiazza revised this gist Aug 31, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ apt-get -y install ant

    echo "-----> Installing LibYAML..."
    wget -P ~/Downloads http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    tar -zxf Downloads/yaml-0.1.4.tar.gz
    tar -zxf ~/Downloads/yaml-0.1.4.tar.gz
    cd yaml-0.1.4
    ./configure
    make
  6. tonypiazza revised this gist Aug 31, 2013. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ add-apt-repository -y ppa:webupd8team/java
    apt-get update

    echo "-----> Downloading Cassandra..."
    wget -P Downloads http://mirror.cc.columbia.edu/pub/software/apache/cassandra/1.2.8/apache-cassandra-1.2.8-bin.tar.gz
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/apache/cassandra/1.2.8/apache-cassandra-1.2.8-bin.tar.gz

    echo "-----> Installing Java..."
    echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
    @@ -33,7 +33,7 @@ Terminal=false
    Type=Application
    Categories=GNOME;Application;Development;
    StartupNotify=true"
    wget -P Downloads http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz
    wget -P ~/Downloads http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz
    cd /opt
    tar -zxf ~/Downloads/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz
    touch /usr/bin/eclipse
    @@ -46,7 +46,7 @@ echo "-----> Installing Ant..."
    apt-get -y install ant

    echo "-----> Installing LibYAML..."
    wget -P Downloads http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    wget -P ~/Downloads http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    tar -zxf Downloads/yaml-0.1.4.tar.gz
    cd yaml-0.1.4
    ./configure
    @@ -58,8 +58,8 @@ echo "-----> Installing python-dev..."
    apt-get -y install python-dev

    echo "-----> Installing PyYAML..."
    wget -P Downloads http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz
    tar -zxf Downloads/PyYAML-3.10.tar.gz
    wget -P ~/Downloads http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz
    tar -zxf ~/Downloads/PyYAML-3.10.tar.gz
    cd PyYAML-3.10
    python setup.py --with-libyaml install
    cd
  7. tonypiazza revised this gist Aug 31, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -65,7 +65,7 @@ python setup.py --with-libyaml install
    cd

    echo "-----> Installing JNA..."
    apt-get install libjna-java
    apt-get -y install libjna-java

    echo "-----> Installing CCM..."
    cd /opt
  8. tonypiazza revised this gist Aug 31, 2013. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,9 @@ cd PyYAML-3.10
    python setup.py --with-libyaml install
    cd

    echo "-----> Installing JNA..."
    apt-get install libjna-java

    echo "-----> Installing CCM..."
    cd /opt
    mkdir ccm
  9. tonypiazza revised this gist Aug 9, 2013. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,9 @@ echo "-----> Adding required PPAs..."
    add-apt-repository -y ppa:webupd8team/java
    apt-get update

    echo "-----> Downloading Cassandra..."
    wget -P Downloads http://mirror.cc.columbia.edu/pub/software/apache/cassandra/1.2.8/apache-cassandra-1.2.8-bin.tar.gz

    echo "-----> Installing Java..."
    echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
    echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
    @@ -37,7 +40,7 @@ touch /usr/bin/eclipse
    chmod 755 /usr/bin/eclipse
    echo -e "$eclipse_bin" | tee /usr/bin/eclipse
    echo -e "$eclipse_desktop" | tee /usr/share/applications/eclipse.desktop
    cd ~
    cd

    echo "-----> Installing Ant..."
    apt-get -y install ant
    @@ -49,7 +52,7 @@ cd yaml-0.1.4
    ./configure
    make
    make install
    cd ~
    cd

    echo "-----> Installing python-dev..."
    apt-get -y install python-dev
    @@ -59,7 +62,7 @@ wget -P Downloads http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz
    tar -zxf Downloads/PyYAML-3.10.tar.gz
    cd PyYAML-3.10
    python setup.py --with-libyaml install
    cd ~
    cd

    echo "-----> Installing CCM..."
    cd /opt
    @@ -68,7 +71,7 @@ cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    cd ~
    cd

    echo "-----> Customizing Launcher..."
    rm /usr/share/applications/ubuntu-amazon-default.desktop
  10. tonypiazza revised this gist Jun 25, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,6 @@ cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    su $UID -c "ccm create casdev1 -v git:cassandra-1.2.5"
    cd ~

    echo "-----> Customizing Launcher..."
  11. tonypiazza revised this gist Jun 24, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    su - $UID -c "ccm create casdev1 -v git:cassandra-1.2.5"
    su $UID -c "ccm create casdev1 -v git:cassandra-1.2.5"
    cd ~

    echo "-----> Customizing Launcher..."
  12. tonypiazza revised this gist Jun 19, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    su - $UID -c "ccm create casdev1 -v git:cassandra-1.2"
    su - $UID -c "ccm create casdev1 -v git:cassandra-1.2.5"
    cd ~

    echo "-----> Customizing Launcher..."
  13. tonypiazza revised this gist May 2, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -82,6 +82,6 @@ update-initramfs -u
    echo "-----> Reinstalling VMware Tools..."
    apt-get -y autoremove
    apt-get -y install build-essential linux-headers-`uname -r` psmisc
    vmware-tools.pl -d
    vmware-config-tools.pl -d

    echo "-----> Installation completed in $SECONDS seconds."
  14. tonypiazza revised this gist May 2, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -79,4 +79,9 @@ echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
    rmmod floppy
    update-initramfs -u

    echo "-----> Reinstalling VMware Tools..."
    apt-get -y autoremove
    apt-get -y install build-essential linux-headers-`uname -r` psmisc
    vmware-tools.pl -d

    echo "-----> Installation completed in $SECONDS seconds."
  15. tonypiazza revised this gist Apr 15, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    su - student -c "ccm create casdev1 -v git:cassandra-1.2"
    su - $UID -c "ccm create casdev1 -v git:cassandra-1.2"
    cd ~

    echo "-----> Customizing Launcher..."
  16. tonypiazza revised this gist Apr 15, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    ccm create casdev1 -v git:cassandra-1.2
    su - student -c "ccm create casdev1 -v git:cassandra-1.2"
    cd ~

    echo "-----> Customizing Launcher..."
  17. tonypiazza revised this gist Apr 15, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -68,6 +68,7 @@ cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    ccm create casdev1 -v git:cassandra-1.2
    cd ~

    echo "-----> Customizing Launcher..."
  18. tonypiazza revised this gist Apr 15, 2013. 1 changed file with 13 additions and 9 deletions.
    22 changes: 13 additions & 9 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,22 @@
    #!/bin/bash

    # make sure we have sufficient privileges
    if [ $UID != 0 ]
    then
    echo -e "Insufficient privileges!"
    exit 1
    fi

    echo "Adding required PPAs..."
    echo "-----> Adding required PPAs..."
    add-apt-repository -y ppa:webupd8team/java
    apt-get update

    echo "Installing Java..."
    echo "-----> Installing Java..."
    echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
    echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
    apt-get -y install oracle-java6-installer

    echo "Installing Eclipse..."
    echo "-----> Installing Eclipse..."
    eclipse_bin="#!/bin/sh
    export ECLIPSE_HOME='/opt/eclipse'
    \$ECLIPSE_HOME/eclipse \$*"
    @@ -38,7 +39,10 @@ echo -e "$eclipse_bin" | tee /usr/bin/eclipse
    echo -e "$eclipse_desktop" | tee /usr/share/applications/eclipse.desktop
    cd ~

    echo "Installing LibYAML..."
    echo "-----> Installing Ant..."
    apt-get -y install ant

    echo "-----> Installing LibYAML..."
    wget -P Downloads http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    tar -zxf Downloads/yaml-0.1.4.tar.gz
    cd yaml-0.1.4
    @@ -47,17 +51,17 @@ make
    make install
    cd ~

    echo "Installing python-dev..."
    echo "-----> Installing python-dev..."
    apt-get -y install python-dev

    echo "Installing PyYAML..."
    echo "-----> Installing PyYAML..."
    wget -P Downloads http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz
    tar -zxf Downloads/PyYAML-3.10.tar.gz
    cd PyYAML-3.10
    python setup.py --with-libyaml install
    cd ~

    echo "Installing CCM..."
    echo "-----> Installing CCM..."
    cd /opt
    mkdir ccm
    cd ccm
    @@ -66,12 +70,12 @@ git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    cd ~

    echo "Customizing Launcher..."
    echo "-----> Customizing Launcher..."
    rm /usr/share/applications/ubuntu-amazon-default.desktop
    rm /usr/share/applications/UbuntuOneMusiconeubuntucom.desktop
    rm /usr/share/applications/ubuntuone-installer.desktop
    echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
    rmmod floppy
    update-initramfs -u

    echo "Installation completed in $SECONDS seconds."
    echo "-----> Installation completed in $SECONDS seconds."
  19. tonypiazza revised this gist Apr 15, 2013. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -70,5 +70,8 @@ echo "Customizing Launcher..."
    rm /usr/share/applications/ubuntu-amazon-default.desktop
    rm /usr/share/applications/UbuntuOneMusiconeubuntucom.desktop
    rm /usr/share/applications/ubuntuone-installer.desktop
    echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
    rmmod floppy
    update-initramfs -u

    echo "Installation completed in $SECONDS seconds."
  20. tonypiazza revised this gist Apr 15, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,8 @@ add-apt-repository -y ppa:webupd8team/java
    apt-get update

    echo "Installing Java..."
    echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
    echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
    echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
    echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
    apt-get -y install oracle-java6-installer

    echo "Installing Eclipse..."
  21. tonypiazza revised this gist Apr 15, 2013. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    #!/bin/bash

    ROOT_UID=0 #Root has $UID 0
    if [ $UID != $ROOT_UID ]
    if [ $UID != 0 ]
    then
    echo -e "Insufficient privileges!"
    exit 1
  22. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -59,6 +59,7 @@ python setup.py --with-libyaml install
    cd ~

    echo "Installing CCM..."
    cd /opt
    mkdir ccm
    cd ccm
    git init
  23. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -66,4 +66,9 @@ git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    cd ~

    echo "Customizing Launcher..."
    rm /usr/share/applications/ubuntu-amazon-default.desktop
    rm /usr/share/applications/UbuntuOneMusiconeubuntucom.desktop
    rm /usr/share/applications/ubuntuone-installer.desktop

    echo "Installation completed in $SECONDS seconds."
  24. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@ cd yaml-0.1.4
    ./configure
    make
    make install
    cd ..
    cd ~

    echo "Installing python-dev..."
    apt-get -y install python-dev
    @@ -56,14 +56,14 @@ wget -P Downloads http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz
    tar -zxf Downloads/PyYAML-3.10.tar.gz
    cd PyYAML-3.10
    python setup.py --with-libyaml install
    cd ..
    cd ~

    echo "Installing CCM..."
    mkdir ccm
    cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    cd ..
    cd ~

    echo "Installation completed in $SECONDS seconds."
  25. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 21 additions and 3 deletions.
    24 changes: 21 additions & 3 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,6 @@ fi

    echo "Adding required PPAs..."
    add-apt-repository -y ppa:webupd8team/java
    add-apt-repository -y ppa:absinthesyringe/eclipse
    apt-get update

    echo "Installing Java..."
    @@ -18,8 +17,27 @@ echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-se
    apt-get -y install oracle-java6-installer

    echo "Installing Eclipse..."
    apt-get -y --no-install-recommends install eclipse
    apt-get -y install eclipse-enable.appmenu
    eclipse_bin="#!/bin/sh
    export ECLIPSE_HOME='/opt/eclipse'
    \$ECLIPSE_HOME/eclipse \$*"
    eclipse_desktop="[Desktop Entry]
    Encoding=UTF-8
    Name=Eclipse
    Comment=Eclipse IDE
    Exec=eclipse
    Icon=/opt/eclipse/icon.xpm
    Terminal=false
    Type=Application
    Categories=GNOME;Application;Development;
    StartupNotify=true"
    wget -P Downloads http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz
    cd /opt
    tar -zxf ~/Downloads/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz
    touch /usr/bin/eclipse
    chmod 755 /usr/bin/eclipse
    echo -e "$eclipse_bin" | tee /usr/bin/eclipse
    echo -e "$eclipse_desktop" | tee /usr/share/applications/eclipse.desktop
    cd ~

    echo "Installing LibYAML..."
    wget -P Downloads http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
  26. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -7,15 +7,19 @@ then
    exit 1
    fi

    echo "Installing Java..."
    echo "Adding required PPAs..."
    add-apt-repository -y ppa:webupd8team/java
    add-apt-repository -y ppa:absinthesyringe/eclipse
    apt-get update

    echo "Installing Java..."
    echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
    echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
    apt-get -y install oracle-java6-installer

    echo "Installing Eclipse..."
    apt-get -y --no-install-recommends install eclipse
    apt-get -y install eclipse-enable.appmenu

    echo "Installing LibYAML..."
    wget -P Downloads http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
  27. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@ make
    make install
    cd ..

    echo "Installing python-dev"
    echo "Installing python-dev..."
    apt-get -y install python-dev

    echo "Installing PyYAML..."
  28. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -36,9 +36,6 @@ cd PyYAML-3.10
    python setup.py --with-libyaml install
    cd ..

    echo "Installing git..."
    apt-get -y install git

    echo "Installing CCM..."
    mkdir ccm
    cd ccm
  29. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -47,4 +47,4 @@ git pull https://github.com/pcmanus/ccm.git
    ./setup.py install
    cd ..

    echo "Installation complete."
    echo "Installation completed in $SECONDS seconds."
  30. tonypiazza revised this gist Apr 14, 2013. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions setup-cassandra-dev.sh
    Original file line number Diff line number Diff line change
    @@ -8,14 +8,14 @@ then
    fi

    echo "Installing Java..."
    sudo add-apt-repository -y ppa:webupd8team/java
    sudo apt-get update
    add-apt-repository -y ppa:webupd8team/java
    apt-get update
    echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
    echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
    sudo apt-get -y install oracle-java6-installer
    apt-get -y install oracle-java6-installer

    echo "Installing Eclipse..."
    sudo apt-get -y --no-install-recommends install eclipse
    apt-get -y --no-install-recommends install eclipse

    echo "Installing LibYAML..."
    wget -P Downloads http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    @@ -44,7 +44,7 @@ mkdir ccm
    cd ccm
    git init
    git pull https://github.com/pcmanus/ccm.git
    sudo ./setup.py install
    ./setup.py install
    cd ..

    echo "Installation complete."