I followed the steps from here >> http://securit.se/en/2012/03/kompilera-reaver-ubuntu-12-04/
everything was going good till I reached this point.
after I found the following lines in the file
CFLAGS ?= -g -W -Wall -Werror -O3
and edited it to make it like this >>
CFLAGS ?= -g -W -Wall -O3
But then I am supposed to save the file, how?. when I close the terminal I was expecting them to prompt 'save file before exit' but it does not, theres just 2 options 'cancel' and 'close terminal'
HOW DO I SAVE?
In short, press Esc to get out of insert mode, and then do
:wq
to write the file and quit.But in general you don't have to use vi - when you see it in instructions on the web, use
nano
(edit in terminal) orgedit
(GUI editor) instead. When you typed:You were launching the vi editor to edit the file
common.mak
. Instead you could do:or
to edit the file in an editor that doesn't require learning to do simple things like saving a file.
Or if you want to learn vi then type
vimtutor
at the command line - that will get you to the point where you can be reasonably efficient with vi. If you find you like vi and want to learn lots more then read this post.use
sudo gedit common.mak
and save it. I have done it in my video http://www.youtube.com/watch?v=apoaHf8tPVk