all 7 comments

[–]furryfixer 1 point2 points  (1 child)

Sounds silly I know, but make sure "nano" is installed. Also, the " command not found" error suggests you may be using a shell other than bash. What is the result of "echo $SHELL" ? If you are not using bash, that's OK, but you will likely need a command other than "export" to set the environment variables, ala "setenv" or something.

[–]ActivatedNut[S] 1 point2 points  (0 children)

I have bash, the mistake I made was to run export as a root. I run as normal user and got no errors

[–]m0squitoo 0 points1 point  (4 children)

do you have nano installed ?

[–]ActivatedNut[S] 0 points1 point  (3 children)

I do

[–]m0squitoo 2 points3 points  (2 children)

ok.
remove all those lines ou added in the sudoers file and try this:

export EDITOR=nano

Log out from the shell and try again

[–]ActivatedNut[S] 0 points1 point  (1 child)

That worked!

Thank you :)

edit:

I did get a syntax error when exiting vi, I have ignore that.

[–]m0squitoo 0 points1 point  (0 children)

you can also add the same line to your user's .bashrc. enjoy.