• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • A
    ardunio
    last edited by Aug 2, 2012, 4:45 PM

    Hi.

    On FreeBSD I can change keymap by editing /etc/rc.conf file. But on pfSense, rc.conf is deactivated by developers.
    Is there another way to change permanently?
    Otherwise I'll try to run "kbdcontrol" command at booting time.

    Thanks.

    1 Reply Last reply Reply Quote 0
    • E
      eri--
      last edited by Aug 2, 2012, 6:10 PM

      It rather a very rare op to do that on a pfSens einstall since you do not spend that much time on the shell.
      Why you want to do that?

      1 Reply Last reply Reply Quote 0
      • A
        ardunio
        last edited by Aug 2, 2012, 6:56 PM

        @ermal:

        It rather a very rare op to do that on a pfSens einstall since you do not spend that much time on the shell.
        Why you want to do that?

        I want to write scripts and edit some files quickly on shell. My keyboard layout is incompatible with FreeBSD's default. I can't put a lot of characters.

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by Aug 3, 2012, 7:48 PM

          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 Aug 3, 2012, 9:52 PM

            @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 Aug 4, 2012, 9:43 AM

              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 Aug 4, 2012, 12:52 PM

                @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
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by Aug 8, 2012, 5:09 PM

                  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 Aug 9, 2012, 1:14 AM

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

                    1 Reply Last reply Reply Quote 0
                    • J
                      jimp Rebel Alliance Developer Netgate
                      last edited by Aug 9, 2012, 1:18 AM

                      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 Aug 9, 2012, 1:32 AM

                        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 Aug 27, 2012, 11:24 AM

                          Thanks, the first option worked for me as well.

                          1 Reply Last reply Reply Quote 0
                          • E
                            Eidechsenpeter
                            last edited by Nov 25, 2012, 3:11 AM

                            @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.
                              This community forum collects and processes your personal information.
                              consent.not_received