SlideShare une entreprise Scribd logo
1  sur  14
14.Cài đặt NS2 trên Windows bằng chương trình Cywin
Người viết admin

[Cài đặt Cygwin]

<!--[if !supportLists]-->2. <!--[endif]-->Giải nén cygwin.rar




<!--[if !vml]-->

<!--[if !supportLists]-->1. <!--[endif]-->Click vào file setup.exe để cài đặt cygwin.
<!--[if !supportLists]-->2. <!--[endif]-->Click “Next”.
<!--[if !supportLists]-->3. <!--[endif]-->Sau đó chọn “Install from Local Directory”




<!--[if !supportLists]-->4. <!--[endif]-->Click “Next”.
<!--[if !supportLists]-->5. <!--[endif]-->Click “Next”




<!--[if !supportLists]-->6. <!--[endif]-->Click “Browse” để chọn vị trí cài đặt phần mềm. (Please choose
    “ftp%3a%2f%2fftp.nctu.edu.tw%2fWin        dows%2fcygwin”)
<!--[if !supportLists]-->7. <!--[endif]-->Click “OK”.




<!--[if !supportLists]-->8. <!--[endif]-->Click “Next” . Trong cửa sổ này, cywin sẽ cho phép bạn lựa chọn
    những gói phần mềm muốn cài đặt.
<!--[if !supportLists]-->9. <!--[endif]-->Click vào “View” để thay đổi “Category“ thành “Full”. (thực ra
    trong bước này ta có thể chọn install all bằng cách click vào chữ default cho tới khi chuyển thành
    install, khi đó ta có thể bỏ qua bước 9+10).
<!--[if !supportLists]-->10. <!--[endif]--> XFree86-base, XFree86-bin, XFree86-prog, XFree86-
    lib, XFree86-etc, make, patch, perl, gcc, gcc-g++, gawk, gnuplot, tar and gzip là các
   gói cần thiết phải cài đặt (phải chọn cài đặt tất cả các gói này). For example,
   if I want to install XFree-86 base (upper figure), click the “Skip” of “New”
   column. The “Skip” will be changed to “4.3.0-1” (lower figure).
<!--[if !supportLists]-->11. <!--[endif]-->Click “Next”.




(Chờ cho tới khi quá trình cài đặt hoàn tất)

<!--[if !supportLists]-->12. <!--[endif]--> Click “Finish”.




                                                              <!--[endif]-->
<!--[if !supportLists]-->13. <!--[endif]--> Click “OK”




[Cài đặt NS2] (trong gói cài đặt này có thêm một số module so với chương trình cài đặt gốc của nó là
TKN 802.11e EDCF module, NOAH routing, MFlood, CSFQ, Poisson traffic, wireless random uniform
and GE error model, and tcldebug, Evalvid-RA and IEEE 802.16)

<!--[if !supportLists]-->1. <!--[endif]-->Click vào biểu tượng icon này trên desktop.




<!--[if !supportLists]-->2. Trong lần chạy đầu tiên ta cần thiết lập các thông số môi trường cho chương
    trình. Trong ví dụ này, smallko là tên login vào hệ thống windows. Bởi vậy, cywin sẽ tạo một thư
    mục có tên là “smallko” nằm trong thư mục home. (Đường dẫn thực tế của thư mục smallko sẽ là:
    c:cygwinhomesmallko). Chú ý rằng tên login không được có kí tự trắng (space). Ví dụ, “A B” sẽ
    dẫn tới lỗi khi cài đặt NS2

<!--[if !supportLists]-->3. <!--[endif]-->Download myNS2 hoặc myNS2

<!--[if !supportLists]-->4. <!--[endif]-->Giải nén file ns-allinone-2.28.rar.

<!--[if !supportLists]-->5. <!--[endif]-->Move nó vào thư mục c:cygwinhomesmallko.

<!--[if !supportLists]-->6. <!--[endif]-->Mở 1 chương trình cygwin

<!--[if !supportLists]-->7. <!--[endif]-->Thay đổi đường dẫn thành ns-allinone-2.28/ns-2.28
<!--[if !supportLists]-->8. <!--[endif]-->Chạy lệnh “./configure; make clean; make
<!--[if !supportLists]-->9. <!--[endif]-->Ngồi đợi cho tới khi quá trình biên dịch hoàn tất.

<!--[if !supportLists]-->10. <!--[endif]-->Kết quả:
<!--[if !supportLists]-->11. Để đảm bảo rằng quá trình cài đặt NS2 thành công, cần kiểm tra xem đã có
    file ns.exe trong thư mục ns-allinone-2.28/ns-2.28 hay chưa.
<!--[if !supportLists]-->12. <!--[endif]-->Copy file .bashrc (từ thư mục giải nén của cywin.rar) tới
    c:/cygwin/home/smallko

<!--[if !supportLists]-->13. <!--[endif]-->Chạy thử một chương trìn để xem quá trình thiết lập đường dẫn
    đã đúng chưa.
<!--[endif]-->

<!--[if !supportLists]-->14. <!--[endif]--> Nếu bạn nhận được thông báo lỗi thì đó có thể là do quá trình
    bạn đã thiết lập đường dẫn nhưng nó không làm việc. Bạn có thể copy file ns.exe và nam.exe (nằm
    tronng thư mục ns-1.11) vào cùng thư mục với chương trình mô phỏng đó (simulation script).


     Comment

Contenu connexe

En vedette

What founders should worry about
What founders should worry aboutWhat founders should worry about
What founders should worry aboutPhilipp Moehring
 
Presentation at Imperial College, July 2010
Presentation at Imperial College, July 2010Presentation at Imperial College, July 2010
Presentation at Imperial College, July 2010Philipp Moehring
 
3.2 use parallel lines and transversals
3.2 use parallel lines and transversals3.2 use parallel lines and transversals
3.2 use parallel lines and transversalsmasljr
 
1.4 measure and classify angles
1.4 measure and classify angles1.4 measure and classify angles
1.4 measure and classify anglesmasljr
 
Learnings from the Seedcamp US trip
Learnings from the Seedcamp US tripLearnings from the Seedcamp US trip
Learnings from the Seedcamp US tripPhilipp Moehring
 
Ch 1 vocabulario
Ch 1   vocabularioCh 1   vocabulario
Ch 1 vocabulariomasljr
 
3.4 finding and using slopes
3.4 finding and using slopes3.4 finding and using slopes
3.4 finding and using slopesmasljr
 
Order of operations
Order of operationsOrder of operations
Order of operationsmasljr
 
Job alike 2015 technology in the foreign language classroom
Job alike 2015 technology in the foreign language classroomJob alike 2015 technology in the foreign language classroom
Job alike 2015 technology in the foreign language classroommasljr
 
Dilations
DilationsDilations
Dilationsmasljr
 
1.5 describe angle pair relationships
1.5 describe angle pair relationships1.5 describe angle pair relationships
1.5 describe angle pair relationshipsmasljr
 
Fyodor Mikhailovich Dostoevsky 1
Fyodor Mikhailovich Dostoevsky 1Fyodor Mikhailovich Dostoevsky 1
Fyodor Mikhailovich Dostoevsky 1missirvin
 
Security Issues of 802.11b
Security Issues of 802.11bSecurity Issues of 802.11b
Security Issues of 802.11bguestd7b627
 
5.1 midsegment
5.1 midsegment5.1 midsegment
5.1 midsegmentmasljr
 
Laws of exponents
Laws of exponentsLaws of exponents
Laws of exponentsmasljr
 
Arc lengths and areas
Arc lengths and areasArc lengths and areas
Arc lengths and areasmasljr
 
Henrik Johan Ibsen
Henrik Johan IbsenHenrik Johan Ibsen
Henrik Johan Ibsenmissirvin
 
1.3 midpoint and distance formulas
1.3 midpoint and distance formulas1.3 midpoint and distance formulas
1.3 midpoint and distance formulasmasljr
 

En vedette (19)

What founders should worry about
What founders should worry aboutWhat founders should worry about
What founders should worry about
 
Early stage funding
Early stage funding Early stage funding
Early stage funding
 
Presentation at Imperial College, July 2010
Presentation at Imperial College, July 2010Presentation at Imperial College, July 2010
Presentation at Imperial College, July 2010
 
3.2 use parallel lines and transversals
3.2 use parallel lines and transversals3.2 use parallel lines and transversals
3.2 use parallel lines and transversals
 
1.4 measure and classify angles
1.4 measure and classify angles1.4 measure and classify angles
1.4 measure and classify angles
 
Learnings from the Seedcamp US trip
Learnings from the Seedcamp US tripLearnings from the Seedcamp US trip
Learnings from the Seedcamp US trip
 
Ch 1 vocabulario
Ch 1   vocabularioCh 1   vocabulario
Ch 1 vocabulario
 
3.4 finding and using slopes
3.4 finding and using slopes3.4 finding and using slopes
3.4 finding and using slopes
 
Order of operations
Order of operationsOrder of operations
Order of operations
 
Job alike 2015 technology in the foreign language classroom
Job alike 2015 technology in the foreign language classroomJob alike 2015 technology in the foreign language classroom
Job alike 2015 technology in the foreign language classroom
 
Dilations
DilationsDilations
Dilations
 
1.5 describe angle pair relationships
1.5 describe angle pair relationships1.5 describe angle pair relationships
1.5 describe angle pair relationships
 
Fyodor Mikhailovich Dostoevsky 1
Fyodor Mikhailovich Dostoevsky 1Fyodor Mikhailovich Dostoevsky 1
Fyodor Mikhailovich Dostoevsky 1
 
Security Issues of 802.11b
Security Issues of 802.11bSecurity Issues of 802.11b
Security Issues of 802.11b
 
5.1 midsegment
5.1 midsegment5.1 midsegment
5.1 midsegment
 
Laws of exponents
Laws of exponentsLaws of exponents
Laws of exponents
 
Arc lengths and areas
Arc lengths and areasArc lengths and areas
Arc lengths and areas
 
Henrik Johan Ibsen
Henrik Johan IbsenHenrik Johan Ibsen
Henrik Johan Ibsen
 
1.3 midpoint and distance formulas
1.3 midpoint and distance formulas1.3 midpoint and distance formulas
1.3 midpoint and distance formulas
 

NS2

  • 1. 14.Cài đặt NS2 trên Windows bằng chương trình Cywin Người viết admin [Cài đặt Cygwin] <!--[if !supportLists]-->2. <!--[endif]-->Giải nén cygwin.rar <!--[if !vml]--> <!--[if !supportLists]-->1. <!--[endif]-->Click vào file setup.exe để cài đặt cygwin.
  • 3. <!--[if !supportLists]-->3. <!--[endif]-->Sau đó chọn “Install from Local Directory” <!--[if !supportLists]-->4. <!--[endif]-->Click “Next”.
  • 4. <!--[if !supportLists]-->5. <!--[endif]-->Click “Next” <!--[if !supportLists]-->6. <!--[endif]-->Click “Browse” để chọn vị trí cài đặt phần mềm. (Please choose “ftp%3a%2f%2fftp.nctu.edu.tw%2fWin dows%2fcygwin”)
  • 5. <!--[if !supportLists]-->7. <!--[endif]-->Click “OK”. <!--[if !supportLists]-->8. <!--[endif]-->Click “Next” . Trong cửa sổ này, cywin sẽ cho phép bạn lựa chọn những gói phần mềm muốn cài đặt.
  • 6. <!--[if !supportLists]-->9. <!--[endif]-->Click vào “View” để thay đổi “Category“ thành “Full”. (thực ra trong bước này ta có thể chọn install all bằng cách click vào chữ default cho tới khi chuyển thành install, khi đó ta có thể bỏ qua bước 9+10).
  • 7. <!--[if !supportLists]-->10. <!--[endif]--> XFree86-base, XFree86-bin, XFree86-prog, XFree86- lib, XFree86-etc, make, patch, perl, gcc, gcc-g++, gawk, gnuplot, tar and gzip là các gói cần thiết phải cài đặt (phải chọn cài đặt tất cả các gói này). For example, if I want to install XFree-86 base (upper figure), click the “Skip” of “New” column. The “Skip” will be changed to “4.3.0-1” (lower figure).
  • 8. <!--[if !supportLists]-->11. <!--[endif]-->Click “Next”. (Chờ cho tới khi quá trình cài đặt hoàn tất) <!--[if !supportLists]-->12. <!--[endif]--> Click “Finish”. <!--[endif]-->
  • 9. <!--[if !supportLists]-->13. <!--[endif]--> Click “OK” [Cài đặt NS2] (trong gói cài đặt này có thêm một số module so với chương trình cài đặt gốc của nó là TKN 802.11e EDCF module, NOAH routing, MFlood, CSFQ, Poisson traffic, wireless random uniform and GE error model, and tcldebug, Evalvid-RA and IEEE 802.16) <!--[if !supportLists]-->1. <!--[endif]-->Click vào biểu tượng icon này trên desktop. <!--[if !supportLists]-->2. Trong lần chạy đầu tiên ta cần thiết lập các thông số môi trường cho chương trình. Trong ví dụ này, smallko là tên login vào hệ thống windows. Bởi vậy, cywin sẽ tạo một thư mục có tên là “smallko” nằm trong thư mục home. (Đường dẫn thực tế của thư mục smallko sẽ là: c:cygwinhomesmallko). Chú ý rằng tên login không được có kí tự trắng (space). Ví dụ, “A B” sẽ dẫn tới lỗi khi cài đặt NS2 <!--[if !supportLists]-->3. <!--[endif]-->Download myNS2 hoặc myNS2 <!--[if !supportLists]-->4. <!--[endif]-->Giải nén file ns-allinone-2.28.rar. <!--[if !supportLists]-->5. <!--[endif]-->Move nó vào thư mục c:cygwinhomesmallko. <!--[if !supportLists]-->6. <!--[endif]-->Mở 1 chương trình cygwin <!--[if !supportLists]-->7. <!--[endif]-->Thay đổi đường dẫn thành ns-allinone-2.28/ns-2.28
  • 10. <!--[if !supportLists]-->8. <!--[endif]-->Chạy lệnh “./configure; make clean; make
  • 11. <!--[if !supportLists]-->9. <!--[endif]-->Ngồi đợi cho tới khi quá trình biên dịch hoàn tất. <!--[if !supportLists]-->10. <!--[endif]-->Kết quả:
  • 12. <!--[if !supportLists]-->11. Để đảm bảo rằng quá trình cài đặt NS2 thành công, cần kiểm tra xem đã có file ns.exe trong thư mục ns-allinone-2.28/ns-2.28 hay chưa.
  • 13. <!--[if !supportLists]-->12. <!--[endif]-->Copy file .bashrc (từ thư mục giải nén của cywin.rar) tới c:/cygwin/home/smallko <!--[if !supportLists]-->13. <!--[endif]-->Chạy thử một chương trìn để xem quá trình thiết lập đường dẫn đã đúng chưa.
  • 14. <!--[endif]--> <!--[if !supportLists]-->14. <!--[endif]--> Nếu bạn nhận được thông báo lỗi thì đó có thể là do quá trình bạn đã thiết lập đường dẫn nhưng nó không làm việc. Bạn có thể copy file ns.exe và nam.exe (nằm tronng thư mục ns-1.11) vào cùng thư mục với chương trình mô phỏng đó (simulation script). Comment