Sunday, July 23, 2017

setup fcitx for xfce4 under WSL in Windows 10

After setting up xfce4 under WSL(Windows Subsystem for Linx) in Windows 10, I tried to add chinese input support.

Looks like the following steps need to be taken:
1. Install a Chinese font, for example:
    sudo apt install fonts-noto-cjk
2. Install fcitx
    sudo apt install fcitx fcitx-googlepinyin
3. Configure environment variable and start fcitx with xfce
    Create a file under /usr/bin/xfce4 with the following content
     #!/bin/sh   
     export GTK_IM_MODULE=fcitx
     export QT_IM_MODULE=fcitx
     export XMODIFIERS=@im=fcitx

     xfce4-session
     fcitx

   Add executable permission to the file
   sudo chmod a+x /usr/bin/xfce4
4. quit VcXSrv. Close WSL console
5. Start VcXSrv, run WSL console(i.e. BashOnWindows) and start xfce4 again.

    /usr/bin/xfce4
    

Upgrade from Ubuntu 16.04 LTS to 17.04

Today I want to upgrade my linux 16.04 LTS to 17.04. However, even I've chosen "For any new version" in the "Updates" tab of "Software & Updates", when I run
sudo do-release-upgrade 
It still always says "No new release found".

Finally found an article mentions an alternative way to check new release.
sudo /usr/lib/ubuntu-release-upgrader/check-new-release-gtk

This one works wonderfully for me!