Adjustment of OPNsense keyboard layout in the command line

From Thomas-Krenn-Wiki
Jump to navigation Jump to search

In some cases, it may be necessary to adjust the keyboard under OPNsense, especially if the configuration is made via command line. This can be quite helpful, if the standard layout does not correspond to the desired layout, for example with a German keyboard.

Saving of the keyboard layout in the configuration file

To change the keyboard layout permanently in a german layout, add the following command to the file /etc/rc.conf:

 echo 'keymap="de"' >> /etc/rc.conf 

Apply changes

The changes become automatically effective with the next restart of the OPNsense firewall. To apply the changes immediately, execute the following command:

 /etc/rc.d/syscons onestart 

This command restarts the system console configuration and activates the new keyboard layout without restart.

Hints

If there is no other layout needed, the code "de" can be replaced by the corresponding code for the desired layout (for example "us" for US American layout). The following chart can serve as a guide for other layouts:


keyboard layout code for /etc/rc.conf
German (Germany) de
American English us
British English uk
French (France) fr
Spanish (Spain) es
Italian it
Dutch nl
Swedish se
Danish dk
Norwegian no
Finish fi
Portuguese (Portugal) pt
Czech cz
Polish pl
Hungarian hu
Russian ru

Template:Ederr

Translator: Alina Ranzinger

Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.


Related articles

Low Energy Systems (LES) Firewall Server
OPNsense Software RAID 1 setup
SSL routines tls process server certificate certificate verify failed - Authentication error