VI broken?



  • 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?


  • Netgate Administrator

    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



  • 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 :)



  • 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.


  • Netgate Administrator

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

    Steve



  • @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!


  • Rebel Alliance Developer Netgate

    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.



  • 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


  • Rebel Alliance Developer Netgate

    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.



  • @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.



  • 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. :)


Log in to reply