Install the nano Editor on the VMware vMA 5

by Bob Plankers on January 21, 2012 · 2 comments

in Virtualization

The VMware vSphere Management Assistant (vMA) is a handy appliance for interacting with your environment via the Linux command line. I use it a lot, and I’m starting to get more of my team to use it. The problem is that it only ships with the vi text editor, which, described politely, is sort of arcane. Being a UNIX guy I’m used to it, but for others that just want to edit a file it’s overkill.

For those situations I like nano, a simple open source editor. To install it on the vMA issue the command:

sudo zypper install nano

If you’re prompted for a password use the one you set for vi-admin (or whoever you’re logged into the vMA as).

I got a bunch of errors when I did this:

File './suse/x86_64/nano-2.2.6-3.1.x86_64.rpm' not found on 
medium ''

as if has a mirror that’s hosed, but I kept retrying (r) when it prompted and after a few times it succeeded. A little sketchy, but for my purposes it works.

And, of course, type ‘nano’ to fire it up. “nano /path/to/filename” to open a file, Ctrl-X to exit & prompt to save, Ctrl-O to save, Ctrl-W to search, Ctrl-K to cut, Ctrl-U to paste (cut first, then paste again for copy).

{ 1 comment }

Comments on this entry are closed.

{ 1 trackback }

Previous post:

Next post: