| Kang's profile乱七八糟PhotosBlogLists | Help |
乱七八糟一堆乱七八糟的游记,食谱,电影,生活,等等等等 April 11 How to run NS-2 on WindowsNS-2 cannot directly run on Windows. However, what we can do is: 1. Download Sun VirtualBox which is a virtual pc supports many OSs. link: http://www.virtualbox.org/wiki/Downloads, choose VirtualBox 2.x.x for Windows hosts. After downloaded, install it. The OS in your computer is called HOST OS, and the OS in VirtualBox is a GUEST OS.
Run VirtualBox,, click new to create a new virtual PC (VPC). Type a name you like. Choose Operating System to Linux, and Version is Ubuntu.
Now, set the memory size of your VPC. You can use default memory size or set your own. Remember to leave enough memory to your host OS.
Next, create a virtual hard disk, click new to create a new one, choose “fixed-size storage” to get better performance. Make sure you have enough disk space. The virtual hard disk actually is a file in your real hard disk. You can reuse it in the future.
2. Download Ubuntu Open you browser and go to : http://www.ubuntu.com/getubuntu/download to download Ubuntu. It is an ISO file. 3. Install Ubuntu into VirtualBox In VirtualBox, select the VPC you just created, then click “setting”. In CD/DVD-ROM setting, mount the Ubuntu ISO file . Save your setting and “Start” your VPC. Press F12 to select your boot device and choose boot from cd-rom. It will load Ubuntu installation program for the VPC. It takes some time to install Ubuntu. After the installation is finished, you have a Linux OS in your computer. From here, we need to do all tasks in the VPC Ubuntu environment. 4. Install NS-2 Start the Ubuntu VPC. In the VPC, open firefox and go to http://sourceforge.net/project/showfiles.php?group_id=149743&package_id=169689&release_id=588643 to download NS-2 all-in-one. It includes Tcl, Otcl, NS, Nam, Xgraph and many other programs. The downloaded filename is ns-allinone-2.33.tar.gz. Copy the gz file into your home directory /home/XXXXXXXXX, XXXXXXXXX is your linux username. Open a terminal window and run : tar svfz ./ns-allinone-2.33.tar.gz cd ns-allinone-2.33.tar.gz sudo apt-get install build-essential autoconf automake libxmu-dev then start to install NS-2 using: ./install It takes some time to install it. then set environment by editing ~/.bashrc file. Add following sentences into bashrc file. # LD_LIBRARY_PATH
It is almost finished but remember: Reboot your VPC After rebooting, open a terminal window, go to ns-2 directory and run “ns”. If you get a “%”prompt, congratulation! NS-2 is working.
If you get something like: Usage: host [-v] [-a] [-t querytype] [options] name [server] goto ~usr/bin to delete the ns command.
The program 'ns' is currently not installed. You can install it by typing: sudo apt-get install host (don't do this) Make sure you have the 'universe' component enabled bash: ns: command not found Do not do “sudo apt-get install host”. April 10 洪水,洪水半年的寒冬已过,寒冷的Winnipeg有了些许暖意。 温度上升到了零度左右,覆盖Winnipeg的积雪开始融化。 随之而来的恶果就是。。。洪水。据报道,今年Winnipeg的洪水是罕见的,已经接近了百年难遇的程度。 乘Bus去学校的路上,会经过河边,看见河水几乎就和路面平齐。于是,心中默念,再涨一点,再涨一点就不用考试了。。。 今日路过河边,顺便拍了几张照片。 BDI旁边的桥,平时的水位至少比现在低2米。 夕阳西下,好宽的河面。
水流很急,还夹杂着浮冰。
最后来一张。。。Winnipeg的名店之一BDI,夏日的傍晚,这里可是人山人海。即使是依旧寒冷的现在,大家也排队购买。
January 26 最近想看的几部电影1,赤壁(下),看过了上,不看下毕竟有点说不过去。
2,疯狂的赛车,评价很高,石头风格。
3,家有喜事2009,前两部都是非常搞笑的经典。
4,游龙戏凤。。。
呃,忘了一个,编辑一下
5,喜羊羊和灰太郎 之 牛气冲天 |
|
|||
|
|