Set up Windows Subsystem for Linux on Windows 11

Since Windows 11 Build 22000, the Linux subsystem on Windows supports GUI with audio. This greatly raises the usefulness of the Linux system. In the following we will look at how to set up the Linux subsystem with Chinese support.

Step 1: Install Windows Subsystem for Linux.

Follow the instruction at https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps

Step 2: Set up fonts and input method

Install the necessary languages:

sudo nano /etc/locale.gen

Remove the comment sign next to the languages you wish to install.

sudo locale-gen

Install necessary fonts and ibus: 

sudo apt install fonts-noto-cjk fonts-noto-color-emoji dbus-x11

sudo apt install ibus ibus-table-cangjie5 ibus-mozc

Set up ibus service

im-config - OK, Yes, ibus, OK, OK

dbus-launch ibus-daemon -drx

dbus-launch ibus-setup

At General -> Keyboard Shortcuts, you may want to set the input method switch shortcut to <shift>space since the original <super>space conflicts with the Windows one. 

At General -> Font and Style, you may want to set the "Show property panel" property to "Hide automatically" so you could use the panel to switch between different options within the input method chosen when it is needed. 

At Input Method, use the Add button to add the input methods you want to add.

pkill ibus-daemon

dbus-launch ibus-daemon -drx

sudo vi /etc/profile.d/ibus.sh

Enter the following content

export XIM=ibus
export XIM_PROGRAM=/usr/bin/ibus
export QT_IM_MODULE=ibus
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export DefaultIMModule=ibus

Restart ibus service

ibus-daemon -drx

Extra

To increase the range of software that you could install, run the following to open the repo list.

sudo vi /etc/apt/sources.list

Uncomment the following line.

deb http://archive.canonical.com/ubuntu focal partner

Then run

sudo apt update

References: 

Comments

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player