Internship details for blog:
May 11, 2011:
my first day here at IIT Rajasthan, Jodhpur.
Came in the campus and met with my mentor Dr. Gaurav Harit. After formal introduction , he gave me the accomodation form, and told about the bus and mess timings and all. Then I went to the hostel by bus there wihtin 20 mins I got my room allocated to me in the hostel. Room no. 123 in type 2 GPRA.IIT Rajasthan Residence.
That day I just remained in the hostel, unpacking all my things, and shifting them to the almirah and tables as required..then came my roommate Ankita Bansal at about 6. she was from LNMIIT, Jaipur, ECE branch. Then I had some formal student discussion with her. Then went to mess and enquired about the internet connection settings and all.
I was so curious to connect to the net, but I knew something was going to be wrong, and my windows xp due to some firewall problems could not connect. Then at last it got connected but the webpage as still not being displayed in the browser. Then unwillingly I went to sleep ., as I was already tired from my 2 days train journey.
May 12, 2011.
went for breakfast at 8. it was nice unlike my mess. At least I liked it the first time I had. Then went to the college at by 9:30 bus. There I started with the concepts of video browsing , how are portals designed and the basic stuff, went for lunch at 12:30 and then again came back to the media and communications lab in my seat. Went back to the college at 6:30 saying good bye to Harit sir.
May 13, 14, 15
there days went just without any new discussion about the project, proff. Harit only told me to go through to clear the concepts and read about how annotations are applied using java.
I started with simple programs for annotaions, installed the eclipse in ubuntu.
went to the lab early at 8:30 had some programs done related to linking java with mysql. Then sir called me and told me about an open source project and also mentioned the name of a student associated with that project to coordinate and work in the same field. He told me to add some plugins in the matterhorn project.
May 18 to 30:
After talking and consulting with Sandeep I started with installation of matterhorn in my lappy, the initial commands worked fine but the errors started pinching me with the installation of the sun-java6-jdk
sudo apt-get install sun-java6-jdk
echo “export JAVA_HOME=/usr/lib/jvm/java-6-sun-<version>”>>~/.bashrc
and the error after this:
package not found . It may be present in some other package or referred to by some other name.
Then I tried using the following commands:
sudo apt-get -repository “deb http://archieve.canonical.com/lucid partner”
sudo apt-get update
sudo apt-get install sun-java6-jdk
After doing this the terminal was taken over by the package configuration menu saying
(it was basically the licence agreement.)
then I used the tab and enter button to select the <ok> button.
And it worked all fine till.
$echo “export JAVA_HOME=/usr/lib/jvm/java-6-sun-<version>”>>/.bashrc
Now the error was actually with the export statement, the path was not correct.
Bash <version>: No such file or directory.
To correct that I had to first check the path where this sun-java6-jdk was actualy present. So I used the commands:
$set | grep JAVA
and then edited the bashrc file. And then rechecked the path:
now it was correctly done. I proceeded to the next step to download apache maven.
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information.
Then downloaded the felix framework distribution version 3.2.2. unpacked it and copied all the files to the felix directory in /opt/matterhorn.
Apache felix is an open source implementaiton of the OSGi Release 4 core framework specification. The initial codebase was donated from the Oscar project at ObjectWeb. (OSGi is the open services gateway initial framework where application and components coming in the form of bundles for deployment for can be installed , installed, stopped and updated , uninstalled , without requiring a reboot.)
now the build part was remaining:
$mvn clean install -DdeployTo=/opt/matterhorn/felix/matterhorn
it took too much time but ended up with build failure, some repositories were still to be downloaded which was messing up all the stuff. So I thought of building it in chunks using the maven commands:
- mvn clean install -P admin -DdeployTo=/opt/matterhorn/felix/matterhorn
mvn clean install -P ingest -DdeployTo=/opt/matterhorn/felix/matterhorn
mvn clean install -P dist -DdeployTo=/opt/matterhorn/felix/matterhorn
mvn clean install -P engage -DdeployTo=/opt/matterhorn/felix/matterhorn
mvn clean install -P worker,workspace,serviceregistry -DdeployTo=/opt/matterhorn/felix/matterhorn
mvn clean install -P capture -DdeployTo=/opt/matterhorn/felix/matterhorn
and everything went fine.
Now some environment variables were to be set and the run part.
I did the path setting and started it with:
then I browsed: http://localhost:8080
and it started running
I logged in by: admin opencast
and then the page appeared:
but still something was remaining:
I had to install the third-party tools. And configure matterhorn to run as service.
So I started off to install the third party tools.
and then 14 options were provided , the options to be selected were
but again some repositories failed to download and
ultimately the file upload was not poossible , the option was showing error on completion. i.e. compile for linux.
I was very frustrated 3 days searching for the possible solution. From the mailing list Christopher Brooks told me
that I might be missing out some files and to download those files manually and then proceed by using the option ([ca]clean up all including downloads. ) at first. Going through the log file of the processes , , 
I came across the missing file Xsh.m
so I installed it manually by:
$ cd /usr/include/x11/extensions
india@ubuntu:/usr/include/x11/extensions$ sudo apt-get install libx11-dev libxpm-dev x11proto-xext-dev libxext-dev
then again I reinstalled the third party tools:
$ cd /opt/matterhorn/1.1.0/docs/scripts/3rd_party
and continued with the options: ca, 0, 1, 2, q
the build was successful now. (so happy I was at last)
I again logged in and tried uploading a video.
During uploading the processes going on:
this is the screenshot of the final uploaded video.
And ultimately the uploading was done.
June 1 to 15:
I was happy to see the things done the correct way. Now I had to concentrate on the annotations part. I was still not able to get the segmented text and synchronise user comments. First of all I made a picture of how things are to be done. At first I had to go through the working of Maven and understanding it fully to start building projects, plugins, deploy them etc.
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model(POM). Maven can manage projects build, reporting and documentation from a central piece of information.
This maven can be installed separately or with integration with eclipse helios. Basically Matterhorn works with the Maven.