Saturday, April 27, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 5643  / 3 Years ago, sat, august 14, 2021, 4:18:56

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?


More From » installation

 Answers
3

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) or gedit (GUI editor) instead. When you typed:



vi common.mak


You were launching the vi editor to edit the file common.mak. Instead you could do:



nano common.mak


or



gedit common.mak


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.


[#38626] Sunday, August 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
tonhorn questions
Tue, May 10, 22, 12:01, 2 Years ago
Sat, Dec 18, 21, 06:23, 2 Years ago
Thu, Jun 16, 22, 04:03, 2 Years ago
Fri, Apr 1, 22, 05:23, 2 Years ago
;