Random thoughts shooting out of volatile mind
NCTUNS 4.0 Installation Help
NCTUNS is a network simulator. I came accross it in my network laboratory. There are several versions of it Currently it is NCTUNS 5.0. I'm using NCTUNS 4.0 which requires Fedora 8 but it can aslo be installed in Fedora 7. I'm mainly writing this blog to help my friends who want to install and work in NCTUNS (atleast during their exams :) ).
Firs thing to be done is to download the NCTUNs package(tar.gz format) at this link.NCTUNS 4.0 provides simulation of IEEE 802.16(d) (WiMAX),DVB-RCS satalite networks etc.
After you downloaded the file copy it into your home directory. You should remember to login as root  user for installation. Also as per installation guide you should use either bash/tcsh shell for installation. Now extract files from package. For this you need to launch terminal and type following command.

tar -xvf NCTUns-allinone-linux-2.6.24.2-f8.20080225.tar(or whatever the downloaded file name is)
Next change into extracted directory, by default it is NCTUNs 4.0. List the files you will find install.sh before you start installation make sure you have disabled SELinux and Firewall. If you didn't your nctuns will not launch properly after installations and you may have to reinstall it.After disabling the SELinux and Firewalls execute install.sh file.
./install.sh
Help for installation can be found by passing -h switch to install.sh.(./install.sh -h).
During installation it may ask you several questions since we are installing in normal mode just type Yes or simply y. It takes little time for installing new NCTUNs kernel. If you already installed older version it will upgrade the kernel. After installation is done shell prompt returns. Reboot the system and in the GRUB boot loader you will find new entry nctuns4.0. Choose the newly installed NCTUNs client and boot the system installation is done. :)
Now before you can launch NCTUNs client you need to do certain changes in .bashrc(bash shell) file. That is you need set 3 environment variable. Since we did a normal installation default location of installation is /usr/local/nctuns. Just add the following line to .bashrc shell configuration file.
            export NCTUNSHOME=/usr/local/nctuns
            export NCTUNS_TOOLS=/usr/local/nctuns/tools
            export NCTUNS_BIN=/usr/local/nctuns/bin
Then add the following line to set all the environment variables, if you do not you need to set these variable before you launch nctuns program.
            source /usr/local/nctuns/etc/nctuns.bash(.csh for cshell)
After these changes are made create user by name nctuns and password nctuns, if you didn't create user you wont be able to launch ping window.After you are finished save and exit from shell prompt, then reopen shell promapt, open 3 tabs. In first tab type dispatcher and press enter. In the second tab type coordinator, In the third window enter nctunsclient. These set of commands will launch NCTUNs window. Go on and do the simulations. :)
Note: The above said procedure is for bash shell only. Also don't forget to disable 3D Desktop effect otherwise your NCTUNs window will go black each time you click on some icons.Also you can add the above mentioned lines any where in .bashrc but please don't change whatever already there in the file.
Posted by: copyninja on Wednesday, 5 November 2008

blog comments powered by Disqus
Fork me on GitHub