Anyone know what is the default text editor for Ubuntu Server 22.04 LTS with minimal installation?
I tried vim, nano, editor, gedit. none of the above is working.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I had the same question, and I'm a little scared to report that it appears there isn't an editor installed with the Ubuntu 22.04 LTS minimal server install...
Ubuntu (including the minimal server install) ships with a utility to set the default editor (aptly named select-editor; see the Ubuntu select-editor Manpage). Honestly, it's kind of ironic, given the following, but... *shrugs*
I ran select-editor on my fresh minimal server install and got:
user@server:/$ select-editor update-alternatives: error: no alternatives for editor user@server:/$
So I installed nano, and ran it again to see what would happen:
user@server:/$ select-editor user@server:/$
It seems that, now that there's only one editor installed, it ran without any further input and threw no errors.
To sate my growing curiosity, I installed vim as well and ran select-editor again:
user@server:/$ select-editor Select an editor. To change later, run 'select-editor'. 1. /bin/nano <---- easiest 2. /usr/bin/vim.basic Choose 1-2 :
So all I can conclude from this is that the Ubuntu 22.04 LTS minimal server install does not ship with a text editor. *shrugs again; shakes head in disbelief*