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

    Changing keymap

    Scheduled Pinned Locked Moved Development
    13 Posts 6 Posters 19.4k 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.
    • E
      eri--
      last edited by

      I do not think pfSense is a development platform rather something to just use.
      Though what works on FreeBSD should work in pfSense too.

      1 Reply Last reply Reply Quote 0
      • A
        ardunio
        last edited by

        @ermal:

        I do not think pfSense is a development platform rather something to just use.
        Though what works on FreeBSD should work in pfSense too.

        I didn't say that pfSense is a development platform. pfSense is open to modify and I just wanted to change some files.
        I've wondered something and asked the forum's development section. If I'm wrong, sorry.

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          Just a suggestion, if you are editing text files and not thousands of them, then I find it is easy to use Diagnostics:Edit File. I load the file, ctrl-A, ctrl-C to copy it all, paste it into a favourite editor on a client computer (e.g. on Windows I use Notepad++), save and edit it there, then copy and paste it back into the Diagnostics:Edit File text box and press Save.
          Once I have a current copy in my editor, then there is no need to copy again from pfSense. I can just keep working on it and copy-paste it back to pfSense to test. Doing this means you can use an editor and keyboard and locale environment that suits you for editing.
          But I guess you are using the pfSense box at a real screen and keyboard attached to the box, rather than remotely through the browser and SSH command prompt sessions or a serial console.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • A
            ardunio
            last edited by

            @phil.davis:

            Just a suggestion, if you are editing text files and not thousands of them, then I find it is easy to use Diagnostics:Edit File. I load the file, ctrl-A, ctrl-C to copy it all, paste it into a favourite editor on a client computer (e.g. on Windows I use Notepad++), save and edit it there, then copy and paste it back into the Diagnostics:Edit File text box and press Save.
            Once I have a current copy in my editor, then there is no need to copy again from pfSense. I can just keep working on it and copy-paste it back to pfSense to test. Doing this means you can use an editor and keyboard and locale environment that suits you for editing.
            But I guess you are using the pfSense box at a real screen and keyboard attached to the box, rather than remotely through the browser and SSH command prompt sessions or a serial console.

            Hi. Thanks for your suggestion. I did this way several times. I edit and test files frequently. Console is most practical for me with ee and vim.

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

              The kbdmap(1) command is probably what you're after, or maybe kbdcontrol(1)

              Both are in the pfSense image.

              If you find one that works for you, add it to your ~/.profile or somewhere similar.

              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
                ardunio
                last edited by

                Thanks a lot. I had run  kbdcontrol in rc.bootup. Now trying to add to .profile

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

                  If you get it working, it would be helpful to others if you post the syntax you used for the command and where it ended up working best for you.

                  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
                    ardunio
                    last edited by

                    I use "/usr/sbin/kbdcontrol -l /usr/share/syscons/keymaps/whatever"

                    First I added it to "/etc/rc" file before the line that runs rc.bootup script and works. Than removed here and added to rc.bootup file to test and worked. I don't remember which line now. But i think it'll be work when you run it before rc.initial runs.

                    1 Reply Last reply Reply Quote 0
                    • M
                      MaxFrames
                      last edited by

                      Thanks, the first option worked for me as well.

                      1 Reply Last reply Reply Quote 0
                      • E
                        Eidechsenpeter
                        last edited by

                        @ardunio:

                        I use "/usr/sbin/kbdcontrol -l /usr/share/syscons/keymaps/whatever"

                        First I added it to "/etc/rc" file before the line that runs rc.bootup script and works. Than removed here and added to rc.bootup file to test and worked. I don't remember which line now. But i think it'll be work when you run it before rc.initial runs.

                        Tyvm !

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