Tuesday, August 30, 2011

Setting up Android development Enviornment on linux

Today  there are several APIs to develop Android Applications.In this post,
I am going to work with ANDENGINE API SYSTEM.


prerequisite : JDK - java developmet kit          
                      Eclipse classic Enviornment

Step 1 -
Installing Android SDK

         Download Android SDK from here for linux
         Extract it to Android_SDK (SDK_HOME)

Step 2 -
Installing ADT(Android Development Tools) plug-in for Eclipse

        open Eclipse and go to help > Add New Software.
        then click Add button and dialog  gets popup
        enter ADT_plugin as Name and https://dl-ssl.google.com/android/eclipse/  as          url and continue with button clicks.
        after complete the installation restart the eclipse.

Step 3 -
Configure ADT plugin on Eclipse

        go to Window > Preferences
        Then select Android from left panel and click to proceed.
        use main panel and click browse button to locate the SDK_HOME for SDK           location.
        then click apply.

Step 4 -
Adding component and platforms for SDK

        use command line and goto ~/tools/ directory in SDK_HOME
        then type "android" and hit enter.
        now use eclipse and go to window -> Android SDK and AVD Manager and            that lists all components.
        then select component according to your project and proceed.

Step 5 -
Now you are available to work with android applications within eclipse classic enviornment.Now enjoy with Android.

Next post will be a Android application development example...
      
      
     
        


Thursday, August 25, 2011

Set up LDAP server using Apache Directory Studio on Linux

Basically we can set up LDAP server using command "apt-get install sldap".But when we are going to configure LDAP server which gives some troubles.Because of that, using Apache Directory Studio  we can set up and configure LDAP server easily.

1. Download Apache Directory Studio and extract it.

2. Then use command line and go to Apache DS home and use following command to run the Apache DS environment.
   
                  ~ApacheDS$ ./ApacheDirectoryStudio

3. Now we are going to set up LDAP SERVER within Apache DS.
First you have to open Servers Window using,
          Window -> Show View -> Other.. -> Apache DS -> Servers.

4.Let's create a new server clicking New Server icon in Servers Window and use a name for Server and edit default configuration setting by double clicking server name(server.xml) and start that server by clicking run icon.(I use default settings)

5. I have already created and started LDAP server and now I have to create a LDAP connection with running server to browse it as a tree structure.

6. For that use Menu Bar and open LDAP -> New Connection wizard and type Network Parameters and Authentication Parameters.

Network Parameters :
          Connection Name - {your own one}
          Host Name - {localhost}
          Port - {10389}

Authentication Parameters :
          Authentication Method - Simple Authentication
          Bind DN or User -  uid=admin ,ou =system
          Bind password - secret
         

7. Now go to Connection window and select your connection, then click open connection icon to browse the tree structure of LDAP server within LDAP browser window.

8. Then you can enjoy the LDAP server within Apache Directory Studio.