Skip to content

Instantly share code, notes, and snippets.

@gsora
Created November 25, 2015 12:54
Show Gist options
  • Select an option

  • Save gsora/8e0bdbdd666f343a5a7b to your computer and use it in GitHub Desktop.

Select an option

Save gsora/8e0bdbdd666f343a5a7b to your computer and use it in GitHub Desktop.
Simple eclipse installer
#!/bin/bash
if [[ $UID != 0 ]]; then
echo "Run this script as root."
exit 1
fi
echo "Downloading eclipse..."
wget http://eclipse.mirror.garr.it/mirrors/eclipse//technology/epp/downloads/release/mars/1/eclipse-java-mars-1-linux-gtk-x86_64.tar.gz -O /opt/eclipse.tar.gz 2>&1 | tee -a wget_log
echo "Done! Installing..."
cd /opt/
tar xzvf eclipse.tar.gz
wget https://gist.githubusercontent.com/gsora/190b45832dd19dcac862/raw/b0560da26f41ebcaa7f6cde4ce3e495d998c2121/eclipse.desktop -O /usr/share/applications/eclipse.desktop
echo "Done! Cleaning..."
rm /opt/eclipse.tar.gz
echo "Done! Add '/opt/eclipse/ to your \$PATH for completeness."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment