Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. sudo tar -xvzf eclipse-SDK-3.7-linux-gtk.tar.gz -C /usr/local/
  2.  
  3. sudo tar -xvzf eclipse-SDK-3.7-linux-gtk.tar.gz -C /usr/local/
  4.  
  5. sudo /usr/local/eclipse/eclipse -nosplash
  6. -application org.eclipse.equinox.p2.director
  7. -repository http://download.eclipse.org/releases/indigo/,http://download.eclipse.org/tools/cdt/releases/helios/
  8. -destination /usr/local/eclipse
  9. -installIU org.eclipse.cdt.feature.group
  10. -installIU org.eclipse.cdt.sdk.feature.group
  11. -installIU org.eclipse.cdt.platform.feature.group
  12. -installIU org.eclipse.cdt.debug.ui.memory.feature.group
  13. -installIU org.eclipse.cdt.debug.edc.feature.group
  14. -installIU org.eclipse.cdt.util.feature.group
  15.  
  16. #!/usr/bin/env python
  17. # add PyDev's certificate to Java's key and certificate database
  18. # Certificate file can be downloaded here : http://pydev.org/pydev_certificate.cer
  19. import os, sys
  20. import pexpect
  21.  
  22. print "Adding pydev_certificate.cer to /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts"
  23.  
  24. cwd = os.path.abspath (os.path.dirname(sys.argv[0]))
  25. child = pexpect.spawn("keytool -import -file ./pydev_certificate.cer -keystore /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts")
  26. child.expect("Enter keystore password:")
  27. child.sendline("changeit")
  28. if child.expect(["Trust this certificate?", "already exists"]) == 0:
  29. child.sendline("yes")
  30. try:
  31. child.interact()
  32. except OSError:
  33. pass
  34.  
  35. print "done"
  36.  
  37. sudo ./add_pydev_certificate.py
  38.  
  39. sudo /usr/local/eclipse/eclipse -nosplash
  40. -application org.eclipse.equinox.p2.director
  41. -repository http://pydev.org/updates/
  42. -destination /usr/local/eclipse
  43. -installIU org.python.pydev.feature.feature.group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement