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

Change Keyboard Layout permanently

Scheduled Pinned Locked Moved General pfSense Questions
14 Posts 3 Posters 9.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.
  • K
    kiokoman LAYER 8
    last edited by Nov 21, 2019, 11:31 AM

    how do you connect to pfsense?
    i have
    setenv LANG it_IT.ISO8859-1
    setenv MM_CHARSET ISO-8859-1
    on my machine inside csh.login and it's working for me, but i connect via ssh with putty

    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
    Please do not use chat/PM to ask for help
    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

    J 1 Reply Last reply Nov 21, 2019, 12:37 PM Reply Quote 0
    • J
      junicast @kiokoman
      last edited by Nov 21, 2019, 12:37 PM

      @kiokoman
      It's not about ssh connections. They work fine out of the box for me.
      My concern is console logins for people who need access to the machine via keyboard/video/mouse in cases of emergency for example.

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Nov 23, 2019, 3:16 PM

        It you can set it manually you can just have that command run at boot everytime:
        https://docs.netgate.com/pfsense/en/latest/development/executing-commands-at-boot-time.html

        Steve

        1 Reply Last reply Reply Quote 1
        • J
          junicast
          last edited by Nov 27, 2019, 10:42 AM

          I tried the shellcmd option but keyboard layout still is qwerty.
          This is how I changed the configuration:

          <pfsense>
                  <shellcmd>/usr/sbin/kbdcontrol -l /usr/share/syscons/keymaps/german.iso.kbd</shellcmd>
                  <version>19.1</version>
                  <lastchange></lastchange>
                  <system>
                  ...
          </pfsense>
          
          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Nov 27, 2019, 12:23 PM

            Hmm, when you set that manually and it works do you have to do from the console on question?

            If you ssh in as admin and run it the physical console remains unchanged?

            Steve

            J 1 Reply Last reply Nov 27, 2019, 12:49 PM Reply Quote 0
            • J
              junicast @stephenw10
              last edited by Nov 27, 2019, 12:49 PM

              @stephenw10 said in Change Keyboard Layout permanently:

              Hmm, when you set that manually and it works do you have to do from the console on question?

              yes, I have to enter the kbdcontrol command after successful login in order to change the keyboard layout to German.

              If you ssh in as admin and run it the physical console remains unchanged?

              Steve

              I don't understand. Why should I do that?

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Nov 27, 2019, 12:59 PM

                To test whether that has to be at the console directly to change it, which I think it does.
                In which case it needs somehow redirecting to run it as a shellcmd.

                Steve

                J 1 Reply Last reply Nov 27, 2019, 1:40 PM Reply Quote 0
                • J
                  junicast @stephenw10
                  last edited by Nov 27, 2019, 1:40 PM

                  @stephenw10
                  I just tested it.
                  When I invoke kbdcontrol in an ssh session the keyboard layout on the physical console does NOT change accordingly.

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Nov 27, 2019, 4:33 PM

                    Ok that's what I thought. Deeper dive into FreeBSD needed....

                    1 Reply Last reply Reply Quote 0
                    • J
                      junicast
                      last edited by Dec 4, 2019, 8:21 AM

                      I filed a feature request since I think there should be an easy option for everyone in the GUI to change the console's keyboard layout permanently.
                      https://redmine.pfsense.org/issues/9942

                      1 Reply Last reply Reply Quote 3
                      14 out of 14
                      • First post
                        14/14
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received