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

    VI broken?

    General pfSense Questions
    5
    11
    7.0k
    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.
    • a-a-ronA
      a-a-ron
      last edited by

      Why does VI not work properly? I press i to insert a line of text, and nothing happens. None of the standard VI commands (except exit) seem to work?

      is there a way to install a working text editor like nano?

      Also, I've found a number of lines in my dmesg that need addressing (should be simple enough with a properly working text editor)

      wpi: You need to read the LICENSE file in /usr/share/doc/legal/intel_wpi/.
      wpi: If you agree with the license, set legal.intel_wpi.license_ack=1 in /boot/loader.conf.
      module_register_init: MOD_LOAD (wpi_fw, 0xc09649d0, 0) error 1
      ipw_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
      ipw_bss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
      module_register_init: MOD_LOAD (ipw_bss_fw, 0xc076fa30, 0) error 1
      ipw_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
      ipw_ibss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
      module_register_init: MOD_LOAD (ipw_ibss_fw, 0xc076faf0, 0) error 1
      ipw_monitor: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
      ipw_monitor: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
      module_register_init: MOD_LOAD (ipw_monitor_fw, 0xc076fbb0, 0) error 1

      Will these keep after a firmware update, or will I need to re-agree to the licences every time?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You can use ee which is already installed. You can add nano if you wish with:

        pkg_add -r nano
        

        I can't comment on vi, it is broken in my opinion and not just in pfSense!  ;)

        Those lines in dmesg are normal, that's just how intel handles distributing it's code. You can just ignore them or edit loader.conf as instructed.

        I think loader.conf gets copied across an update so you should be good.  :-\

        Steve

        1 Reply Last reply Reply Quote 0
        • a-a-ronA
          a-a-ron
          last edited by

          ahh thanks… i did find after posting this there is a text editor in the GUI, so I ended up using that. But I will now be adding nano, so cheers!

          BTW those lines made a huge performance boost in my system, I was getting the "WARNING: Non-uniform processors.
          WARNING: Using suboptimal topology." My CPU (ATOM D510) was locked to 266Mhz. Now all is well, much faster :)

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            loader.conf will be overwritten after a firmware update.
            you could use instead loader.conf.local. just create it, enter the lines and it will work, still after a firmware update.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Ah I wasn't sure. Thanks for clearing that up.

              Steve

              1 Reply Last reply Reply Quote 0
              • a-a-ronA
                a-a-ron
                last edited by

                @Nachtfalke:

                loader.conf will be overwritten after a firmware update.
                you could use instead loader.conf.local. just create it, enter the lines and it will work, still after a firmware update.

                I updated my loader.conf.local; rebooted and it worked great.

                I also now have nano installed :)

                Thanks guys!

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  vi works fine. I've never had any problems with it on or off of pfSense. "i" doesn't insert a new line, it would just start inserting text at the cursor. To start a new line, you use "o" or "O" depending on whether you want the line to be above or below the current line.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • a-a-ronA
                    a-a-ron
                    last edited by

                    You are right "o" does, but "i" inserts text, I've been using Vi for many years, and pfsense is the first i've seen it not work.

                    http://www.cs.colostate.edu/helpdocs/vi.html

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Except that it does work… Which puzzles me as to why it doesn't work for you, since it's worked in every router and VM I've ever setup, even current snapshots.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • W
                        wallabybob
                        last edited by

                        @djroketboy:

                        I press i to insert a line of text, and nothing happens.

                        What do you mean by "nothing happens"? What are you expecting to happen?

                        On both my pfSense box and my Linux netbook vi quietly goes into "insert mode" when I type the i command.

                        1 Reply Last reply Reply Quote 0
                        • a-a-ronA
                          a-a-ron
                          last edited by

                          I'm running the IPV6 snapshots… I did try from console, Mac (Terminal) and Windows (puTTY)... and I was quite frustrated when I originally posted...

                          2.0-RC1-IPv6 (i386)
                          built on Fri Apr 8 18:33:38 EDT 2011

                          I just tested "o" and it works just like it should, "i" on the other hand doesn't, it will either capitalize the first letter of the line, or randomly jump around.

                          Either way, its not a big deal, my problems have been solved. :)

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