Thursday, May 22, 2008

my modem problem

I've HSF smartCP modem. But no driver. Alas.. I learnt that I will have to buy driver for it under linux. though a 14.4 k version is available free at linuxant.com.

Tuesday, April 15, 2008

NAM make failed!

Oh, my god! I ran first program on Mark Greis's tutorial and NAM didn't work!
I should've seen install log more carefully.
Thankfully there are people to help you out. After much searching I found following blog
http://mmmzdev.blogspot.com/2008/03/installing-ns232-on-ubuntu710.html

Which solved all my difficulties.
Looking forward to leap into the tuts fast...

Sunday, April 13, 2008

Changing File permission

When I tried to run a simple.tcl program in ns it gave me an error.
:permission denied.
The reason was that the folder on my desktop, ns-allinone-2.32 was locked by root,meaning only root can write,read etc. But even after running sudo su I got the same error.
After much googling I found two ways to change file permission
one was based on gui
>gksudo nautilus
It will show a file browser using which you can change file permissions as you want. But I still don't know how to make these changes applicable to all its subfolders. So I had to run
>chmod -R 777 /home/pranav/Desktop/ns-allinone-2.32
-R switch means RECURSIVELY.

This page was useful.http://ubuntuforums.org/showthread.php?t=311909&goto=nextoldest

Installing NS2.32

I downloaded ns-allinone-2.32 from http://ftp.isi.edu/nsnam/ns/ns-build.html
After storing the .tar file on my Desktop,I ran tar -xvzf ns-allinone-2.32.tar.gz
Which created a folder of the name ns-allinone-2.32 on my desktop.
Then >cd ns-allinone-2.32
>./install
It gave many errors. Firstly I hadn't installed gcc. So I had to install it first. Then there was an x library error related to tcl8.4.15 which was solved by running
>sudo apt-get tcl8.4.15

This is not the end of installation!

In order to set library path I had to edit /.bashrc using
>sudo nano /root/.bashcr
Then I added following lines at the end of bashrc


export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:Desktop/ns-allinone-2.32/otcl-1.13:Desktop/ns-allinone-2.32/lib


export PATH=$PATH:Desktop/ns-allinone-2.32/bin:Desktop/ns-allinone-2.32/tcl8.4.15/unix:Desktop/ns-allinone-2.32/tk8.4.15/unix
export TCL_LIBRARY=$TCL_LIBRARY_PATH:Desktop/ns-allinone-2.32/tcl8.4.15/library



I still don't know how exactly this works.

After this
pranav@pranav-laptop:~$ which ns
Desktop/ns-allinone-2.32/bin/ns

This shows that my computer knows where the 'ns' command (executable file) file exists. It exists in the bin folder. If which ns doesn't give any output;you have edited .bashrc wrongly. Do it again till which ns gives some output.

Who am I? What is the purpose of this blog?

I'm a child in the linux world. I am using Ubuntu 6.06 since 2 weeks. I have realized that I should keep track of all "tricks" I get to know from ubuntu /linuxforums.I'm trying to pile up them here, so that they will be helpful to for me to refer to and also for anybody who needs them.


Also I'm working on Network Simulator 2.32. So I guess I'll be writing about ns2.32 also.