Guides2Linux&NS-vs2

15
From Nguyễn Đình Việt + Student Groups MỘT VÀI HƯỚNG DẪN VỀ LINUX VÀ CÀI ĐẶT NS I. Linux Làm cho mọi NSD có thể sử dụng được ổ đĩa mềm và CD-ROM: Bổ sung thêm các dòng sau đây vào file /etc/fstab (một số phiên bản Linux đã tự động thực hiện việc này) - /dev/cdrom /mnt/cdrom iso9660 ro, user, noauto 0 0 - /dev/fd0 /mnt/floppy vfat, user, noauto 0 0 Sau đó (sau khi restart hoặc logout + login) thực hiện: - mount /mnt/floppy - mount /mnt/cdrom 1. Sử dụng được đĩa USB (Flash Drive, USB Drive v.v.): - Phải chuyển account thành superuser (đánh lệnh su, rồi vào mật khẩu của superuser) - Tạo 01 thư mục để ánh xạ nội dung ổ đĩa USB: /mnt/usb-disk - Khi cắm ổ USB vào, nếu cần truy cập: mount /dev/sda1 /mnt/usb-disk, sau đó có thể truy cập nó tại thư mục /mnt/usb-disk - Trước khi rút usb-disk ra, cần thực hiện lệnh: umount /mnt/usb-disk 2. Để truy cập được Windows Partition từ Linux: - Đây là trường hợp cài đặt 2 hệ điều hành (Dual Boot), từ môi trường Linux chúng ta muốn truy cập hệ thống file của Windows. Khả năng truy cập này rất thuận tiện trong trường hợp chúng ta muốn chuyển các kết quả mô phỏng sang môi trường Windows để xử lý bằng các công cụ phần mềm đã quen thuộc. - Khi cài Windows phải chọn FAT32 chứ không chọn NTFS (có thể có một số bản Linux không đòi hỏi phải nhất thiết làm như vậy). - Tạo 1 thư mục để ánh xạ nội dung Partition của Windows (ổ đĩa logic C: cài Windows): /mnt/windows - Bổ sung thêm các dòng sau đây vào file /etc/fstab: /dev/hda1 /mnt/windows auto II. Cài đặt trong môi trường Linux: NS & Tracegraph @ gnuplot 1. Các bước cài đặt NS trên Linux 1. Copy file ns-allinone-2.29_tar.gz vào thư mục của mình (thí dụ username) hoặc thư mục /usr/local/share (trường hợp này phải 1/

Transcript of Guides2Linux&NS-vs2

Page 1: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

MỘT VÀI HƯỚNG DẪN VỀ LINUX VÀ CÀI ĐẶT NS

I. LinuxLàm cho mọi NSD có thể sử dụng được ổ đĩa mềm và CD-ROM:

Bổ sung thêm các dòng sau đây vào file /etc/fstab (một số phiên bản Linux đã tự động thực hiện việc này)

- /dev/cdrom /mnt/cdrom iso9660 ro, user, noauto 0 0

- /dev/fd0 /mnt/floppy vfat, user, noauto 0 0

Sau đó (sau khi restart hoặc logout + login) thực hiện:

- mount /mnt/floppy

- mount /mnt/cdrom

1. Sử dụng được đĩa USB (Flash Drive, USB Drive v.v.):

- Phải chuyển account thành superuser (đánh lệnh su, rồi vào mật khẩu của superuser)

- Tạo 01 thư mục để ánh xạ nội dung ổ đĩa USB: /mnt/usb-disk

- Khi cắm ổ USB vào, nếu cần truy cập: mount /dev/sda1 /mnt/usb-disk, sau đó có thể truy cập nó tại thư mục /mnt/usb-disk

- Trước khi rút usb-disk ra, cần thực hiện lệnh: umount /mnt/usb-disk

2. Để truy cập được Windows Partition từ Linux:

- Đây là trường hợp cài đặt 2 hệ điều hành (Dual Boot), từ môi trường Linux chúng ta muốn truy cập hệ thống file của Windows. Khả năng truy cập này rất thuận tiện trong trường hợp chúng ta muốn chuyển các kết quả mô phỏng sang môi trường Windows để xử lý bằng các công cụ phần mềm đã quen thuộc.

- Khi cài Windows phải chọn FAT32 chứ không chọn NTFS (có thể có một số bản Linux không đòi hỏi phải nhất thiết làm như vậy).

- Tạo 1 thư mục để ánh xạ nội dung Partition của Windows (ổ đĩa logic C: cài Windows): /mnt/windows

- Bổ sung thêm các dòng sau đây vào file /etc/fstab: /dev/hda1 /mnt/windows auto

II. Cài đặt trong môi trường Linux: NS & Tracegraph @ gnuplot

1. Các bước cài đặt NS trên Linux

1. Copy file ns-allinone-2.29_tar.gz vào thư mục của mình (thí dụ username) hoặc thư mục /usr/local/share (trường hợp này phải login là root, nhằm cài ns, tracegraph, mgl cho mọi user dùng chung).

2. Thực hiện giải nén: tar –zxf ns-allinone-2.29_tar.gz. Tar chạy vài phút, tạo hệ thống cây thư mục cho NS.

3. Đánh dòng lệnh sau: . ./usr/local/share/ns-allinone-2.29/install (hoặc có thể chuyển vào thư mục đó rồi đánh lệnh: . ./install). Chú ý: sau dấu chấm “.” có dấu cách (space). Quá trình cài đặt NS thường cần từ 15 phút đến 30 phút hoặc lâu hơn, tuỳ tốc độ từng máy. Trên màn hình có các thông báo của chương trình install (có vài lần hỏi, cứ trả lời ‘y’ là xong).

4. Việc cài đặt thành công hay thất bại đọc được ngay trên màn hình. Nếu thành công sẽ thấy thư mục ns-allinone-2.29/ns-2.29/bin; bên trong có file khả thi ns, nam và nhiều file khả thi khác. Cần phải đặt đường dẫn đến thư mục nêu trên, thực hiện như hướng dẫn II.4 dưới đây.

1/3

Page 2: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

2. Các bưới cài đặt Tracegraph và thư viện Matlab mà Tracegraph cần:

5. Copy các file: 1/. tracegraph202linux.tar.gz, 2/ mglinstaller.gz vào thư mục làm việc; nên copy và cài đặt các chương trình này tại thư mục: /usr/local/share.

6. Giải nén tracegraph202linux.tar.gz (chỉ cần giải nén và đặt đường dẫn): tar –zxf tracegraph202linux.tar.gz

7. Giải nén, cài đặt thư viện Matlab cho tracegraph và đặt đường dẫn (để tracegraph tìm được):

- gunzip [ -d ] mglinstaller

- Cài đặt: đánh dòng lệnh mglinstaller; khi được hỏi về thư mục chứa thư viện, nên đánh vào mgl

3. Cài đặt bổ sung chương trình vẽ đồ thị gnuplot

- Gnuplot có trong bộ chương trình ứng dụng của hầu hết các phiên bản Linux: Nếu ở dấu nhắc đánh gnuplot nó chạy luôn thì khỏi phải làm gì, dùng được luôn; nếu không:

8. Chọn menu: System Setting -> Add/Remove Applications -> chuyển đến menu con “Scientific ...” sẽ thấy mục chọn là gnuplot, “Tick” để chọn, sau đó sẽ có yêu cầu đưa CDROM tương ứng vào ổ.

4. Bổ sung thêm đường dẫn tới thư mục hiện thời chứa các file khả thi ns, nam, xgraph, trgraph và đưa thêm vào biến môi trường đường dẫn đến thư mục chứa thư viện của Matlab (tracgraph cần đến):

Thí dụ user viet cần edit lại file /home/viet/.bashrc (hoặc .bash_profile):

- Có một dòng: PATH=$PATH:$HOME/BIN

- Cần bổ sung các dòng sau:

+ PATH=$PATH:$HOME/BIN:./

+ PATH=$PATH:/usr/local/share/ns-nsallinone-2.29/bin

+ PATH=$PATH:/usr/local/share/tracegraph202

+ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/share/mgl/bin/glnx86

III. Cài đặt trong môi trường Windows: NS & Tracegraph @ gnuplot

1. Những file cần download về:

9. ns.exe, nam.exe: đây là các file khả thi chạy được ngay trong môi trường Windows.

10. mglinstaller.exe, tcl832.exe (các số chỉ phiên bản, như 832, có thể khác nhau tùy theo việc nó được viết cho phiên bản ns nào): đây là các file nén sẽ “bung ra” khi chạy để cài đặt thư viện cho Matlab (mglinstaller) và bộ thông dịch ngôn ngữ tcl (tcl832.exe)...

11. gp41-July18_2006-winbin.zip: đây là file nén chứa chương trình vẽ đồ thị gnuplot (không thuộc dự án Vint). Nếu không dùng gnuplot thì không cần đến nó (ns và nam không “quan hệ” gì với gnuplot cả).

12. tracegraph202windows.zip (tên có thể thay đổi đôi chút).

2. Tạo thư mục làm việc:

13. Nên tạo một thư mục (folder) riêng trên đĩa cứng để cài NS, NAM, Tracegraph và gnuplot. Thí dụ: E:\NS\NS4Windows.

14. Copy tất cả các (5) file nêu trên vào thư mục này.

3. Cài đặt tcl để ns và nam có thể làm việc (chạy được):

- Với ns.exe và nam.exe, cần cài đặt tcl để có thể sử dụng được. Cho chạy tcl832.exe (đánh tên nếu chuyển sang chế độ command line như trong DOS, hoặc “kích” đúp vào biểu tượng của nó

2/3

Page 3: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

giống như việc chạy các chương trình khác trong Windows). Chương trình cài đặt này (tcl832.exe) sẽ hỏi chúng muốn cài vào thư mục nào, nên chọn thư mục như trình bày ở trên - “\NS\NS4Windows” (dùng browse để tìm và chọn thư mục).

- Sau khi cài tcl, chúng ta sẽ thấy xuất hiện thư mục Tcl. Bây giờ có thể chạy ns và nam; tuy nhiên để có thể gọi thực hiện chúng ở mọi nơi, còn phải đặt đường dẫn đến thư mục làm việc mà chúng ta đã tạo ra (trình bày dưới đây).

- Nếu muốn thử xem ns đã chạy được chưa, có thể chuyển sang chế độ command line (MS DOS mode), vào thư mục chứa ns, đánh ns (Enter), nếu thấy ký tự “%”, tức là ns đã chạy. Nếu muốn ra khỏi ns, đánh CTRL_C.

3. Cài đặt phần mềm Tracegraph và thư viện Matlab để Tracegraph có thể làm việc (chạy được):

- Cho chạy mglinstaller.exe, chương trình cài đặt này sẽ hỏi chúng muốn cài vào thư mục nào, đồng thời hiện sẵn thư mục Default chính là thư mục đang chứa mglinstaller (nên đánh Enter để chọn chính thư mục này).

- Sau khi chạy xong, chúng ta sẽ thấy xuất hiện 2 thư mục con mới: “bin” và “toolbox”.

- Giải nén Tracegraph202-windơws.zip tại thư mục làm việc của chúng ta.

4. Đặt đường dẫn tới thư mục chứa các file khả thi ns, nam, trgraph và gnuplot:

- Vào Control Panel System Advanced Environment Variable System variables kích vào dòng có chữ Path .... Edit Bổ sung vào cuối danh sách các đường dẫn, các đường dẫn đến thư mục chứa các file khả thi mà chúng ta sẽ sử dụng và thư viện Matlab cho Trace graph, như sau:

E:\NS\NS4Windows;E:\NS\NS4Windows\Tcl\bin;E:\NS\NS4Windows\tracegraph202;E:\NS\NS4Windows\bin\win32;E:\NS\NS4Windows\gnuplot\binaries

- Sau khi nhập xong các đường dẫn bổ sung, lần lượt chọn các button “OK” cho đến khi ra đến Control Panel.

- Để các đường dẫn mới bổ sung có “hiệu lực”, không nhất thiết phải khởi động lại (Restart) máy, chỉ cần logout rồi lại login là được.

Các bạn sinh viên và HVCH chú ý:

1. Nếu bạn nào biết và thấy cần bổ sung thêm các bước nào đó, để một sinh viên “lính mới tò te” có thể thực hiện dễ dàng; hãy viết bổ sung và gửi cho thầy Việt (bằng giấy hoặc email).

2. Ai có “sáng kiến” gì, hãy thông báo rộng rãi cho mọi người cùng biết.

3/3

Page 4: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

HOW TO: Install Network Simulator 2 & Network animator (NSnam) on Ubuntu Hardy

August 29th, 2008 · 28 Comments

So I’ve been given a Final Year Project that deals with vehicular communication on a VANET (Vehicle Ad-hoc Network). It involves hardware implementation of an embedded system modules to a car’s CAN-BUS so as to communicate with the car’s ECUs and between cars themselves. If everything goes well, this would probably be implemented in luxury cars such as Audis & BMWs (we’re testing using the AUDI cars) - or maybe not.

Anyway, to cut the long story short, opensource is the way to go and thus, I needed free softwares to simulate changing network topology and routing algorithms. After a few considerations, NS2/Nam is my prefered choice. Installing it in Fedora 9 seems to be a breeze but Ubuntu has its setbacks. However, it is not difficult to overcome.

First, you have to download the NS2 allinone installation file from here and untar the compressed file (I’m using release ns2-2.33). Common to Ubuntu distribution, the OS is lack of developer tools like compilers and stuffs. Thus, make sure you already have installed your build essentials. If you haven’t,

sudo apt-get install build-essential

Next, you’ll need some dependencies which will allow the installation process to be successful. Else, you’ll probably get a “make: *** [tk3d.o] Error 1 tk8.4.14 make failed!” error.

sudo apt-get install autoconf automake libxmu-dev

After installation is successful, it’s time to install the NS2/Nam program

cd ns-allinone-2.33

./install

The installation process will take several minutes (depending on your machine’s processing power) with lots of installation verbose on your terminal. When the installation has ended, it will tell the user that installation is successful.

Next, you’ll need to change some Environment values in order to make your program work correctly.

sudo gedit ~/.bashrc

Add these lines to your bashrc file. Replace “your directory” with the installation directory of your ns2 program.

#environment values for NS2/NAM

# LD_LIBRARY_PATH

OTCL_LIB=/your directory/ns-allinone-2.33/otcl-1.13

NS2_LIB=/your directory/ns-allinone-2.33/lib

4/3

Page 5: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

X11_LIB=/usr/X11R6/lib

USR_LOCAL_LIB=/usr/local/lib

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY

TCL_LIB=/your directory/tcl8.4.18/library

USR_LIB=/usr/lib

export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH

XGRAPH=/your directory/ns-allinone-2.33/bin:/your directory/ns-allinone-2.33/tcl8.4.18/unix:/your directory/ns-allinone-2.33/tk8.4.18/unix

NS=/your directory/ns-allinone-2.33/ns-2.33/

NAM=/your directory/ns-allinone-2.33/nam-1.13/

PATH=$PATH:$XGRAPH:$NS:$NAM

Then type,

source ~/.bashrc

Next, you would want to validate the installation process. Go to the library and,

cd ns-2.33

./validate

This will take a much longer time than the first installation command (./install). After installation, a validation confirmation “validate overall report: all tests passed” will be shown.

To use ns2 simulator, just type,

$> ns

Hope this help for those who are planning to use the NS-2.

Tags: HOW TO guides

28 responses so far ↓

1 allison // Sep 12, 2008 at 9:11 pm

Excellent advice.

One typo… I’ll clarify for the NB’s;

The following line:

source ~./bashrc

5/3

Page 6: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

should actually be:

source ~/.bashrc

(bashrc is a hidden file)

2 firdooze // Sep 26, 2008 at 10:59 am

Thanks for pointing out the mistake. Fixed it! =)

3 Craft // Oct 23, 2008 at 2:33 pm

Hi,

I also tried to install ns-allinone on ArchLinux. I’ve followed your tips, but I have a little problem with nam. Can you use your nam ? Mine’s showing this error:

[code omitted because of length]

: no event type or button # or keysym

while executing

“bind Listbox {

%W yview scroll [expr {- (%D / 120) * 4}] units

}”

invoked from within

“if {[tk windowingsystem] eq “classic” || [tk windowingsystem] eq “aqua”} {

bind Listbox {

%W yview scroll [expr {- (%D)}] units

}

bind Li…”

4 Sandilya // Oct 24, 2008 at 1:58 pm

Hey ,

I really owe u guys…I was stuck at some point when i was installing NS2 on my Ubuntu OS. There was some problem with the nam binary. But I figured out a lot after reading your instructions. I have read through a lot of instructions but i felt urs were the best and simplest for people who havent dealt with NS2 earlier.Thanx a million and God bless. Thanx again.Cherio.

Best Regards,

Sandilya.

5 Sully // Nov 11, 2008 at 1:45 am

Works great for me on Hardy. Thanks!

6/3

Page 7: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

6 sujay // Nov 11, 2008 at 1:06 pm

thank you, u saved me a day’s work

7 rajeswaran // Nov 14, 2008 at 4:02 pm

i installed opensusue 10.2

i want to install and work NS2 for VANET.

please send the procedure to my mailid

8 moad // Nov 16, 2008 at 8:34 am

Its good thanks for help

9 Ashwath // Nov 20, 2008 at 3:09 pm

Was very helpful, will recommend to my friends too!

Thanks.

10 firdooze // Dec 3, 2008 at 4:37 pm

Hey guys, no problem man. I am glad to help! Just that I’m kinda busy with school work (mainly working on some VANET routing protocol), thus I may take sometime to reply back. Sorry bout that.

@Craft: My NAM works fine. Did your validation process went without error messages? Worse-case would be to change to another distro. I’ve tried it on Ubuntu and Fedora with 100% success.

@Rajeswaran: The installation process should be similar.

11 Ufuk // Dec 30, 2008 at 4:56 pm

NAM=/your directory/FYP/ns-allinone-2.33/nam-1.13/

FYP ??? what does it mean? is it ur dir’s name?

thnx in advance

12 firdooze // Jan 15, 2009 at 1:20 pm

oh sorry, ignore the FYP. It was part of my directory. heeh..

13 arun // Jan 19, 2009 at 6:13 pm

7/3

Page 8: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

hey.. i followed the steps you have said for nstalling ns2 on ubuntu. But after everything is finished, when I type ns nothing happens. I don’t get any % symbol… please help!

P.S. I use ubuntu on virtualbox software.

14 firdooze // Jan 20, 2009 at 2:01 am

arun > I am guessing that you might have forgotten to edit and use the bashrc file.

15 blorent // Feb 4, 2009 at 11:40 pm

Hi,

I have the same issue as Craft, running Arch Linux too. I suspect this is caused by a wrong X11_LIB (/usr/X11R6/lib doesn’t exist on Arch)

I tried several other possibilities but no success se far

If anyone can help…

16 tomy // Feb 25, 2009 at 1:55 am

good evening,

first thank you for your effort, i have some problem with the instruction ./validate, it’s return me:

validate overall report: some portable tests failed:

./test-all-red

to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME

any idea how to procede?

thank you very much ^^

17 2009_Beginner // Feb 27, 2009 at 9:06 pm

Hello !

I hope you can help me with this problem. I was trying to do some mobile ad hoc simulations but now I have a problem. After starting the simulation I cannot see it in NAM. It gives error like this:

invalid command name “n”

while executing

“n -t * -s 0 -x 0 -y 0 -Z 0 -z 100 -v circle -c black”

(file “mobile100.nam” line 1)

8/3

Page 9: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

I am using NAM version 1.13, for ns2.32 on Linux (Fedora 8 and kernel 2.6). I have installed it as allinone version.

If you have experience with this kind of problems please help.

Thank you in advance!

18 firdooze // Feb 28, 2009 at 1:11 am

@Beginner: Maybe you could try running the nam file on command line rather than automatically after the ns2 simulation. If it was generated successfully by NS2, I don’t see why there would be an error.

@tomy: Do check your installation output file and try run the specific test name as instructed by the installer.

@Blorrent: Just wondering whether are your running a x64 machine? Because I had some similar problem with X11 files on an 64bit server running in a cluster. I had to chance the ./configure files to include the 64 environment library in the x11 line. (/usr/X11/lib64)

19 nicko // Mar 1, 2009 at 11:53 pm

great!

it works thanks to your explanations

20 Rajeswaran // Mar 3, 2009 at 1:15 pm

Need help to install and run ns2 step by step procedure on opensuse 10.2

21 sean // Mar 13, 2009 at 7:28 pm

I’ve the same problem as craft. When I try to run nam I get:

$ nam:

[code omitted because of length]

: no event type or button # or keysym

while executing

“bind Listbox {

%W yview scroll [expr {- (%D / 120) * 4}] units

}”

invoked from within

“if {[tk windowingsystem] eq “classic” || [tk windowingsystem] eq “aqua”} {

bind Listbox {

9/3

Page 10: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

%W yview scroll [expr {- (%D)}] units

}

bind Li…”

Any Ideas?

22 30fillos // Mar 16, 2009 at 8:39 am

thx

for me work exelent

23 sachin // Mar 17, 2009 at 6:29 am

Me too have same problem like sean and craft

24 firdooze // Mar 20, 2009 at 10:02 pm

You guys installed the all-inone version right?

Did the validate process throw up any errors?

25 lyat // Mar 24, 2009 at 9:34 pm

I found a solution here : http://forums.fedoraforum.org/showthread.php?t=206795”

and it works for me.

I’m running ns on archlinux

26 lyat // Mar 24, 2009 at 10:24 pm

little precision

when I execute ./validate some tests failed but ns works well

enjoy!

27 Lynn Hsan // Apr 8, 2009 at 8:00 am

Hi,

i’ve already install NS simulator what you said above and wrote tcl file. i want to know is where do i put my tcl file under ns directory..when i run ns i got error messages as follows:

hanlinnhsan@hanlinnhsan-laptop:~/Desktop/ns-allinone-2.33$ ls

bin include nam-1.13 README tclcl zlib-1.2.3

cweb install ns-2.33 sgb tclcl-1.19

dei80211mr-1.1.4 INSTALL.WIN32 otcl share tk8.4.18

gt-itm lib otcl-1.13 tcl8.4.18 xgraph-12.1

10/

Page 11: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

hanlinnhsan@hanlinnhsan-laptop:~/Desktop/ns-allinone-2.33$ ns run

couldn’t read file “run”: no such file or directory

28 I. A. Musbah // Apr 15, 2009 at 11:33 pm

Hi guys ,,,

I am working on ns2.29.2 based on Cygwin, I have problem with NAM it dose not work with it gives me

code omitted because of length no event type or button or keysym

while executing

bind Listbox {

%W yview scroll [expr {- (%D / 120) * 4}] units

. . . . .

please anyone have faced this problem help me .

thanks

OK I have solved the problem. First go to the link below and download both the patches. I uesed only one and it workrd. Then extract the ns-allinone-2.33 archive and copy the patches in tk8.4.18 directory.

http://bugs.gentoo.org/show_bug.cgi?id=225999

The command session is below.

[badar@linux ~]$ cd ns-allinone-2.33/tk8.4.18/

[badar@linux tk8.4.18]$ ls

bitmaps compat library macosx tk-8.4.18-tkBind.patch win

ChangeLog doc license.terms README tk-8.4-lastevent.patch xlib

changes generic mac tests unix

[badar@linux tk8.4.18]$ patch -p1 < ./tk-8.4

tk-8.4.18-tkBind.patch tk-8.4-lastevent.patch

[badar@linux tk8.4.18]$ patch -p1 < ./tk-8.4-lastevent.patch

can't find file to patch at input line 3

Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

--------------------------

|--- generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100

|+++ generic/tk.h 2008-07-24 08:21:46.000000000 +0200

--------------------------

11/

Page 12: Guides2Linux&NS-vs2

From Nguyễn Đình Việt + Student Groups

File to patch: generic/tk.h

patching file generic/tk.h

[badar@linux tk8.4.18]$ cd ..

[badar@linux ns-allinone-2.33]$ ./install

I used patch for the first time and could not figure out exact option. So you have to manually enter generic/tk.h above. Anyone to give correct patch options.

12/