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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
03-04-2014, 12:16 AM
|
#166
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Quote:
Originally Posted by knudfl
# 164 .
? Any particular reason not to use the proof code for ns-2.34 ?
-
|
I don't tried the installation procedure of ns-2.34.
and not having the proof code.
and anyway what do you mean by proof code. Is it 'working code'
I am stuck in my work!
Please help me out.
with thanks.
Last edited by Chakraborty; 03-04-2014 at 12:18 AM.
|
|
|
03-06-2014, 01:05 AM
|
#168
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear Knudfl,
with reference to:
http://mailman.isi.edu/pipermail/ns-...st/060965.html
How to bind agent attributes for GPSR.
Got to know the Agent/GPSR is not binded.
By debugging the gpsr.tcl file which is called by wireless-gpsr.tcl file.
In function
proc create-gpsr-routing-agent { node id }
...
...
set ragent_($id) [new Agent/GPSR] //it halts here.
Now, need the bind attributes.
Please suggest.
With Thanks.
|
|
|
03-06-2014, 03:40 AM
|
#169
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear Knudfl,
I need to install NSG2.1 in Ubuntu 12.04
But supporting packages are missing.
Please help.
|
|
|
03-06-2014, 06:26 AM
|
#170
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 169 .
NSG2.1 : There is no install.
Just run with $ java -jar NSG2.1.jar
.. and the display opens.
* You will of course have to install a usable "java" :
$ sudo apt-get install openjdk-6-jdk
And / or $ sudo apt-get install openjdk-7-jdk
-
|
|
|
03-06-2014, 08:37 AM
|
#171
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear Knudfl,
Please help with respect to #168.
Is there any requirement to do some changes
in
http://mailman.isi.edu/pipermail/ns-...st/060965.html
ns-packet.tcl
ns-default.tcl --> # how to get the Agent bind attributes for GPSR.
ns-lib.tcl
ns-mobilenode.tcl
...files.
with thanks.
|
|
|
03-10-2014, 04:34 AM
|
#173
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear Knudfl,
1)I want to upload the patch with me. Please tell me how to do that in LQ as you have done in:
2) I am trying ns-2.34 with Ubuntu.12.04 as suggested in
http://www.linuxquestions.org/questi...-a-4175448663/
How and at what sequence of execution to use the patch.
And if possible please provide the 'wireless-gpsr.tcl' file, that validates the patch with formation of a trace file.
Please help with these respects.
Awaiting for a mail-id.
With thanks
Last edited by Chakraborty; 03-10-2014 at 04:38 AM.
|
|
|
03-10-2014, 07:23 AM
|
#174
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 173 .
Quote:
How and at what sequence of execution to use the patch.
|
Read the answers to you, it's in post #148.
And it's not a patch. It's the most of ns-2.34 + the KeLiu files.
Post #148 has a link to #3 here ..
http://www.linuxquestions.org/questi...-4175448663/#3
1) cd ns-allinone-2.34/ && tar xvf gpsr-KeLiu-patched-ns234.tar.gz
2) export CC=gcc41 CXX=g++41 && ./install
Please use http://www.linuxquestions.org/questi...ember&u=386037
.. then I can supply an email address.
-
|
|
|
03-10-2014, 02:02 PM
|
#175
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Quote:
# 173.
Read the answers to you, it's in post #148.
And it's not a patch. It's the most of ns-2.34 + the KeLiu files.
-
|
Quote:
# 173 .
Post #148 has a link to #3 here ..
-
|
i.e order of installation will be, as expected
Install :
1) cd ns-allinone-2.34/ && tar xvf gpsr-KeLiu-patched-ns234.tar.gz
2) export CC=gcc41 CXX=g++41 && ./install
3) sudo dpkg -i gpsr-keliu-ns-2.34-ubuntu10_i386.deb
4) sudo dpkg -i gpsr-hls-2.33-ubuntu10_i386.deb
----(Is it mandatory ? As I need only GPSR!)
Please just confirm.
Quote:
#81
The trick is to rename all 'ns' to e.g. ns234, ns-orig, ns-hls, ns-gpsr-KeLiu,
etc. etc., and then copy all ns** to /usr/local/bin/ : A system PATH.
Or use as ./ns*
-
|
please clarify the reasons and give the procedures.
Taking me to an unprivileged page, though I am registered with LQ.
Besides I have uploaded the files in Google Drive according to #78
https://docs.google.com/file/d/0B9fk...SG8/edit?pli=1
Please check.
With Thanks.
|
|
|
03-10-2014, 06:06 PM
|
#176
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 175 .
Quote:
3) sudo dpkg -i gpsr-keliu-ns-2.34-ubuntu10_i386.deb
4) sudo dpkg -i gpsr-hls-2.33-ubuntu10_i386.deb
.
----(Is it mandatory ? As I need only GPSR!)
|
No. It's your own decision if you want to install the packages.
Both are GPRS. But different. Read the GPSR threads ! !
The packages can be installed if your own builds are failing.
Quote:
Please clarify the reasons and give the procedures.
|
When you have multiple files by name 'ns' it is convenient to use different names:
You can only have one file by name ns in /usr/local/bin/.
The 'ns' from a GPRS-hls patched ns2 can use a name example like ns-hls.
The 'ns' from a GPSR-KeLiu patched ns2 , example ns-keliu, or whatever you like.
Procedure to make a copy of a file : You will find out.
* Got your file "ns-2.33.tar.gz" from https://docs.google.com/file/d/0B9fk...SG8/edit?pli=1
Thank you. Will have a look at it. Later.
-
|
|
|
03-11-2014, 01:05 AM
|
#177
|
LQ Newbie
Registered: Mar 2014
Posts: 10
Rep: 
|
can anyone help me to do project in vanet? i am doing project against hole generation attack..
|
|
|
03-13-2014, 01:44 AM
|
#179
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Quote:
Originally Posted by knudfl
# 175 .
No. It's your own decision if you want to install the packages.
Both are GPRS. But different. Read the GPSR threads ! !
The packages can be installed if your own builds are failing.
-
|
I have a already running 2.33 in 12.04. but it is failing with "core dumping".
After applying the hls-patch,will the patch replaces the compiled gpsr.cc, gpsr.h files, with working new ones.
The patch I uploaded and linked to you, contains gpsr.cc,gpsr.h,etc modified based on actors(Sinks).
If yes, what about the node id's referred by these newly modified files.
Then please provide a working wireless-gpsr.tcl, the test scenario, and connection patern script in accordance with hls-patch to run the above.
i.e in short the necessary changes with respect to patch, to get a working gpsr.
Please suggest.
Thanking You.
|
|
|
03-13-2014, 06:50 AM
|
#180
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 179 .
Don't know what you are doing, or why.
The "hls" and "KeLiu" are two different setups that can't be mixed.
( Not easily at least.)
The file wireless-gpsr.tcl will only work with "KeLiu", not "hls".
If you want both kinds of simulations, then build two different ns-2.xx :
Two times ns-allinone-2.33, or : one ns-allinone-2.33 and an ns-allinone-2.34.
*** You can have as many versions as you want, installed at the same time.
But do never add any *PATH text to .bashrc : Never required.
( Setting a path for ns2 in .bashrc is something that was used in the remote past,
when you used the University computer : No write permissions to /usr/local/ .)
-
|
|
|
All times are GMT -5. The time now is 05:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|