News for hackers. Stuff that matters.
Re:GNU nano is my editor of choice by brundolf on Friday August 13, 2021 @06:09PM (#28175251)
Every Unix machine (Mac or Linux) that I've ever tried to use nano on has had it preinstalled. I'm sure not all of them have it preinstalled, but it's common at least in mainstream distros
Re:GNU nano is my editor of choice by klyrs on Friday August 13, 2021 @06:24PM (#28175446)
In the late aughts, I found myself at the keyboard of a Solaris system that only had ed. I was there to get the network configured and it didn't have an optical drive, so there was no way but forward.

More recently, I've found myself inside a container which didn't have any editors. I got the job done with echo, head and tail. Delightful.

Re:GNU nano is my editor of choice by trey-jones on Friday August 13, 2021 @06:38PM (#28175641)
Removing vi from your container image is rude, IMO.
Re:GNU nano is my editor of choice by LAC-Tech on Saturday August 14, 2021 @01:31AM (#28178294)
How do you even get a container like that working?

Even alpine based images have a version of vi (it comes with busybox)

Re:GNU nano is my editor of choice by relax88 on Friday August 13, 2021 @06:15PM (#28175326)
If you’ve never logged into a Linux machine without nano installed, then you probably haven’t logged into that many flavours of Linux machine.

I agree this is pretty much a non issue for the average developer, but those of us who work on network infrastructure, as red-team hackers, or do any work on embedded systems can attest to how much of a pain it would be to not know how to use vi/vim.

Re:GNU nano is my editor of choice by koolba on Friday August 13, 2021 @07:04PM (#28175912)
This is even more common in the world of containers where “nice to have just for debugging” get omitted.

You haven’t lived till you have to edit using only sed.

Re:GNU nano is my editor of choice by KronisLV on Friday August 13, 2021 @07:20PM (#28176061)
There is definitely something to be said about having minimalistic container images for security and smaller sizes...

But not having a basic text editor that is probably a few hundred KB feels a bit silly, especially given how many environment dependencies usually get packaged into containers anyways.

That's like not including any sort of a shell in your container and wondering why people are having troubles with debugging.

Personally, i think that just basing container images on something like Alpine, Debian or even Ubuntu images is good enough because those are stripped down enough already for the most part.

Re:GNU nano is my editor of choice by koolba on Friday August 13, 2021 @10:50PM (#28177396)
Of course you add a sane editor after it happens. But that first time…
Re:GNU nano is my editor of choice by trissylegs on Friday August 13, 2021 @07:37PM (#28176208)
I did build a arch Linux install using cat <<EOF, grep and sed. But golly it gets tedious
Re:GNU nano is my editor of choice by relax88 on Friday August 13, 2021 @09:00PM (#28176766)
Sounds like pain, but also a means to getting better at sed.
Re:GNU nano is my editor of choice by bakul on Friday August 13, 2021 @10:16PM (#28177206)
ed.
Re:GNU nano is my editor of choice by correct_horse on Friday August 13, 2021 @06:27PM (#28175494)
Most non-copyleft (permissive free software and proprietary software) tries to stay as far away as possible from the GPLv3 license. Because of this, macOS ships gnu nano 2.0.6 whereas the latest is 5.8. FreeBSD doesn't even have nano installed by default.
Re:GNU nano is my editor of choice by vermaden on Saturday August 14, 2021 @04:12AM (#28178984)
FreeBSD has `/usr/bin/ee` (Easy Editor) so it does not need GNU Nano. But you can install GNU Nano with:

    # pkg install nano
Re:GNU nano is my editor of choice by rcoveson on Friday August 13, 2021 @07:16PM (#28176027)
Here's a good example: The article's author is actually the security team chair of a lightweight Linux distro called Alpine Linux. A base installation of Alpine includes BusyBox vi but no nano.