About Me

My photo
A Computer Enthusiast who's learning as much as I can, while attempting to share and re-distribute the knowledge! Enjoy! :D

Sunday, December 26, 2010

Eclipse + ShellEd plugin = Shell Scripting within Eclipse

Quick How-To for Eclipse + ShellEd plugin:

Tutorial on installing Eclipse Plugin ShellEd using the following:
  • MAC OS X (Version: 10.6.5)
  • Eclipse (Version: Helios Service Release 1)
1. Install Linux Tools Plugin
  • Within Eclipse: click Help --> Install New Software
  • Click "Available Software Sites" (link slightly below Add button)
  • Enable (check box): http://download.eclipse.org/technology/linuxtools/update
  • Click OK
  • Under "Work with:" --> Select the recently enabled linuxtools
  • Under "Linux Tools" (1st group) --> Enable: Man Page Viewer (Incubation)
  • Click Next --> Next --> Accept license agreement --> Finish
  • Restart Eclipse
2. Download and Install the latest ShellEd Plugin Build
  • Download the latest ShellEd Eclipse Plugin (.zip file) from: http://sourceforge.net/projects/shelled/files/shelled/
  • Within Eclipse: Click on Help --> Install New Software
  • Click Add --> Archive ...
  • Navigate to the downloaded location of the .zip file --> Click Open
  • Input a name for future reference --> Add Repository (Click Ok)
  • Check Box --> Next --> Next --> Accept license agreement --> Finish
  • Confirm Security Warning (Installing Unsigned Content) by Clicking OK
  • Restart Eclipse
3. Test the installation by creating a new Shell Project, setting up the Shell Interpreter, entering some code, and run the script within Eclipse.

Creating A New Shell Project
  • Create a new project: New Project Wizard --> Select Shell Script Project Wizard --> Click Next
  • Input the Project Name --> Click Finish (default setting are fine for now
Setting Up The Shell Interpreter
  • Navigate to Eclipse Preferences (Eclipse Menu --> Preferences)
  • Navigate to ShellEd Options --> Select Interpreters
  • Click Search --> Select the interpreter you would like to use --> Click OK
Entering Code
  • Insert a new file into the project --> Right click on Shell Project Name --> Select New --> Select File
  • Input file name --> Click Finish
  • Enter a few commands (Bash Interpreter for this example) and Save
Run The Script Within Eclipse
  • Click Run Menu --> Run As --> Run shell script
--
Resources

1. SourceForge: Information on setting up Interpreter within Eclipse
  • http://sourceforge.net/projects/shelled/forums/forum/399718/topic/3863713
2. Linux Tools Project Plugin Install Help
  • http://wiki.eclipse.org/Linux_Tools_Project/PluginInstallHelp
3. SourceForge ShellEd Source and Zip Files
  • http://sourceforge.net/projects/shelled/files/shelled/
4. Eclipse Marketplace ShellEd
  • http://marketplace.eclipse.org/content/shelled

2 comments:

  1. Update to this blog: attempted an install on Eclipse version Indigo. I manually had to add Linux Tools (http://download.eclipse.org/technology/linuxtools/update) under "Available Software Sites".

    Trivial: under "Available Software Sites", click on "Add", name the site (for future reference), copy the link above (http://download.eclipse.org/technology/linuxtools/update), and click on "Ok".

    The procedure should follow more smoothly now. :-)

    ReplyDelete
  2. Setting Up The Shell Interpreter

    Navigate to Eclipse Preferences (Eclipse Menu --> Preferences)
    Navigate to ShellEd Options --> Select Interpreters
    Click Search --> Select the interpreter you would like to use --> Click OK

    Search does not find interpreter. window is empty ?!

    ReplyDelete