nano: Update to 5.9

Message ID 20211008172224.2405-1-matthias.fischer@ipfire.org
State Accepted
Commit 81acbae3f14da9cb2faa69559488ab1435925df1
Headers
Series nano: Update to 5.9 |

Commit Message

Matthias Fischer Oct. 8, 2021, 5:22 p.m. UTC
  For details see:
https://www.nano-editor.org/news.php

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 lfs/nano | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Comments

Adolf Belka Oct. 9, 2021, 10:56 a.m. UTC | #1
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>

On 08/10/2021 19:22, Matthias Fischer wrote:
> For details see:
> https://www.nano-editor.org/news.php
>
> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
> ---
>   lfs/nano | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/lfs/nano b/lfs/nano
> index 3bb7806aa..237dfab20 100644
> --- a/lfs/nano
> +++ b/lfs/nano
> @@ -24,7 +24,7 @@
>   
>   include Config
>   
> -VER        = 5.8
> +VER        = 5.9
>   
>   THISAPP    = nano-$(VER)
>   DL_FILE    = $(THISAPP).tar.xz
> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>   DIR_APP    = $(DIR_SRC)/$(THISAPP)
>   TARGET     = $(DIR_INFO)/$(THISAPP)
>   PROG       = nano
> -PAK_VER    = 38
> +PAK_VER    = 39
>   
>   DEPS       = ""
>   
> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>   
>   $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>   
> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>   
>   install : $(TARGET)
>
  
Jon Murphy Oct. 9, 2021, 9:07 p.m. UTC | #2
All,

Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.

I understand it is an easy installed addon but it seems like it really belongs in "core".

Jon

> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
> 
> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
> 
> On 08/10/2021 19:22, Matthias Fischer wrote:
>> For details see:
>> https://www.nano-editor.org/news.php
>> 
>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>> ---
>>  lfs/nano | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>> 
>> diff --git a/lfs/nano b/lfs/nano
>> index 3bb7806aa..237dfab20 100644
>> --- a/lfs/nano
>> +++ b/lfs/nano
>> @@ -24,7 +24,7 @@
>>    include Config
>>  -VER        = 5.8
>> +VER        = 5.9
>>    THISAPP    = nano-$(VER)
>>  DL_FILE    = $(THISAPP).tar.xz
>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>  DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>  TARGET     = $(DIR_INFO)/$(THISAPP)
>>  PROG       = nano
>> -PAK_VER    = 38
>> +PAK_VER    = 39
>>    DEPS       = ""
>>  @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>    $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>  -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>    install : $(TARGET)
>>
  
Michael Tremer Oct. 10, 2021, 12:55 p.m. UTC | #3
Hello,

We have (or had) a couple of editors and I am quite against shipping them all.

Everyone has their favourites, and there will always be another one.

What is wrong with vim?

-Michael

> On 9 Oct 2021, at 22:07, Jon Murphy <jcmurphy26@gmail.com> wrote:
> 
> All,
> 
> Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.
> 
> I understand it is an easy installed addon but it seems like it really belongs in "core".
> 
> Jon
> 
>> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
>> 
>> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
>> 
>> On 08/10/2021 19:22, Matthias Fischer wrote:
>>> For details see:
>>> https://www.nano-editor.org/news.php
>>> 
>>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>>> ---
>>> lfs/nano | 6 +++---
>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>> 
>>> diff --git a/lfs/nano b/lfs/nano
>>> index 3bb7806aa..237dfab20 100644
>>> --- a/lfs/nano
>>> +++ b/lfs/nano
>>> @@ -24,7 +24,7 @@
>>>   include Config
>>> -VER        = 5.8
>>> +VER        = 5.9
>>>   THISAPP    = nano-$(VER)
>>> DL_FILE    = $(THISAPP).tar.xz
>>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>> TARGET     = $(DIR_INFO)/$(THISAPP)
>>> PROG       = nano
>>> -PAK_VER    = 38
>>> +PAK_VER    = 39
>>>   DEPS       = ""
>>> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>>   $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>>   install : $(TARGET)
>>> 
>
  
Tom Rymes Oct. 10, 2021, 3:15 p.m. UTC | #4
I much prefer nano, as it’s intuitive, so I don’t have to think to use it. If I forget what a command is, it’s at the bottom of the screen. With vim, I have the remember “wait, how do I get into editing mode? And if I want to save a file, how do I do that again? Crap. Better Google a tutorial.”

Sure, if I used it more, it would become second nature, but I don’t, so as more of an admin (and less of a developer) that doesn’t spend lots of time in console editors, nano is nice.

Having said that, I don’t see the need to include it. Whenever I install a new system, I run a pakfire command to install nano, ncftp, telnet (for administering old Cisco IP phones), wlanap, and I forget what else. No big whoop, and how often does one install a new system?

Tom

> On Oct 10, 2021, at 8:55 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
> 
> Hello,
> 
> We have (or had) a couple of editors and I am quite against shipping them all.
> 
> Everyone has their favourites, and there will always be another one.
> 
> What is wrong with vim?
> 
> -Michael
> 
>> On 9 Oct 2021, at 22:07, Jon Murphy <jcmurphy26@gmail.com> wrote:
>> 
>> All,
>> 
>> Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.
>> 
>> I understand it is an easy installed addon but it seems like it really belongs in "core".
>> 
>> Jon
>> 
>>>> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>> 
>>> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
>>> 
>>> On 08/10/2021 19:22, Matthias Fischer wrote:
>>>> For details see:
>>>> https://www.nano-editor.org/news.php
>>>> 
>>>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>>>> ---
>>>> lfs/nano | 6 +++---
>>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>> 
>>>> diff --git a/lfs/nano b/lfs/nano
>>>> index 3bb7806aa..237dfab20 100644
>>>> --- a/lfs/nano
>>>> +++ b/lfs/nano
>>>> @@ -24,7 +24,7 @@
>>>>  include Config
>>>> -VER        = 5.8
>>>> +VER        = 5.9
>>>>  THISAPP    = nano-$(VER)
>>>> DL_FILE    = $(THISAPP).tar.xz
>>>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>>> TARGET     = $(DIR_INFO)/$(THISAPP)
>>>> PROG       = nano
>>>> -PAK_VER    = 38
>>>> +PAK_VER    = 39
>>>>  DEPS       = ""
>>>> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>>>  $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>>> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>>>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>>>  install : $(TARGET)
>>>> 
>> 
>
  
Jon Murphy Oct. 10, 2021, 7:42 p.m. UTC | #5
I’m not sure nano is "the" answer though I do like it.  Just anything besides vim.

Vim is fine for developers.  It is the non-developers that struggle.  This article explains it pretty well and it includes my struggles to exit!

https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/ <https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/>

Q: How do you generate a random string?
A: Put a user in front of vi, and tell them to exit


> On Oct 10, 2021, at 7:55 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
> 
> Hello,
> 
> We have (or had) a couple of editors and I am quite against shipping them all.
> 
> Everyone has their favourites, and there will always be another one.
> 
> What is wrong with vim?
> 
> -Michael
> 
>> On 9 Oct 2021, at 22:07, Jon Murphy <jcmurphy26@gmail.com> wrote:
>> 
>> All,
>> 
>> Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.
>> 
>> I understand it is an easy installed addon but it seems like it really belongs in "core".
>> 
>> Jon
>> 
>>> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>> 
>>> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
>>> 
>>> On 08/10/2021 19:22, Matthias Fischer wrote:
>>>> For details see:
>>>> https://www.nano-editor.org/news.php
>>>> 
>>>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>>>> ---
>>>> lfs/nano | 6 +++---
>>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>> 
>>>> diff --git a/lfs/nano b/lfs/nano
>>>> index 3bb7806aa..237dfab20 100644
>>>> --- a/lfs/nano
>>>> +++ b/lfs/nano
>>>> @@ -24,7 +24,7 @@
>>>>  include Config
>>>> -VER        = 5.8
>>>> +VER        = 5.9
>>>>  THISAPP    = nano-$(VER)
>>>> DL_FILE    = $(THISAPP).tar.xz
>>>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>>> TARGET     = $(DIR_INFO)/$(THISAPP)
>>>> PROG       = nano
>>>> -PAK_VER    = 38
>>>> +PAK_VER    = 39
>>>>  DEPS       = ""
>>>> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>>>  $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>>> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>>>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>>>  install : $(TARGET)
>>>> 
>> 
>
  
Michael Tremer Oct. 11, 2021, 1:05 p.m. UTC | #6
Hello,

> On 10 Oct 2021, at 16:15, Tom Rymes <tom@rymes.net> wrote:
> 
> I much prefer nano, as it’s intuitive, so I don’t have to think to use it. If I forget what a command is, it’s at the bottom of the screen. With vim, I have the remember “wait, how do I get into editing mode? And if I want to save a file, how do I do that again? Crap. Better Google a tutorial.”

Funny. I feel like that about nano. Impossible to use because it has loads of weird keyboard shortcuts.

I use VIM without thinking about it :)

> Sure, if I used it more, it would become second nature, but I don’t, so as more of an admin (and less of a developer) that doesn’t spend lots of time in console editors, nano is nice.
> 
> Having said that, I don’t see the need to include it. Whenever I install a new system, I run a pakfire command to install nano, ncftp, telnet (for administering old Cisco IP phones), wlanap, and I forget what else. No big whoop, and how often does one install a new system?

Ncftp? Is FTP still alive anywhere?

-Michael

> Tom
> 
>> On Oct 10, 2021, at 8:55 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
>> 
>> Hello,
>> 
>> We have (or had) a couple of editors and I am quite against shipping them all.
>> 
>> Everyone has their favourites, and there will always be another one.
>> 
>> What is wrong with vim?
>> 
>> -Michael
>> 
>>> On 9 Oct 2021, at 22:07, Jon Murphy <jcmurphy26@gmail.com> wrote:
>>> 
>>> All,
>>> 
>>> Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.
>>> 
>>> I understand it is an easy installed addon but it seems like it really belongs in "core".
>>> 
>>> Jon
>>> 
>>>>> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>>> 
>>>> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
>>>> 
>>>> On 08/10/2021 19:22, Matthias Fischer wrote:
>>>>> For details see:
>>>>> https://www.nano-editor.org/news.php
>>>>> 
>>>>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>>>>> ---
>>>>> lfs/nano | 6 +++---
>>>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>>> 
>>>>> diff --git a/lfs/nano b/lfs/nano
>>>>> index 3bb7806aa..237dfab20 100644
>>>>> --- a/lfs/nano
>>>>> +++ b/lfs/nano
>>>>> @@ -24,7 +24,7 @@
>>>>> include Config
>>>>> -VER        = 5.8
>>>>> +VER        = 5.9
>>>>> THISAPP    = nano-$(VER)
>>>>> DL_FILE    = $(THISAPP).tar.xz
>>>>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>>>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>>>> TARGET     = $(DIR_INFO)/$(THISAPP)
>>>>> PROG       = nano
>>>>> -PAK_VER    = 38
>>>>> +PAK_VER    = 39
>>>>> DEPS       = ""
>>>>> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>>>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>>>> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>>>>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>>>> install : $(TARGET)
>>>>> 
>>> 
>>
  
Michael Tremer Oct. 11, 2021, 1:07 p.m. UTC | #7
Hello,

> On 10 Oct 2021, at 20:42, Jon Murphy <jcmurphy26@gmail.com> wrote:
> 
> I’m not sure nano is "the" answer though I do like it.  Just anything besides vim.
> 
> Vim is fine for developers.  It is the non-developers that struggle.  This article explains it pretty well and it includes my struggles to exit!
> 
> https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
> 
> Q: How do you generate a random string?
> A: Put a user in front of vi, and tell them to exit

LOL. Good one.

I wouldn’t be against adding nano to the core distribution, although I would draw the line there and say that Joe is then out :)

However, I wouldn’t want to make it the default editor if that is okay.

-Michael

> 
> 
>> On Oct 10, 2021, at 7:55 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
>> 
>> Hello,
>> 
>> We have (or had) a couple of editors and I am quite against shipping them all.
>> 
>> Everyone has their favourites, and there will always be another one.
>> 
>> What is wrong with vim?
>> 
>> -Michael
>> 
>>> On 9 Oct 2021, at 22:07, Jon Murphy <jcmurphy26@gmail.com> wrote:
>>> 
>>> All,
>>> 
>>> Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.
>>> 
>>> I understand it is an easy installed addon but it seems like it really belongs in "core".
>>> 
>>> Jon
>>> 
>>>> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>>> 
>>>> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
>>>> 
>>>> On 08/10/2021 19:22, Matthias Fischer wrote:
>>>>> For details see:
>>>>> https://www.nano-editor.org/news.php
>>>>> 
>>>>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>>>>> ---
>>>>> lfs/nano | 6 +++---
>>>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>>> 
>>>>> diff --git a/lfs/nano b/lfs/nano
>>>>> index 3bb7806aa..237dfab20 100644
>>>>> --- a/lfs/nano
>>>>> +++ b/lfs/nano
>>>>> @@ -24,7 +24,7 @@
>>>>>  include Config
>>>>> -VER        = 5.8
>>>>> +VER        = 5.9
>>>>>  THISAPP    = nano-$(VER)
>>>>> DL_FILE    = $(THISAPP).tar.xz
>>>>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>>>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>>>> TARGET     = $(DIR_INFO)/$(THISAPP)
>>>>> PROG       = nano
>>>>> -PAK_VER    = 38
>>>>> +PAK_VER    = 39
>>>>>  DEPS       = ""
>>>>> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>>>>  $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>>>> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>>>>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>>>>  install : $(TARGET)
>>>>> 
>>> 
>> 
>
  
Jon Murphy Oct. 11, 2021, 4:14 p.m. UTC | #8
Vim as default is fine!

The only default editor setting I know of is in fcron. 

# Location of the default editor for "fcrontab -e"
#editor     =   /usr/bin/vi
editor      =   /usr/bin/nano
 Is there another?



> On Oct 11, 2021, at 8:07 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
> 
> Hello,
> 
>> On 10 Oct 2021, at 20:42, Jon Murphy <jcmurphy26@gmail.com> wrote:
>> 
>> I’m not sure nano is "the" answer though I do like it.  Just anything besides vim.
>> 
>> Vim is fine for developers.  It is the non-developers that struggle.  This article explains it pretty well and it includes my struggles to exit!
>> 
>> https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
>> 
>> Q: How do you generate a random string?
>> A: Put a user in front of vi, and tell them to exit
> 
> LOL. Good one.
> 
> I wouldn’t be against adding nano to the core distribution, although I would draw the line there and say that Joe is then out :)
> 
> However, I wouldn’t want to make it the default editor if that is okay.
> 
> -Michael
> 
>> 
>> 
>>> On Oct 10, 2021, at 7:55 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
>>> 
>>> Hello,
>>> 
>>> We have (or had) a couple of editors and I am quite against shipping them all.
>>> 
>>> Everyone has their favourites, and there will always be another one.
>>> 
>>> What is wrong with vim?
>>> 
>>> -Michael
>>> 
>>>> On 9 Oct 2021, at 22:07, Jon Murphy <jcmurphy26@gmail.com> wrote:
>>>> 
>>>> All,
>>>> 
>>>> Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.
>>>> 
>>>> I understand it is an easy installed addon but it seems like it really belongs in "core".
>>>> 
>>>> Jon
>>>> 
>>>>> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>>>> 
>>>>> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
>>>>> 
>>>>> On 08/10/2021 19:22, Matthias Fischer wrote:
>>>>>> For details see:
>>>>>> https://www.nano-editor.org/news.php
>>>>>> 
>>>>>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>>>>>> ---
>>>>>> lfs/nano | 6 +++---
>>>>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>>>> 
>>>>>> diff --git a/lfs/nano b/lfs/nano
>>>>>> index 3bb7806aa..237dfab20 100644
>>>>>> --- a/lfs/nano
>>>>>> +++ b/lfs/nano
>>>>>> @@ -24,7 +24,7 @@
>>>>>> include Config
>>>>>> -VER        = 5.8
>>>>>> +VER        = 5.9
>>>>>> THISAPP    = nano-$(VER)
>>>>>> DL_FILE    = $(THISAPP).tar.xz
>>>>>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>>>>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>>>>> TARGET     = $(DIR_INFO)/$(THISAPP)
>>>>>> PROG       = nano
>>>>>> -PAK_VER    = 38
>>>>>> +PAK_VER    = 39
>>>>>> DEPS       = ""
>>>>>> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>>>>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>>>>> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>>>>>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>>>>> install : $(TARGET)
>>>>>> 
>>>> 
>>> 
>> 
>
  
Adolf Belka Oct. 11, 2021, 8:57 p.m. UTC | #9
Hi Jon,

On 11/10/2021 18:14, Jon Murphy wrote:
> Vim as default is fine!
>
> The only default editor setting I know of is in fcron.
>
> # Location of the default editor for "fcrontab -e"
> #editor     =   /usr/bin/vi
> editor      =   /usr/bin/nano
>  Is there another?
>
If you want to edit the sudoers file you have to use the visudo command which by default uses vi.

You can use nano with visudo by running

# EDITOR=nano visudo

and to change the editor permanently add the following into the sudoers file.

# Reset environment by default
Defaults      env_reset
# Set default EDITOR to nano, and do not allow visudo to use EDITOR/VISUAL.
Defaults      editor=/usr/bin/nano, !env_editor

Regards,

Adolf.

>
>
>> On Oct 11, 2021, at 8:07 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
>>
>> Hello,
>>
>>> On 10 Oct 2021, at 20:42, Jon Murphy <jcmurphy26@gmail.com> wrote:
>>>
>>> I’m not sure nano is "the" answer though I do like it.  Just anything besides vim.
>>>
>>> Vim is fine for developers.  It is the non-developers that struggle.  This article explains it pretty well and it includes my struggles to exit!
>>>
>>> https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
>>>
>>> Q: How do you generate a random string?
>>> A: Put a user in front of vi, and tell them to exit
>>
>> LOL. Good one.
>>
>> I wouldn’t be against adding nano to the core distribution, although I would draw the line there and say that Joe is then out :)
>>
>> However, I wouldn’t want to make it the default editor if that is okay.
>>
>> -Michael
>>
>>>
>>>
>>>> On Oct 10, 2021, at 7:55 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
>>>>
>>>> Hello,
>>>>
>>>> We have (or had) a couple of editors and I am quite against shipping them all.
>>>>
>>>> Everyone has their favourites, and there will always be another one.
>>>>
>>>> What is wrong with vim?
>>>>
>>>> -Michael
>>>>
>>>>> On 9 Oct 2021, at 22:07, Jon Murphy <jcmurphy26@gmail.com> wrote:
>>>>>
>>>>> All,
>>>>>
>>>>> Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.
>>>>>
>>>>> I understand it is an easy installed addon but it seems like it really belongs in "core".
>>>>>
>>>>> Jon
>>>>>
>>>>>> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>>>>>
>>>>>> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
>>>>>>
>>>>>> On 08/10/2021 19:22, Matthias Fischer wrote:
>>>>>>> For details see:
>>>>>>> https://www.nano-editor.org/news.php
>>>>>>>
>>>>>>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>>>>>>> ---
>>>>>>> lfs/nano | 6 +++---
>>>>>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>>>>>
>>>>>>> diff --git a/lfs/nano b/lfs/nano
>>>>>>> index 3bb7806aa..237dfab20 100644
>>>>>>> --- a/lfs/nano
>>>>>>> +++ b/lfs/nano
>>>>>>> @@ -24,7 +24,7 @@
>>>>>>> include Config
>>>>>>> -VER        = 5.8
>>>>>>> +VER        = 5.9
>>>>>>> THISAPP    = nano-$(VER)
>>>>>>> DL_FILE    = $(THISAPP).tar.xz
>>>>>>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>>>>>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>>>>>> TARGET     = $(DIR_INFO)/$(THISAPP)
>>>>>>> PROG       = nano
>>>>>>> -PAK_VER    = 38
>>>>>>> +PAK_VER    = 39
>>>>>>> DEPS       = ""
>>>>>>> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>>>>>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>>>>>> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>>>>>>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>>>>>> install : $(TARGET)
>>>>>>>
>>>>>
>>>>
>>>
>>
>
  
Michael Tremer Oct. 12, 2021, 9:40 a.m. UTC | #10
Hello,

visudo launching nano would really surprise me :)

-Michael

> On 11 Oct 2021, at 21:57, Adolf Belka <adolf.belka@ipfire.org> wrote:
> 
> Hi Jon,
> 
> On 11/10/2021 18:14, Jon Murphy wrote:
>> Vim as default is fine!
>> 
>> The only default editor setting I know of is in fcron.
>> 
>> # Location of the default editor for "fcrontab -e"
>> #editor     =   /usr/bin/vi
>> editor      =   /usr/bin/nano
>>  Is there another?
>> 
> If you want to edit the sudoers file you have to use the visudo command which by default uses vi.
> 
> You can use nano with visudo by running
> 
> # EDITOR=nano visudo
> 
> and to change the editor permanently add the following into the sudoers file.
> 
> # Reset environment by default
> Defaults      env_reset
> # Set default EDITOR to nano, and do not allow visudo to use EDITOR/VISUAL.
> Defaults      editor=/usr/bin/nano, !env_editor
> 
> Regards,
> 
> Adolf.
> 
>> 
>> 
>>> On Oct 11, 2021, at 8:07 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
>>> 
>>> Hello,
>>> 
>>>> On 10 Oct 2021, at 20:42, Jon Murphy <jcmurphy26@gmail.com> wrote:
>>>> 
>>>> I’m not sure nano is "the" answer though I do like it.  Just anything besides vim.
>>>> 
>>>> Vim is fine for developers.  It is the non-developers that struggle.  This article explains it pretty well and it includes my struggles to exit!
>>>> 
>>>> https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
>>>> 
>>>> Q: How do you generate a random string?
>>>> A: Put a user in front of vi, and tell them to exit
>>> 
>>> LOL. Good one.
>>> 
>>> I wouldn’t be against adding nano to the core distribution, although I would draw the line there and say that Joe is then out :)
>>> 
>>> However, I wouldn’t want to make it the default editor if that is okay.
>>> 
>>> -Michael
>>> 
>>>> 
>>>> 
>>>>> On Oct 10, 2021, at 7:55 AM, Michael Tremer <michael.tremer@ipfire.org> wrote:
>>>>> 
>>>>> Hello,
>>>>> 
>>>>> We have (or had) a couple of editors and I am quite against shipping them all.
>>>>> 
>>>>> Everyone has their favourites, and there will always be another one.
>>>>> 
>>>>> What is wrong with vim?
>>>>> 
>>>>> -Michael
>>>>> 
>>>>>> On 9 Oct 2021, at 22:07, Jon Murphy <jcmurphy26@gmail.com> wrote:
>>>>>> 
>>>>>> All,
>>>>>> 
>>>>>> Is it possible to move `nano` from addon to core?  It is SOOOOO much easier to use than vim.
>>>>>> 
>>>>>> I understand it is an easy installed addon but it seems like it really belongs in "core".
>>>>>> 
>>>>>> Jon
>>>>>> 
>>>>>>> On Oct 9, 2021, at 5:56 AM, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>>>>>> 
>>>>>>> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
>>>>>>> 
>>>>>>> On 08/10/2021 19:22, Matthias Fischer wrote:
>>>>>>>> For details see:
>>>>>>>> https://www.nano-editor.org/news.php
>>>>>>>> 
>>>>>>>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>>>>>>>> ---
>>>>>>>> lfs/nano | 6 +++---
>>>>>>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>>>>>> 
>>>>>>>> diff --git a/lfs/nano b/lfs/nano
>>>>>>>> index 3bb7806aa..237dfab20 100644
>>>>>>>> --- a/lfs/nano
>>>>>>>> +++ b/lfs/nano
>>>>>>>> @@ -24,7 +24,7 @@
>>>>>>>> include Config
>>>>>>>> -VER        = 5.8
>>>>>>>> +VER        = 5.9
>>>>>>>> THISAPP    = nano-$(VER)
>>>>>>>> DL_FILE    = $(THISAPP).tar.xz
>>>>>>>> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>>>>>>>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>>>>>>>> TARGET     = $(DIR_INFO)/$(THISAPP)
>>>>>>>> PROG       = nano
>>>>>>>> -PAK_VER    = 38
>>>>>>>> +PAK_VER    = 39
>>>>>>>> DEPS       = ""
>>>>>>>> @@ -44,7 +44,7 @@ objects = $(DL_FILE)
>>>>>>>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>>>>>>> -$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
>>>>>>>> +$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
>>>>>>>> install : $(TARGET)
>>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>>
  

Patch

diff --git a/lfs/nano b/lfs/nano
index 3bb7806aa..237dfab20 100644
--- a/lfs/nano
+++ b/lfs/nano
@@ -24,7 +24,7 @@ 
 
 include Config
 
-VER        = 5.8
+VER        = 5.9
 
 THISAPP    = nano-$(VER)
 DL_FILE    = $(THISAPP).tar.xz
@@ -32,7 +32,7 @@  DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = nano
-PAK_VER    = 38
+PAK_VER    = 39
 
 DEPS       = ""
 
@@ -44,7 +44,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = d2249e3dd108c830df00efd7c1b79d86
+$(DL_FILE)_MD5 = 24b67a7a2e731d3a5ec6d154b4521d08
 
 install : $(TARGET)