Monday, February 28, 2011

Install ns-allinone-2.35 in fedora 14

NS2 stands for network simulator and it is not in fedora repository but it's allinone package is available on isi.edu recently ns-2.35 RC7 is there with updated tcl and tk library but still it is not support gcc-4.5 series (does not like the X::X() construct) so i made 2 patches.

Download links :
patch 1
patch 2


After apply those patches you can follow below steps.


Install Dependences :
yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install libXmu-devel

Build ns-allinone-2.35
Go to you download directory and extract package (tar -xvf tarball), go to extracted directory and run
#./install


Validate ns-2.35
Go to ns-2.35 directory and run
#./validate (take almost 1 hour so keep patience)


Add PATH in .bashrc
vim ~/.bashrc
Add the following lines to the end of it. Remember replace “/opt/” by your installation path like “/home/username”. And accordingly also change the version numbers. This is for ns 2.35.

# LD_LIBRARY_PATH
OTCL_LIB=/opt/ns-allinone-2.35-RC7/otcl-1.14
NS2_LIB=/opt/ns-allinone-2.35-RC7/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/opt/ns-allinone-2.35-RC7/tcl8.5.8/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/opt/ns-allinone-2.35-RC7/bin:/opt/ns-allinone-2.35-RC7/tcl8.5.8/unix:/opt/ns-allinone-2.35-RC7/tk8.5.8/unix
NS=/opt/ns-allinone-2.35-RC7/ns-2.35/
NAM=/opt/ns-allinone-2.35-RC7/nam-1.15/
PATH=$PATH:$XGRAPH:$NS:$NAM



Logout/reboot your system and its done ... enjoy ... :)

Friday, February 18, 2011

KDE Conf. for beginner



Well many people such as Nikhil Marathe, Santosh G Vattam, Aditya Kavoor and Shantanu Tushar Jha  updated their blog about kde.conf encouraging the student community for participation.According to the above blogs it seems that KDE is a very student friendly community and helps students grow. KDE developers have attended Mukti since last 3 years. Pradeepto has come twice and Shantanu came earlier this year and make that "Last few days" :)

What makes KDE so exciting ?

The best thing about KDE is our amazing community! We are open to new members, offering help and allowing them to experiment, learn and grow. Our products are used by millions of home and office workers and are being deployed in schools around the world - Brazil alone has over 50 million school children using KDE-based software to browse, learn and communicate! read more


What is conf.kde.in ?
conf.kde.in is a platform for Qt and KDE contributors and enthusiasts to meet up, share their knowledge, contribute, learn, play, have fun thereby creating limitless possibilities. read more


Why is it being organized ?
We needed a forum to gather as many KDE contributors as possible at one place. So Indian KDE volunteers came together to organize a conference solely dedicated to KDE with an aim to spread KDE far and wide within India and to have new aspiring contributors to KDE. read more


Where and when?
R. V. College Of Engineering
R. V. Vidyanikethan Post,
Mysore Road, Bengaluru – 560 059,
Karnataka, India  (more)
It will be held on 9th, 10th, 11th March 2011 followed by two days of code sprint on 12th and 13th March 2011.


Talks :-  http://kde.in/conf/talks/
Accommodation :http://kde.in/conf/accommodation
Registration :- http://kde.in/conf/register/
Wana meet some cool developers/geeks? Then be there... !!


PS : Last 7 days to register for conf.kde.in. 26th Feb onwards the registration fees goes up. Register now!http://kde.in/conf/register

Monday, February 14, 2011

Pidgin-Logviewer Package

In these day I was quite busy with our college fest. During Mukti I met some great geeks (Rahul Sundaram, Kushal Das, Shreyank Gupta, Shantanu Tushar Jha) . Just after Mukti I started to make a RPM package of pidgin-logviewer which is developed by one of our junior Tirtha and thanks to debayan da for moved the .c file to the automake build system, finally i finished it. I also created a review request on Bugzilla ( Request ).
If you want to try out RPM, you can get it from here
Installation command : yum  install --nogpg package-name [Thanks to Ankur to point out]
Then open Pidgin go to Tools -> Log viewer -> View Logs , you can see the changed logviewer

Here is a snapshot :

Saturday, February 5, 2011

Mukti '11 - Workshops and Talks


Mukti '11 has started off on the 4th of Feb. The workshops and Talks are as follows:


Day - 1
RPM Workshop by Rahul Sundaram, Red Hat

Rahul started with explaining how one can install from source and explained the details of configure, make and make install. While he talked about makefiles and how dependencies are resolved using those makefiles, Kushal took a nap (needed an energy drink to charge him). Shrink was busy with making his intelligent box connect to the wifi. He then started the workshop with the package hello, along with talking about tools that are used before they get deployed. He then quite beautifully described to the audience what an rpmdev-setuptree was as well as all directories created under rpmbuild directory. The practice session started by writing the spec file for hello source. He then talked at length about build requirement, uses of macro, finding the suitable group. How each section, viz., description, prep, build, install, post, clean, files, change log, works was explained nicely by him. This workshop went on for around 4 hours. At the end there was a Q&A session followed by a little background on Koji and Bodhi of Fedora project. He also talked about how a package gets selected in repo and how beginners can approach packaging. Kushal during this session also talked about photography and discussed about pursuing it as a hobby with the audience.



System programming using python by Kushal Das, Red Hat

Show started with an oops moment, we were not able to connect to the network on venue. We then had to obtain passwords of secure wireless networks of CSE Dept. Shrink was happy and so were we, phew. The talk primarily aimed at the first and second years involved giving them an idea about the Pytohn programming language focussing on its strength - quick development. Kushal started with explaining the data types that are usedin python. He utilised the python interpreter and engaged in entertaining conversations with the students in between. He moved on to talk about object oriented programming in python. By the way, random rantings on photography continued in between the session. How python integrates dynamically, with its history in brief. It was a 2 hour session which concluded with him explaining about data structures like link lists, tuples, dictionary, stack etc.



Day - 2
System programming using python by Kushal Das, Red Hat

With the talks that he had to address, it was quite apt to say as Kushal's day. He began the talk by giving an overview of system programming commands that we generally use in the C language. He then gave a detailed explanation of the os module in python particularly talking about uname, mkdir and listdir. It was followed by a hands-on example of spawning an external shell program using the sub-process module with retrieving and processing its output to show the computer's uptime. After that, system calls like os.fork() were visited and finally covering user specific information like os.getuid() and os.getlogin().

GUI Design using Python by Kushal Das, Red Hat

In his next session, Kushal designed a simple GUI, which takes the input from the user in a text-box. When the user hits the Run button beside the text-box, the entered text appears in a result viewer below the input box. He explained in detail both the approaches that could be adopted

1. Code the GUI using Python, and also the functions of each widget.

2. Design the GUI using a UI creator, and code only the functional part. We go for this approach here.

He told the audience that instead of creating every widget using code, Glade may be used as a more suitable option. He then created and designed the interface and positioned the widgets, using Glade3.

Anyone Can Code by Shlip Gupta, Directi

The focal point of the talk was on how to start coding. He explained it as a step by step approach, beginning with which language should be chosen along with the pros and cons of each language like C++, Java. After this was done, he followed it up with some algorithms and data-structures. He explained to the audience that for development of software, the knowledge of data-structures like, stack, queue, tree, dictionary and  algorithms - search,sort, dfs, bfs, shortest path, matching, coloring is essential. Most importantly, he stressed on the dictum, "Practice, Practice and Practice".


Day - 3
System programming using python by Kushal Das, Red Hat


Kushal continued from where he had left behind the last day. The session was mainly in order to deal with problems being faced by students. Kushal gave some on-spot problem so that students could get more familiarity with environment. Shantanu had also joined us in the talk which was of a two hour period.

Using QML To Create Fluid User Interface by Shantanu Tushar Jha, KDE Developer


He started the talk with basic introduction about QML and also told us how this fluid is different from mechanical fluid :) . After that he started with making some QML apps and also told us to work on the showed example. Audience really took interest with QML apps. In fact, everybody devised their own creativity into the stuff. Then he showed us a twitter app which he developed using QML and at the end of workshop he invited us for conf.kde.in.

Ruby on Rails by Shreyank Gupta, Red Hat

As a web developer this is his favorite topic. He started with how to install ruby and rails in the system, giving instruction to install gem first and than using gem install rails. The beginning of the talk was rough, we got stuck with installing rails in some systems but after some time we figured it out. He created a project name mukti_demo and start with step by step developing a simple application which add a project, contributer, time-line of project. Then he modified some code and showed how to perform some more operations like delete and view profile.