PDF download Download Article
Switch to a different language or layout in a few simple steps
PDF download Download Article

This wikiHow guide teaches you how to choose a different keyboard layout in Ubuntu Linux. You can select a new keyboard layout in your keyboard settings if you're using the GUI, and the changes will also apply to terminals. If you're signed in remotely or just prefer using terminal commands, you can also select a different layout using the command sudo dpkg-reconfigure keyboard-configuration. If you need to specify a different keyboard layout on console or for virtual TTYs, the steps are a little different.

Quick Steps

  1. Press the Windows key and type "keyboard".
  2. Select Settings > Keyboard from the search results.
  3. Click + Add Input Source.
  4. Select a keyboard layout and click Add.
  5. Switch between layouts by pressing Windows key + Spacebar.
Method 1
Method 1 of 3:

Changing Keyboard Layout in Settings

PDF download Download Article
  1. 1
    Open your keyboard settings. To do this, press the Windows key (aka the Super Key) on your keyboard, type keyboard, and select Settings > Keyboard in the search results.[1]
  2. This opens a list of keyboard layouts and languages.
    Advertisement
  3. 3
    Select a layout. Choose the language associated with the keyboard layout you want to use.
    • If you don't see the correct layout, close the window for now. Then, open a terminal window and run this command: gsettings set org.gnome.desktop.input-sources show-all-sources true.[2]
    • Once you run the command, you can go back to your keyboard layout settings. This time, you'll have the full list of keyboard layouts to choose from.
    • Depending on the language, you may have more than one layout from which to choose. For example, for English, you'll see English (US), English (Australia), English (Canada), English (United Kingdom), etc. Another example is for Cameroon—you'll find Cameroon Multilingual (Dvorak) and Cameroon Multilingual (QWERTY).
  4. It appears at the top-right corner once you select a layout. This adds the layout to the Input Sources list.
  5. 5
    Move your preferred default layout to the top of the list. The first layout in the Input Sources section is the layout Ubuntu associates with your keyboard by default. If you'd like to choose a different default layout, select the layout, then drag it to the top.
  6. 6
    Assign different layouts to different windows. If you need different keyboard layouts for specific windows–for example, you're writing in Spanish for one project, and English in another–click the Options button above the input list to view your settings for multiple inputs.
  7. Advertisement
Method 2
Method 2 of 3:

Changing Keyboard Layout in Terminal

PDF download Download Article
  1. 1
    Type sudo dpkg-reconfigure keyboard-configuration and press Enter. This command will open a terminal-based menu that allows you to select a different keyboard layout.
  2. 2
    Select your preferred layout and then OK. Use the arrow keys to select your layout. Once selected, press Tab once to move the focus to the OK option, then press Enter to select it.
  3. Advertisement
Method 3
Method 3 of 3:

Changing Keyboard Layout on Console

PDF download Download Article
  1. 1
    When you're signed in on console, type sudo dpkg-reconfigure keyboard-configuration and press Enter. This command will open a menu that allows you to select a different keyboard layout.
    • This method also works on virtual terminals/TTYs.
    • You will need sudo privileges to use this command.
  2. 2
    Select your preferred layout and then OK. Use the arrow keys to select your layout. Once selected, press Tab once to move the focus to the OK option, then press Enter to select it.
  3. 3
    Run the command sudo setupcon -k. This applies the changes to the current console or virtual terminal session. However, the changes are not yet permanent.[3]
  4. 4
    Run the command sudo update-initramfs -u. This command ensures your new keyboard layout is loaded automatically on console and in virtual terminals.
    • Until you reboot, future virtual TTYs will not use the new keyboard layout. So, if you're using a virtual terminal and think you'll want to open new sessions, go ahead and give your system a reboot.
  5. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How can I create a keyboard shortcut to a specific keyboard layout without having to cycle over all layouts?
    flying 8lack
    flying 8lack
    Community Answer
    You have to setup Settings to point to keyboard driver through kernel mod, then set the shortcut in Settings.
  • Question
    How can I change the keyboard configuration in Ubuntu?
    Windows_Linux Pro
    Windows_Linux Pro
    Community Answer
    Reinstall Ubuntu, then select your keyboard layout. If you are afraid of losing your files, just back them up.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • To remove a keyboard layout you don't want to use anymore, click the three dots on the keyboard layout and select Remove.[4]
  • Not all layouts are compatible with standard keyboards. Make sure that your keyboard is set up for your preferred layout before selecting the layout.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Change the Default Keyboard Settings in Windows 10 Change the Default Keyboard Settings in Windows 10/11
Change the Language in AndroidChange the Language in Android
Add Another Language to Your Computer KeyboardAdd Another Language to Your Computer Keyboard
Change the Keyboard Layout in iOS Change the Keyboard on Your iPhone: Layouts & Languages
Type in Korean on a ComputerType in Korean on a Computer
Change the Keyboard Language of a Mac Write in Another Language on Your Mac Computer
Change Keyboard Language on Samsung Galaxy Change the Language on a Samsung Keyboard
Fix a Keyboard That Has the Wrong Characters Fix a Keyboard Typing the Wrong Characters
Switch to a Dvorak Keyboard LayoutSwitch to a Dvorak Keyboard Layout
Change the Language in Windows 7A Beginner's Guide to Changing the Language in Windows 7
Change the Language on Your Computer Change Your Computer's Language: Step-by-Step Guide
Type in Telugu Write in Telugu on Any Device
Change the User Interface Language of LibreOffice Change the Interface Language in LibreOffice
Enable a Keyboard on PC or MacEnable a Keyboard on PC or Mac
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 684,432 times.
How helpful is this?
Co-authors: 14
Updated: January 19, 2026
Views: 684,432
Categories: Ubuntu
Article SummaryX

1. Open your Ubuntu Settings.
2. Click Region & Language.
3. Click +.
4. Select a language.
5. Click Add.
6. Move the desired layout to the top of the list.

Did this summary help you?

Thanks to all authors for creating a page that has been read 684,432 times.

Is this article up to date?

Advertisement