I need to automate Installation of Eclipse Classic and add two "plugins" :
Install Eclipse Classic (just downloaded) :
sudo tar -xvzf eclipse-SDK-3.7-linux-gtk.tar.gz -C /usr/local/
How to install then CDT and PyDev as system plugins (not user's)?
On Macintosh: Go to Eclipse > About Eclipse > Installation Details. In older versions: You might need go to Help > Software Updates > Manage Configuration. Select the plugin to Uninstall, and disable it with the task shown in the right window.
One way of finding out is to select Help > About Eclipse Platform >. From this dialog, click Plug-in Details to get a list of all installed plug-ins, along with vendor and version information.
You can easily run a plug-ins in another instance of Eclipse by selecting Run > Run As > Run-time Workbench. This will launch a new workbench on the same Java runtime as your development workbench, with all plug-ins in your current workspace enabled, and starting in a special runtime workspace.
This topic provides information on how to install Eclipse software from a command line. In addition to the Eclipse install tool available in the workbench ( Help > Install New Software ), it is also possible to install new Eclipse software from a command line.
Install plugins from the command lineor Eclipse IDE. You can find the Eclipse plugins to install into your copy of the Eclipse IDE for C/C++ Developers in the various tool folders located within the oneAPI installation folder, which is normally found in /opt/intel/oneapi or ~/intel/oneapi
If you are going to use Eclipse IDE, there are some additional setup steps: Locate the Eclipse plugins that were included with your oneAPI tools (see the note below). Ensure that CMake has been installed. Install plugins from the command lineor Eclipse IDE.
In the Add Repository window, press the Archive button to open a file browser. In the file browser, select the Eclipse plugin file that you downloaded, as shown in Figure 2-2. Click Open to return to the previous dialog. Figure 2-2 Selecting Eclipse Plugins
I could find these two docs which helped :
Install freshly downloaded Eclipse Classic :
sudo tar -xvzf eclipse-SDK-3.7-linux-gtk.tar.gz -C /usr/local/
To install desired CDT features (references found by using Eclipse's "Help>Install new software" tool)
run :
sudo /usr/local/eclipse/eclipse -nosplash \
-application org.eclipse.equinox.p2.director \
-repository http://download.eclipse.org/releases/indigo/,http://download.eclipse.org/tools/cdt/releases/helios/ \
-destination /usr/local/eclipse \
-installIU org.eclipse.cdt.feature.group \
-installIU org.eclipse.cdt.sdk.feature.group \
-installIU org.eclipse.cdt.platform.feature.group \
-installIU org.eclipse.cdt.debug.ui.memory.feature.group \
-installIU org.eclipse.cdt.debug.edc.feature.group \
-installIU org.eclipse.cdt.util.feature.group
To install PyDev, we first need to insert their auto-signed certificate (which can be found here : http://pydev.org/pydev_certificate.cer )
#!/usr/bin/env python
# add PyDev's certificate to Java's key and certificate database
# Certificate file can be downloaded here : http://pydev.org/pydev_certificate.cer
import os, sys
import pexpect
print "Adding pydev_certificate.cer to /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts"
cwd = os.path.abspath (os.path.dirname(sys.argv[0]))
child = pexpect.spawn("keytool -import -file ./pydev_certificate.cer -keystore /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts")
child.expect("Enter keystore password:")
child.sendline("changeit")
if child.expect(["Trust this certificate?", "already exists"]) == 0:
child.sendline("yes")
try:
child.interact()
except OSError:
pass
print "done"
so run it :
sudo ./add_pydev_certificate.py
The desired PyDev features are :
run :
sudo /usr/local/eclipse/eclipse -nosplash \
-application org.eclipse.equinox.p2.director \
-repository http://pydev.org/updates/ \
-destination /usr/local/eclipse \
-installIU org.python.pydev.feature.feature.group
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With