I tried to install nano using pkg_add in the terminal, but pkg_add is apparently not installed. I can't find nano in the package area of Opnsense. I know that Vim is installed, but I don't understand it and don't use it.
pkg_* was replaced by pkg (formerly known as pkgng) in FreeBSD 10.0 about 11 years ago. So it's "pkg install nano". If nano is present in the OPNsense repository which I have not checked right now.
Learning vi basics is still worthwhile, IMHO. It's the only default editor across all current Unix systems.
Quote from: Patrick M. Hausen on January 05, 2025, 01:47:26 PMpkg_* was replaced by pkg (formerly known as pkgng) in FreeBSD 10.0 about 11 years ago. So it's "pkg install nano". If nano is present in the OPNsense repository which I have not checked right now.
Learning vi basics is still worthwhile, IMHO. It's the only default editor across all current Unix systems.
I am logged in. Yes it is in the OPN repo.
Thanks. I looked up how to use Vim and found that it is quite easy to use. What always aggravated me was that I couldn't ever remember how to get out of Vim whenever I accidentally started it. I am going to install nano anyway, now that I know how and that it is available in Opnsense.
How do I bring nano inside the build itself? so that upon fresh install of dvd/serial I get nano preinstalled in there?
Quote from: vivekmauli14 on January 10, 2025, 07:45:28 AMHow do I bring nano inside the build itself? so that upon fresh install of dvd/serial I get nano preinstalled in there?
By building your own image. Start here: https://github.com/opnsense/tools