Skip to main content

Installing ns2.35 in Mac OS (Snow Leopard)

Installing ns 2.35 RC8 in Mac OS X (snow leopard) is given below
Step 1: Download xcode ( install it in Mac OS(Xcode is different for Mac OS Lion and Mac OS Snow Leopard)
Step 2: Download the ns-allinone-2.35-rc8.tar.gz from this location
Step 3: Go to Terminal in Mac (by using Finder)
Step 4: Untar the ns2.35 package using the following commands
tar zxvf ns-allinone-2.35-rc8.tar.gz
cd ns-allinone-2.35-rc8
Step 5: You need to verify the path for ‘xlibdirs’ and ‘xincdirs’ in various configuration files of ns2. But NS-2.35 by default has it all. you need not specify it
But if you want to install ns-2.34 and earlier versions, all the configuration files in to be added as per this blog post
Step 6: Once installed successfully, the path information will be shown. Set the PATH, LD_LIBRARY_PATH information in the following file .profile or .bash_profile (from Mac 10.4 onwards, it is bash shell, so you can use .bash_profile)
If the .profile file is not there create it (the folder in which the .profile created should be at /Users/VIT ) and this file is hidden file, you need to handle it with terminal
Once the path is set, execute the command ‘source .profile’ (without quotes) and logout and login back
That’s it.


Popular posts from this blog

Implementing a new system call in Kernel version 2.6.32

A system call is used by application or user programs to request service from the operating systems. Since the user programs does not have direct access to the kernel whereas the OS has the direct access. OS can access the hardware through system calls only. The following files has to be modified for implementing a system call /usr/src/linux- /usr/src/linux- /usr/src/linux- /usr/src/linux- New set of files to be created Create a new directory newcall/ inside the path “ /usr/src/linux- ” Create new files Makefile, newcall.c and put them in the /usr/src/linux- folder Create new user files (in any folder of Linux) to test the system call testnewcall.c, testnewcall.h (created in /home/pradeepkumar ) syscall_table_32.S Find the file /usr/src/linux-

How to Access MOODLE in Intranet and Internet

When Moodle is accessed either in Intranet or internet, there will not be any issue. But occasions when the MOODLE Site has to be accessed both in the intranet and in the Internet, here is a simple trick Server Used: IBM Blade Servers Operating system: Windows Server 2008 Moodle Version: 2.4 WAMP Server is used. Number of Users: 3000 (Students) + 200 (Faculty) Open the config.php from ~/moodle/config.php include these lines $CFG->wwwroot = 'http://'.$server_id.'/vitcc'; $CFG->dataroot  = 'C:\\wamp\\moodledata'; before the following line $CFG->directorypermissions = 07xx; Restart the WAMP Server and you can Check MOODLE Site both in Internet and Intranet. The above Image tells the intranet Link and the internet link can be opened outside the campus network

Electrical Machine Design (equations)

Factors DC Machine Transformers Induction Machines Synchronous Machines Output Equation P a =C o D 2 Ln, where Pa=P/h for generators, Pa=P for motors For Single Phase Q=2.22 f B m A i K w A w d 10 -3 For Three Phase Q=3.33 f B m A i K w A w d 10 -3 Q=C o D 2 L n s KVA Input Q= HP * 0.746 / Cos f * h Q=C o D 2 L n s KVA Input Q= HP * 0.746 / Cos f * h For Turbo alternators Q=1.11B av ac K ws V a 2 L 10 -3 /n s Output Coefficient C o =B av ac* 10 -3 where Bav-magnetic loading and ac - electric loading DNA C o =11 K ws B av ac 10 -3 C o =11 K ws B av ac 10 -3 Choice of Magnetic Loading Flux Density in Teeth Frequency of Flux Reversals Size of machine DNA Magnetizing current, Flux Density, Iron loss Iron loss, Stability, Voltage Rating, Parallel Operation, Transient ShortCircuit current