Download of the necessary components
Eclipse is available on Ubuntu repositories. Thus, a way of installing it is :
( « apt-get install eclipse »)]
However, this will install too much thing In my opinion.
Another way of doing is downloading it from [Eclipse.org. Choose « Other Downloads for … » and then download the « Platform Runtime Binary » version. This version is the lite version, purged from the java development environment plugins that are installed in the Classic version.
- The pyDev plugin
Available here : http://pydev.sourceforge.net/download.html
For this tutorial I propose you get the zip version from SourceForge
- Unzipping and import of the plugin into Eclipse
See section Case 1 of plugin install in this article
- Plugin setting
After installing and activating the plugin, you will get a PYDEV section in the preferences of Eclipse ( « Window->Preferences » ) :
In this section, you’ll find all the informations related to the plugin configuration. The most important in our case are the ones related to the recommendations for NSsbackup development (use TAB as indent, not spaces ) (see Recommentations ).
You will also get a section « Code Completion » that is handy and will assist you in you development en proposing you completions. It’s up to you to activate it or not. It will however slow down your computer a little bit.
This is the most important section. You will specify the location of python. The libraries will be automatically imported once you have specified the python location. Under Linux, python should be usually located under [(/usr/bin/python)]
Importing the NSsbackup project
To import the datas, go under « File->Import …« , you will get the following window. Select the option indicated :
Use « Browse » to browse your directories till you get the NSsbackup BZR branch folder ( devel)
You will have now the nssbackup project . Then hit « Finish » .