Programming :: Where To Edit In AODV
Apr 11, 2011I am doing project on AODV, and here i want to know where to edit for adding local repair application in AODV. i got AODV as in built in ns2.
View 2 RepliesI am doing project on AODV, and here i want to know where to edit for adding local repair application in AODV. i got AODV as in built in ns2.
View 2 Replieswhat version of linux (fedora,redhat,ubuntu,mandriva etc)will be best for installing aodv adhoc network protocol? And how to install it?
View 2 Replies View Relatedhow to integrate AODV with linux kernel 2.6...im using the make command but it shows so many errors..
errors: gcc -O3 -DMODULE -D__KERNEL__ -DLINUX -DMESSAGES -DAODV_GATEWAY -DAODV_SIGNAL -I/lib/modules/`uname -r`/build/include/ -c aodv_dev.c -o aodv_dev.o In file included from /lib/modules/2.6.38-8-generic/build/include/linux/list.h:7:0,
from /lib/modules/2.6.38-8-generic/build/include/linux/module.h:9,
from aodv_dev.h:12,
from aodv_dev.c:9:
[Code]...
I am trying to get a checksum for a file in a subscripted variable in a bash script. md5sum outputs a checksum and the name of the input file. For example:
Code:
eval CSUM$K=$"(md5sum file)"
This might return something like this:
Code:
3cff5d5c0113959d0be62be34b97e05c file
I want to assign just the checksum to the variable in my shell script and omit the file name that follows. Is there something besides md5sum that will generate a checksum? Or if not, then I was thinking I might be able to extract the checksum without the file name using sed.
Mar 26 12:32:53 name sshd[3261]: 192.168.1.14Mar 27 12:42:53 name sshd[3262]: 192.168.1.14
how to make this data in output as:
"Mar 26 12:32:53","name","sshd","192.168.1.14"
"Mar 27 12:42:53","name","sshd","192.168.1.14"
I write the below sample program named "h1.asm"?
Code:
assume cs:code
code segment
mov ax,0B800H
[code]...
1. In Windows platform +MASM 5.0, run "command" and use "debug.exe" to see what would happen. As step by step check, I see B800:000 is not modified as expected.
2. In Ubuntu 10.04 + dosemu 1.4.0.1, run the program in two ways:
a. If exec dosemu in command line as "$dosemu -dumb", yes, it's in shell mode. and then use debug to check, "B800:0000" can be modified as expected.
Code:
"Welcome to dosemu 1.4.0.1!"
D:masm>debug h1.exe
-r
AX=0000 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
[code]....
b. If exec dosemu in command line as "$dosemu", and run the program again, the symptom is as same as 1.(pls see attachment picture).
3. In Windows, I replace "mov ax,0B800H" to "mov ax,2000H" and try again, it would be edited well. So I wonder if it is coursed by "B800" segment address.
For gcc, it seems that there are multiple include paths like /usr/include and /usr/src/linux/include. How do I check the current include path for gcc via command line? How do I edit it?
What about for cc?
I have a webGUI in php where users can make certain settings. How can I edit a file on a remote server from my php webserver? Currently I use my FTP client, vsFTPd and a chrooted user in a specific directory where the file resides. I think this is pretty save as long a nobody else uses my FTPclient. How can I make changes to this file on the remote server from within my php-code on my webserver ?? (so that not I need to make the changes but my users can do it from a html-form) I found this but the credentials for the FTP-connection are plain :
<?php
$file = fopen ("ftp://loginasswd@server", "w");
if (!$file) {
echo "<p>Unable to open remote file for writing.
";
[code].....
I use https for the webGUI, but I guess this does not mean the connection to the remote server will be encrypted also ? Can I use my FTP-user (has no shell) from within php to edit the file ?
I have a few small still images of around 300 bytes each that I created under Windows many years ago, I'd like to:
1) change the colour of some pixels on each and
2) make them the exact same size but I do not want to learn Gimp to do this since I have no other use for it.
Could someone show me the sequences of commands in Gimp GUI that will do the job?
whether it is possible to split open a file and edit only one of the open windows.
View 2 Replies View Relatedhow to write shell script(awk/sed or any other) to edit value of parameters in configuration files on same server or remote server.
View 3 Replies View RelatedI want to edit linux kernel source code in MS Visual Studio. I saw the code and these are c files but there is no project file that i open it and whole project opens up. I can open each individual file but not the whole project.
View 13 Replies View RelatedI am trying to write a script to edit text files formatted like this:
Code:
(MCAL@Contig766:0.30207,CGIG@CVIR_Contig1014:0.13977,(HASI@HDIS_Contig573:0.16828,(CAPI@LCIN_5594371:0.36581,CFOR@FQH745302RIQ7Y:1.91244)0.160:0.00019)0.939:0.15648);
There are never line breaks or spaces in the actual files.
I want to delete all instances of the character "@" and everything between it and the next "," (including that comma) or the next ")" (including that close parentheses) whichever comes first. My desired output file would be like this:
Code:
(MCAL,CGIG,(HASI,(CAPI,CFOR)0.160:0.00019)0.939:0.15648);
I figured out how to do this using sed for either "," or ")" but both looking for whichever comes first.
I have a linux.img image for ubuntu.I want to edit file inside it, how can open it, edit a file, then remake the bin file?
View 7 Replies View RelatedIs it possible to edit the "Places" menu the way one can edit the "Applications" and "System" menus on gnome?
Right-clicking on the bar gives only Applications and System as editable menus. I would like to remove some items from the places menu and add others of my own liking
What I am trying to do is edit the link target to force ip=xxxx.xxx.xxx string at end. I have a software program which access 4 different servers running the software but with different configs. In xp I can copy links and modify as above to correctly force the program to the various servers.
I have read the various how tos on hard vs sym links which I get. Playing around with hardlinks and sysmlinks (the examples I find) does not seem to be what I need. Feel like this is pretty basic stuff but I am a bit stumped.
i am trying to edit sshd_conf files to change the "#Port 22" to "Port 22" from a script.
I have tried this many different ways.
sshs1='s/#Port 22/Port 22/g'
sed $sshs1 /home/l/Desktop/test
the reason i have it as a string in this instance is because $sshs1 gets a variable, but im not working on that right yet. I've tried changing the ' to ` and ". this is what i get:
sed: -e expression #1, char 7: unterminated `s' command
sed: -e expression #1, char 8: extra characters after command
sed: -e expression #1, char 8: extra characters after command
"
sed: -e expression #1, char 7: unterminated `s' command
i know it may have to do with my regex, but i cant seem to find a decent tut.
I need to edit my xorg.conf file. I can navigate to it in Terminal but do not know how to open it. If I navigate to it outside of terminal I can change it but cannot save the changes (not allowed) I can't seem to find a "how to" for this. (Debian 504 on a Toshiba laptop)
View 3 Replies View RelatedHow i can edit the tags in About Me(System->Preference->About Me)? I need to change some tags it uses and want to change that. I don't know which package(s) are used in that. know the name of the package so that i can modify and install the source code?
View 1 Replies View RelatedI recently installed Fedora 12 on my system. I also have a Windows 7 running, which existed before the Fedora 12 installation.
When I start my computer, I get a screen that says 'Fedora is starting in 3 seconds' and I can either press a key to stop the boot or let it boot Fedora. If I stop the boot, I am taken to a 'choice screen' where I can choose between 'Fedora' and 'Other' with 'Other' being my Windows 7 OS.
Now, here's what I want to do. I want it to be so that, when I start my computer, I am directly taken to that 'choice screen' without the time limit or anything. And then I can choose which OS to boot. Also, is it possible to rename 'Other' to 'Windows 7' ?
How I can edit Grub in order to bring on these changes?
I installed apache, php in my fedora 14.
phpinfo() works fine. But the following file 'a.php':
PHP Code:
<?php
if ( !file_put_contents( '/var/www/html/a.txt', 'aaa' ) ) {
echo 'Failed!';
# phpinfo();
} else {
echo 'Succeeded.';
[Code]....
I just upgraded from SuSE 11.1 to 11.3.On my 11.1 system I had Firefox 3.6 installed and worked fine.Now on the 11.3 system I have of course Firefox 3.6.I only cannot access my edit- preferences. The whole -edit- menu is empty.I de-installed thru Yast2 the Firefox application, restarted the computer and installed thru Yast2 again the FF application. Unfortunately the -edit- menu is still empty.
View 9 Replies View RelatedI come from the Mac world, where I use [URL] to edit text from anywhere in Vim.
Is there anything like that on Linux ? I'm already using "It's All Text" in Firefox, but I'm looking for something broader.
Also, I've looked at this thread, but it's only solutions for software X, and software Y.
Im trying to control my works server from home (due to the snow) and need to edit part of my monte carlo code so need Xforwarding turned on, have tried to edit /ect/ssh/ssh_config to this effect but Im being told I do not have the permission to save the editted file... I am the only user on the computer and this is a pretty much fresh copy of Ubuntu (using 9.04 instead of 9.10 due to networking issues on my laptop, didnt want to risk it on my desktop)
View 6 Replies View RelatedI need to auto-hide the menu bar but I can't seem to find a place to right click for the menu bar properties. Also, I would like to get rid of some indicators like bluetooth and the mail/chat one but they're locked and can't be unlocked.
View 3 Replies View RelatedI am trying to edit a C++ source file, but gedit wont allow me to save changes to it. Gedit says:
Code:
A file with the same name already exists. Please use a different name.
Right. Of course the file exists, I am trying to edit an existing file.
About the same happens with kate... Kate opens the file in read-only mode.
However, if I edit the same file with nano, editing and saving works. So the problem shouldn't be with access rights. Also "ls" shows rw rights to the file.
What could be the problem? I can use nano, but I would need the syntax highlightind, and other features of a better editor.
And whether I use sudo or not has no effect. The same happens with or without sudo, and I am the owner of the file.
PS. luckily I am still dual booting with Hardy. I can always go back.
Oh and this is a new installation of ubuntu 10.04
I am trying to edit fstab to auto mount a couple of windows shares. I have this but it doesn't work. What am I doing wrong? code...
View 2 Replies View RelatedWhat linux software is available that allows you to edit a PDF file?
View 8 Replies View RelatedInstalled Ubuntu last night on a friends computer. I never work with pdf.files. Is there anything he can use to edit them on Ubuntu. I had to laugh thou when I returned home from work he was playing with Ubuntu, and downloading .exe files, and was frustrated why they were not installing.
View 4 Replies View RelatedWhen I want to edit a line in vim, I type the : followed by a number to go to that line. So for example ":8" would go to line 8. I was wondering if there was a way to omit the : character, so I would only have to type 8 and it would go to 8.
View 7 Replies View Related