OPNsense Forum

English Forums => General Discussion => Topic started by: battle on January 05, 2025, 12:45:49 PM

Title: How to install nano on Opnsense BSD
Post by: battle on January 05, 2025, 12:45:49 PM
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.
Title: Re: How to install nano on Opnsense BSD
Post by: Patrick M. Hausen on January 05, 2025, 01:47:26 PM
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.
Title: Re: How to install nano on Opnsense BSD
Post by: cookiemonster on January 05, 2025, 03:21:21 PM
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.
Title: Re: How to install nano on Opnsense BSD
Post by: battle on January 05, 2025, 07:22:21 PM
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.
Title: Re: How to install nano on Opnsense BSD
Post by: vivekmauli14 on January 10, 2025, 07:45:28 AM
How do I bring nano inside the build itself? so that upon fresh install of dvd/serial I get nano preinstalled in there?
Title: Re: How to install nano on Opnsense BSD
Post by: Patrick M. Hausen on January 10, 2025, 09:03:18 AM
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