Setup Linux Input Methods
Last Update: 2023-07-18
The Linux subsystem built into FydeOS currently doesn’t support the system’s native input method. This poses a challenge for users needing to input non-English languages, particularly for CJK native speakers. To overcome this, you can install a third-party input method for the Linux subsystem. This guide will walk you through the process of installing and configuring the Fcitx input method on FydeOS’s Linux subsystem.
Step 1: Installing the Fcitx Input Method
- Launch the Linux terminal and wait for the Linux subsystem to boot up.
- Update your software sources and applications by executing the following command:
sudo apt update && sudo apt upgrade
. - Once the update is complete, install the Fcitx input method with this command:
sudo apt install fcitx fcitx-lib* -y
.
Step 2: Setting Fcitx as the Default Input Method
- After the installation, run the following command in the Linux terminal:
im-config
. Note: Avoid running this command as the root user to prevent connection issues. - A dialog box will appear. Click “OK”, then “Yes”. Select “fcitx” and click “OK” twice.
Step 3: Configuring Fcitx Settings
- Run this command in the Linux terminal:
fcitx && fcitx-configtool
. - A window will pop up. Click the ”+” button in the bottom left corner to open the input method selection window.
- Uncheck “Only show current language”, select your desired input method, and click “OK”.
- If no input methods appear, close the window, run
fcitx-diagnose
, and repeat steps 2 and 3.
Step 4: Setting Fcitx as the Language Input Environment
-
Install the gedit text editor with this command:
sudo apt install gedit -y
. -
Run the following command to configure the language input environment:
sudo gedit /etc/systemd/user/cros-garcon.service.d/cros-garcon-override.conf
. -
Append the following lines to the end of the file:
-
Save the file and close the gedit editor.
Step 5: Setting Fcitx to Auto-Start in the Linux Subsystem
- Modify the auto-start options with this command:
sudo gedit ~/.sommelierrc
. - Append the following line to the end of the file:
/usr/bin/fcitx-autostart
. - Save the file and close the gedit editor.
- Restart the Linux subsystem with this command:
sudo reboot
. - You can now switch between non-English and English input methods using
Ctrl+Space
.