Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Question from a beginner coming from Linux: why can not I install nano editor?

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    12 Posts 4 Posters 4.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      I have nano installed on my 2.2.6 install, I really don't see how installing nano on 2.3 would be any sort of issue.. But not playing with 2.3 as of yet so can not test it out for you..  But guess I could grab the latest snap and fire up a vm to get nano working on it..

      Just add the freebsd repository, add nano, then remove the repo.. is what I would do..  vi and ee are both on pfsense, but if your use to nano your use to nano ;) As to moving file on and off that is just a not really practical suggestion if you ask me..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      1 Reply Last reply Reply Quote 0
      • S
        Sopalajo de Arrierez
        last edited by

        @johnpoz:

        Just add the freebsd repository, add nano, then remove the repo..

        Fine then! I will try, but… I still need the info for adding the FreeBSD repository.
        Is it in the docs? I have not been able to find it neither. The link would be welcome.  :)

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          don't really need to add the repository

          pkg add http://pkg.freebsd.org/freebsd:10:x86:64/latest/All/nano-2.4.3.txz

          That should do it

          [2.3-ALPHA][root@pfSense.localdomain]/root: pkg info nano
          nano-2.4.3
          Name          : nano
          Version        : 2.4.3
          Installed on  : Sat Jan  2 20:21:28 CST 2016
          Origin        : editors/nano
          Architecture  : freebsd:10:x86:64
          Prefix        : /usr/local
          Categories    : editors
          Licenses      : GPLv3
          Maintainer    : danilo@FreeBSD.org
          WWW            : http://www.nano-editor.org/
          Comment        : Nano's ANOther editor, an enhanced free Pico clone
          Options        :
                  DOCS          : on
                  EXAMPLES      : on
                  NLS            : on
          Shared Libs required:
                  libintl.so.8
          Annotations    :
          Flat size      : 1.83MiB
          Description    :
          nano is a small, free and friendly editor which aims to replace
          Pico, the default editor included in the non-free Pine package.
          Rather than just copying Pico's look and feel, nano also implements
          some missing (or disabled by default) features in Pico, such as
          "search and replace" and "goto line number".

          WWW: http://www.nano-editor.org/
          [2.3-ALPHA][root@pfSense.localdomain]/root:

          your on 64 bit version of pfsense right?  If not the 32bit would be here http://pkg.freebsd.org/freebsd:10:x86:32/latest/All/nano-2.4.3.txz

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • S
            Sopalajo de Arrierez
            last edited by

            Wonderful, JohnPoz!
            The most important part for me was learning that there are aditional packages at:
            http://pkg.freebsd.org/freebsd:10:x86:64/latest/All/

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              I wouldn't go all crazy like installing stuff!!!  They did limit it to their repository for a reason!!!

              But something as simple an editor I wouldn't think there be much of an issue..  There was a thread a while back were someone thought it a good idea to upgrade php for example…  Broke the gui good ;)

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • S
                Sopalajo de Arrierez
                last edited by

                @johnpoz:

                I wouldn't go all crazy like installing stuff!!!  They did limit it to their repository for a reason!!!

                I will remember. I was just needing for bwm-ng and some minor tools for some scripting.

                1 Reply Last reply Reply Quote 0
                • rbgargaR
                  rbgarga Developer Netgate Administrator
                  last edited by

                  @Sopalajo:

                  @johnpoz:

                  I wouldn't go all crazy like installing stuff!!!  They did limit it to their repository for a reason!!!

                  I will remember. I was just needing for bwm-ng and some minor tools for some scripting.

                  If you set FreeBSD pkg repo and for any reason a package from FreeBSD repo overwrite same package from pfSense repo you can end up with a broken system. pfSense is designed to work with pfSense repo and no other one, keep it in mind, you are on your own.

                  Out of curiosity, why do you need an editor? It's valid to remember that vi is available anyway

                  Renato Botelho

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sopalajo de Arrierez
                    last edited by

                    @Renato:

                    Out of curiosity, why do you need an editor?

                    Coming from balance loading on Zentyal over Linux, I developed in the past some simple shell scripts for bandwith measuring that I would like to implement on pfSense. As long as they are based on bwm-ng , I think they will work.
                    By the way, as long as I get more used to FreeBSD, I will migrate my scripts or use another specific bandwith tool.

                    Anyway, is it me or the common feeling in this forum is the "Don't edit any file" idea?

                    @Renato:

                    It's valid to remember that vi is available anyway

                    The most common answer applies here:
                    1.- I am used to Nano Editor.
                    2.- I hate VI Editor.

                    1 Reply Last reply Reply Quote 0
                    • rbgargaR
                      rbgarga Developer Netgate Administrator
                      last edited by

                      @Sopalajo:

                      @Renato:

                      Out of curiosity, why do you need an editor?

                      Coming from balance loading on Zentyal over Linux, I developed in the past some simple shell scripts for bandwith measuring that I would like to implement on pfSense. As long as they are based on bwm-ng , I think they will work.
                      By the way, as long as I get more used to FreeBSD, I will migrate my scripts or use another specific bandwith tool.

                      Anyway, is it me or the common feeling in this forum is the "Don't edit any file" idea?

                      It's not the common feeling of this forum, it's most like the design of pfSense. It is not a regular operating system that you install and build things inside, it's a product that is managed by a web interface configurator. You have access to shell and you can do whatever you want, but we feel that is always good to warn users that if you touch things, you can break it or you can lose the changes on next upgrade.

                      @Renato:

                      It's valid to remember that vi is available anyway
                      The most common answer applies here:
                      1.- I am used to Nano Editor.
                      2.- I hate VI Editor.

                      You can always edit files on your computer and send them to pfSense using scp, or, you can edit files using web interface following menus Diagnostics -> Edit file. Those 2 options are better than enable an additional repo and install packages from there, since this operation can end up bad

                      Renato Botelho

                      1 Reply Last reply Reply Quote 0
                      • rbgargaR
                        rbgarga Developer Netgate Administrator
                        last edited by

                        @Sopalajo:

                        @Renato:

                        Out of curiosity, why do you need an editor?

                        Coming from balance loading on Zentyal over Linux, I developed in the past some simple shell scripts for bandwith measuring that I would like to implement on pfSense. As long as they are based on bwm-ng , I think they will work.
                        By the way, as long as I get more used to FreeBSD, I will migrate my scripts or use another specific bandwith tool.

                        Anyway, is it me or the common feeling in this forum is the "Don't edit any file" idea?

                        @Renato:

                        It's valid to remember that vi is available anyway

                        The most common answer applies here:
                        1.- I am used to Nano Editor.
                        2.- I hate VI Editor.

                        Oh, and I also forgot to mention, for people that don't like VI editor, Easy Editor (ee) is available on pfSense

                        Renato Botelho

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.