Skip to content

Instantly share code, notes, and snippets.

@adikari
Last active February 8, 2018 03:35
Show Gist options
  • Save adikari/9cb0d55e421aeaea204a445ae3f419e2 to your computer and use it in GitHub Desktop.
Save adikari/9cb0d55e421aeaea204a445ae3f419e2 to your computer and use it in GitHub Desktop.
install eclim headless
#!/bin/zsh
cd /tmp
wget http://download.springsource.com/release/ECLIPSE/neon/R/eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz
# eclipse EE
# http://download.springsource.com/release/ECLIPSE/neon/3/eclipse-jee-neon-3-linux-gtk-x86_64.tar.gz
tar -zxf eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz -C /opt
sudo chown -R vagrant:vagrant /opt/eclipse
# install eclim dependencies
sudo yum install openjdk-6-jdk xvfb build-essential
# start display server
Xvfb :1 -screen 0 1024x768x24 +extension RANDR &
# install eclipse dependencies
# all options
# DISPLAY=:1 /opt/eclipse/eclipse -nosplash -consolelog -debug \
# -application org.eclipse.equinox.p2.director \
# -repository http://download.eclipse.org/releases/neon \
# -repository https://dl-ssl.google.com/android/eclipse \
# -repository http://dist.springsource.org/snapshot/GRECLIPSE/e4.6 \
# -repository http://pydev.org/updates \
# -repository http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site \
# -repository http://download.eclipse.org/releases/neon \
# -repository http://download.eclipse.org/eclipse/updates/4.6 \
# -repository http://download.eclipse.org/tools/pdt/updates/4.1 \
# -repository http://download.eclipse.org/oomph/updates/milestone/latest \
# -repository http://download.eclipse.org/releases/neon/201610111000 \
# -repository http://download.eclipse.org/releases/neon/201606221000 \
# -installIU org.eclipse.wst.web_ui.feature.feature.group \
# -installIU org.eclipse.php.feature.group \
# -installIU org.eclipse.cdt.feature.group \
# -installIU org.eclipse.dltk.core.feature.group \
# -installIU org.eclipse.dltk.ruby.feature.group \
# -installIU org.eclipse.jdt.feature.group \
# -installIU com.android.ide.eclipse.adt.feature.feature.group \
# -installIU org.codehaus.groovy.eclipse.feature.feature.group \
# -installIU org.python.pydev.feature.feature.group \
# -installIU org.scala-ide.sdt.feature.feature.group \
# -installIU org.eclipse.php.composer.feature.group \
# -installIU org.eclipse.php.mylyn.feature.group
# install java and php support in eclipse
DISPLAY=:1 /opt/eclipse/eclipse \
-clean -purgeHistory \
-nosplash \
-consolelog \
-debug \
-application org.eclipse.equinox.p2.director \
-repository http://download.eclipse.org/releases/neon, \
-installIU org.eclipse.jdt.feature.group, \
-installIU org.eclipse.php.feature.group
# install eclim
java \
-Dvim.files=$HOME/.vim \
-Declipse.home=/opt/eclipse \
-jar eclim_2.6.0.jar install
# after installation to run eclimd
# Xvfb :1 -screen 0 1024x768x24 +extension RANDR &
# DISPLAY=:1 /opt/eclipse/eclimd -b
# To uninstall eclim
#java \
# -Dvim.files=$HOME/.vim \
# -Declipse.home=/opt/eclipse \
# -jar eclim_2.6.0.jar uninstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment