Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have encounter problem when I do as follow in unbuntu 10.0.4.kmw@ubuntu:~$ ns
application-specific initialization failed: Can't find a usable init.tcl in the following directories:
/home/kmw/ns-allinone-2.34/tcl8.4.18/library:/usr/lib /home/kmw/ns-allinone-2.34/lib/tcl8.4 /home/kmw/ns-allinone-2.34/tcl8.4.18/library:/usr/lib /home/kmw/ns-allinone-2.34/tcl8.4.18/library:/usr/tcl8.4 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 /usr/local/library /usr/library /usr/tcl8.4.18/library /tcl8.4.18/library /home/kmw/ns-allinone-2.34/lib/tcl8.4
This probably means that Tcl wasn't installed properly.
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Can't find a usable init.tcl in the following directories:
This error can happen if you make any changes to the "ns-allinone-2.34/" directory :
Renaming the directory, moving the directory to another location,
i.e. anything that will change the "/home/kmw/ns-allinone-2.34/tcl8.4.18/lib/" path.
Or when changes were made in /home/kmw/ns-allinone-2.34/tcl8.4.18/lib/
The binary 'ns' is hard coded to know the location of it's libraries, tclsh8* :
Problem solved for init.tcl not found, tcl not installed properly
I faced the same problem during my last installation of ns2.35 in ubuntu 11.04.
After I install ns2.35, got message of successful installation of ns. Then I set path in /.bashrc. Then I gave ns command which gave me same error which you got.
The problem is because, ns executable is also at /usr which is conflicting.
1. Go to location root-usr-local-bin by giving following command in terminal
2. There you would find the ns file. We just need to remove it by giving following command
3. Thats it, you are done. Now your ns starts running successfully.
I make changes ns2 directores and reinstall again when I can't solve the error e.g Link State.0. I occur that error whenever i change .tcl and .cc and Makefile.in under ns directory. last time reinstallation is ok,(just delete the old ns2 directory and create new folder and place new installation in it. but now, I have "Can't find a usable init.tcl in the following directories:" Error. As you mention, I use this command "cd st/ns-allinone-2.35/tcl8.5.10/ && ln -s lib/library" , then this following error occurs "ln: failed to create symbolic link `./library': File exists". How to fix this , Sir. Please kindly help me.
this error occurs "cannot remove `ns': Permission denied" when use "rm ns" although using sudo command. How to fix the error Sir.
Please check are you logged in as super user?
Type in command prompt,
Permission is denied because u r not logged into as super user.
Once logged into as super user, u would be able to follow the procedure.
Have you got any idea on data storage on mobile nodes of MANETs? I wanna store user data on the mobile nodes and want to share that data among the nodes. Is it possible to implement in NS2? Although I've been digging up the Internet about this problem , I can't find it out yet. If you have knowledge on it, please kindly tell me the links or some tutorials. Thank you in advance.