LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2018, 01:15 AM   #1021
koshy1222
LQ Newbie
 
Registered: Dec 2017
Posts: 16

Rep: Reputation: Disabled

Quote:
Originally Posted by knudfl View Post
Re #1018.

You will have to some way use the settings / definitions required by the connected scripts ,,, in your new scripts.

I.e. the setting "opt(max_dist)" is: lines 27 .. 29 , nodescen.tcl

-
Hello sir, thank you for replying me. I will try as you said and keep you updated.
 
Old 05-15-2018, 06:35 AM   #1022
moathmmo
LQ Newbie
 
Registered: May 2018
Posts: 7

Rep: Reputation: Disabled
can you give us new links ?

Quote:
Originally Posted by toprix View Post
To those users who still have problem in setting up NS2/LEACH;
I've uploaded an Ubuntu VM with ns 2.34 and LEACH protocol integrated in it.
http://www.filefactory.com/file/6gip...hi.part001.rar
http://www.filefactory.com/file/6712...hi.part002.rar
http://www.filefactory.com/file/2ii3...hi.part003.rar
http://www.filefactory.com/file/2i57...hi.part004.rar
http://www.filefactory.com/file/7ino...hi.part005.rar
http://www.filefactory.com/file/cyc3...hi.part006.rar
http://www.filefactory.com/file/6aao...hi.part007.rar
http://www.filefactory.com/file/275c...hi.part008.rar
http://www.filefactory.com/file/60mh...hi.part009.rar
http://www.filefactory.com/file/2xxq...hi.part010.rar
http://www.filefactory.com/file/7iqz...hi.part011.rar
http://www.filefactory.com/file/1tq2...hi.part012.rar
http://www.filefactory.com/file/2j8i...hi.part013.rar
http://www.filefactory.com/file/1gg2...hi.part014.rar
Notes:
1- rar files pass: lq
2- run VM by VMWare workstation 10+
3- OS pass: 123456
4- due to my thesis requirements, some changes are made in initial settings of leach protocol including: network dimensions, nodes scenario and ... by the way, you can simply replace original LEACH files with changed ones.
5- In case of dead links or corrupted rar files, contact me (rar files have 5% recovery)
the links not wokring can you give us new links ?
 
Old 05-15-2018, 05:24 PM   #1023
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by moathmmo View Post
the links not wokring can you give us new links ?
Can you not go look them up yourself???? You found this site with an Internet search, go find updated links as well. Asking people to do your Google searches for you is not only lazy, but incredibly rude. Read the "Question Guidelines" link in my posting signature.

If you cannot put ANY effort into looking something up for yourself, don't ask us to do it for you.
 
Old 05-15-2018, 11:18 PM   #1024
moathmmo
LQ Newbie
 
Registered: May 2018
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Can you not go look them up yourself???? You found this site with an Internet search, go find updated links as well. Asking people to do your Google searches for you is not only lazy, but incredibly rude. Read the "Question Guidelines" link in my posting signature.

If you cannot put ANY effort into looking something up for yourself, don't ask us to do it for you.
dude take it easy ,i've searched and found none he is the only one to upload image with ns2 and leach integrated on it.that's why i asked him

anyway i build my own and it worked so don't need them anymore
 
Old 05-16-2018, 07:07 AM   #1025
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by moathmmo View Post
dude take it easy i've searched and found none he is the only one to upload image with ns2 and leach integrated on it.that's why i asked him anyway i build my own and it worked so don't need them anymore
Wasn't stressed at all, but also wasn't going to go look things up for you...don't think anyone else will either. And since you built your own, that must mean that they were easy to find and build...hard to think of why you asked us to do this for you, then.

Glad you're working.
 
Old 05-29-2018, 11:33 AM   #1026
koshy1222
LQ Newbie
 
Registered: Dec 2017
Posts: 16

Rep: Reputation: Disabled
Hi there, how do I configure the data packet transmission rate in LEACH MIT UAMPS protocol? I have searched the related files, but maybe I missed something. If anyone could help, it will be highly appreciated. Thank you.
 
Old 05-29-2018, 10:39 PM   #1027
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #1026.

$ cd ns-2.34/
$ grep -Rin pkt *
$ grep -Rin packet *
$ grep -Rin packet * | grep tcl
$ grep -Rin packet * | grep tcl > grep-packet-in-tcl-files.txt

-
 
Old 06-12-2018, 11:04 PM   #1028
koshy1222
LQ Newbie
 
Registered: Dec 2017
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #1026.

$ cd ns-2.34/
$ grep -Rin pkt *
$ grep -Rin packet *
$ grep -Rin packet * | grep tcl
$ grep -Rin packet * | grep tcl > grep-packet-in-tcl-files.txt

-
Thank you so much, sir. It was helpful. I do have one other question. I was trying to install ns-2.34 in my laptop (Ubuntu 10.04 32 bits). I followed the exact steps I used when I installed ns-2.34 in my PC. But, it keeps giving error - ns: command not found in my laptop. When I checked /home/kosheila/ns-allinone-2.34/bin, ns and nam exe files are not there. But, these two files exist in my PC. I checked .bashrc and the paths are the same as my PC (I did locate all my files exactly as in my PC). I think because of the missing bin files, the errors are produced. How do I install the bin files, sir?
 
Old 06-13-2018, 04:01 AM   #1029
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #1028.

You are not supposed to add any *PATH text to .bashrc
https://drive.google.com/file/d/1g33...ew?usp=sharing
This will do : $ cd ns-2.34/ && sudo make install

... But of course the executable 'ns' must be created, before 'make install' can copy the file to /usr/local/bin/.

-
 
Old 06-13-2018, 04:17 AM   #1030
koshy1222
LQ Newbie
 
Registered: Dec 2017
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #1028.

You are not supposed to add any *PATH text to .bashrc
https://drive.google.com/file/d/1g33...ew?usp=sharing
This will do : $ cd ns-2.34/ && sudo make install

... But of course the executable 'ns' must be created, before 'make install' can copy the file to /usr/local/bin/.

-
Thank you very much, sir. But, how do I create the executable 'ns'? And, in ns-2.34, there isn't any install file.
 
Old 06-13-2018, 07:40 AM   #1031
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #1030 : Please do not quote entire posts. A "one word reference" will do.

LEACH :
Code:
tar xvf ns-allinone-2.34.tar.gz
cd ns-allinone-2.34/
patch -p0 < ns234_gcc49.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
zcat leach+pegasis_ns234.patch.gz | patch -p0
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install

cd ns-2.34/             // and check that 'ns' is present
ls ns
cp ns ns-leach                    // this is your backup
sudo cp ns-leach /usr/local/bin/

sudo make install   // 'make install' will copy 'ns' to /usr/local/bin/
 
  


Reply

Tags
leach, leach-warning50, ns2, ns2 ns234, pegasis



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 11:02 AM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 09:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration