How to Type Vietnamese on Ubuntu / Linux

If you are learning Vietnamese, working with Vietnamese documents, or communicating with Vietnamese speakers, you will need a way to type accented characters. Many languages, such as Vietnamese, French, Spanish, and German, use diacritics to modify pronunciation and meaning. For example:

  • ma (ghost)
  • (mother)
  • (horse)

Ubuntu doesn’t come with Vietnamese input pre-configured, so you’ll need to install a Vietnamese input method. This guide covers three main options:

  • IBUS-Bamboo (Best for most users)
  • IBUS-Unikey (Familiar for Windows users)
  • FCITX-Unikey (Advanced users, highly customizable)

Understanding Vietnamese Input Methods

There are three common ways to type Vietnamese accents:

  1. Telex (Recommended) – Uses letter combinations:
    • ssắc (á → as)
    • fhuyền (à → af)
    • xxóa dấu (ma → max → ma)
  2. VNI – Uses numbers:
    • 1sắc (á → a1)
    • 2huyền (à → a2)
  3. VIQR – Uses punctuation (less common now):
    • 'sắc (á → a’)
    • `huyền (à → a`)

Most users prefer Telex because it’s fast and intuitive.

Installing a Vietnamese Input Method on Ubuntu

IBUS-Bamboo is a modern Vietnamese input method that is lightweight and actively developed.

Open the Terminal (Ctrl + Alt + T) and run:

sudo add-apt-repository ppa:bamboo-engine/ibus-bamboo
sudo apt-get update
sudo apt-get install ibus ibus-bamboo --install-recommends
ibus restart

Set it as the default input method:

env DCONF_PROFILE=ibus dconf write /desktop/ibus/general/preload-engines "['BambooUs', 'Bamboo']" && gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('ibus', 'Bamboo')]"

Go to Settings > Keyboard and enable Vietnamese (Bamboo).

Keyboard Settings Ubuntu
Keyboard Settings Ubuntu

    👉 To remove IBUS-Bamboo, run:

    sudo apt remove ibus-bamboo
    sudo apt autoremove
    rm -rf ~/.config/ibus-bamboo/

    Option 2: Install IBUS-Unikey

    IBUS-Unikey is an alternative for those familiar with the Unikey input method from Windows.

    Install IBUS-Unikey:

    sudo apt install ibus-unikey

    If you get a package error, try:

    sudo add-apt-repository ppa:ubuntu-vn/ppa;
    sudo apt update;
    sudo apt install ibus-unikey;
    ibus restart;

    Add Unikey configuration:

    sudo nano ~/.bashrc

    Add the following lines at the end:

    sudo nano ~/.bashrc
    # Config Vietnamese (Unikey)
    export GTK_IM_MODULE=ibus
    export XMODIFIERS=@im=ibus
    export QT_IM_MODULE=ibus

    Save (Ctrl + X, then Y), log out, and log back in.

    Add Vietnamese input configuration to the bashrc file
    Add Vietnamese input configuration to the bashrc file

    Now log out and log back in to your computer or restart your computer. Then click on the plus symbol “+” and select Vietnamese, then select “Vietnamese (Unikey)” so you can type Vietnamese on your Ubuntu.

    Add Vietnamese input language in settings
    Add Vietnamese input language in settings

      👉 To remove IBUS-Unikey, run:

      sudo apt-get remove ibus-unikey
      sudo apt-get purge ibus-unikey
      sudo apt auto remove

      Option 3: Install FCITX-Unikey

      FCITX-Unikey is a good choice for advanced users who need more customization.

      Install FCITX-Unikey:

      sudo apt install fcitx-unikey

      Run and configure it:

      sudo fcitx-configtool
      Configure Fcitx-Unikey language
      Configure Fcitx-Unikey language

      Click the + button to add Vietnamese (Unikey).

      Like the screenshot, to add Unikey in FCITX percussion you need to click on the “+” sign, then click on the gear-shaped “Settings” icon and set the typing method and encoding.

      Configure Fcitx-Unikey Ubuntu

      Done, now you can see the keyboard icon in the top right corner of the screen. You can right-click on it to customize other settings as you want.

        👉 To remove FCITX-Unikey, run:

        fcitx-remote -c
        sudo apt remove fcitx-unikey
        rm -rf ~/.config/fcitx
        rm -rf ~/.config/fcitx-unikey

        Switching Between English and Vietnamese Input

        1. Click the keyboard icon in the top-right corner.
        2. Select Vietnamese (Bamboo), Vietnamese (Unikey), or Vietnamese (FCITX).
        3. To switch quickly, use:
          • Super + Space (Ubuntu default)
          • Ctrl + Shift (Common on other systems)

        💡 Tip: If the Vietnamese input method doesn’t appear, restart your system.

        Keep Practicing!

        Typing in Vietnamese may seem tricky at first, but with practice, it becomes second nature. If you’re learning Vietnamese, using the correct diacritics will improve both your writing and reading skills.

        📌 Recommended practice tools:

        Now you’re ready to type Vietnamese fluently on Ubuntu!

        Summary of Key Commands

        ActionCommand
        Install IBUS-Bamboosudo apt install ibus-bamboo
        Install IBUS-Unikeysudo apt install ibus-unikey
        Install FCITX-Unikeysudo apt install fcitx-unikey
        Restart IBUSibus restart
        Remove IBUS-Bamboosudo apt remove ibus-bamboo
        Remove IBUS-Unikeysudo apt remove ibus-unikey
        Remove FCITX-Unikeysudo apt remove fcitx-unikey

        With this guide, you can now install and use Vietnamese input on Ubuntu like a pro. If you’re still unsure which method to use, try IBUS-Bamboo first—it’s the most user-friendly and actively developed.

        Happy typing! 🎉

        Write a comment