Linux Mint Debian (LMDE) fcitx 安装后无法调出中文输入法的问题   Leave a comment

根據各種介紹 在LMDE 上安裝sogou 以及其他輸入法,但是總是無法調出。


 fcitx-frontend-* 後似乎可以輸入中文了。

在沒有安裝之前,firefox  chrome 都無法輸入中文,但是其他 GTK 2 的似乎都可以輸入中文。

貌似這個問題是   fcitx-frontend-* 引起的。


Posted August 15, 2014 by wzhenhua in GNU Linux

Install Fcitx — Chinese input– on Calculate Linux (a Gentoo Linux based distribution)   Leave a comment

After playing around with some Arch Linux based distributions in last a few years , I switched back to Calculate Linux recently. The Calculate  Linux is a Gentoo based Linux distribution.


In the most cases, I work under English mode. However, I have to type Chinese in many other cases. Therefore, I still have to install a Chinese Input.  Sogou input for Linux is becoming very popular these days, but it looks like that it has not been ported to Gentoo Linux. So Fcitx is still my first choice.  By the way, Sogou for Linux is based on Fcitx.


Under Calculate Linux, it is easy to insally Fcitx, just

# emerge -av fcitx

In order to config input methods and input Chinese, I also install configure tool and one preferred Chinese pinyin

#emerge -av fcitx-configtool fcitx-sunpinyin


You also need to add the following to ~/.xprofile

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=”@im=fcitx”


If the file does not exist, just create one.


Save the file, reboot the X. You should be good to go.


Posted June 28, 2014 by wzhenhua in GNU Linux

Notes: Arch Linux (ArchBang Linux) on Clevo x7200 with ATI 6990   Leave a comment

Some notes on the configuration of Arch Linux (ArchBang)

  1. x7200 is coming with an ATI 6990 video card. The default installation of ArchBang just works out of box. The video driver is the opensource version. But I don’t like it, so install the AMD Catalyst instead.
  2. There is a long story and several different ways to install Catalyst, I follow next several steps:
  • In AUR, people already put the latest AMD Catalyst testing version there. So the first step is to make sure AUR is working. In the default insallation of ArchBang, the AUX is not installed. What I did is as follows:
  • Install yaourt:
  • Un-comment the [multilib] repo in “/etc/pacman.conf” for 32-bit lib/application support.
  • Put the following at the end of “/etc/pacman.conf”

SigLevel = Never
Server =$arch

  • run the following to install yaourt and Catalyst

sudo pacman -Syu
sudo pacman -S yaourt

sudo pacman -S base-devel linux-headers
sudo pacman -S qt4 acpid acpi lib32-libxext lib32-libdrm
sudo yaourt catalyst-test
sudo systemctl enable atieventsd
sudo systemctl start atieventsd
sudo systemctl enable catalyst-hook
sudo systemctl start catalyst-hook
sudo systemctl enable temp-links-catalyst
sudo systemctl start temp-links-catalyst
sudo aticonfig --initial

Posted March 28, 2014 by wzhenhua in GNU Linux

Clevo x7200 audio under GNU Linux   Leave a comment

For Clevo x7200, the audio under GNU Linux, such as Ubuntu and other Debian based system, does not work by default.

It works for some models.
acer-aspire-4930g,acer-aspire-6530g, acer-aspire-7730g, acer-aspire-8930g, medion, intel-x58(but sound cursor on the keyboard do not work) and auto(no surround). I think the best is medion. 

Posted March 26, 2014 by wzhenhua in GNU Linux

VIM: How to comment latex in multiple lines   Leave a comment

If you want to comment paragraph in a latex file in vim/gvim or any derivation, such as Macvim… do as follows,


% go to the beginning of the line

% visual mode

arrow keys up/down
% move up and down to select the line to be commented

I (shift+i)
% NOT sure why, but need this step

% % shows on the first line
% comments done

Posted July 29, 2013 by wzhenhua in GNU Linux, LaTeX, MAC & OS X

One way to solve the error message of Gnuplot-4.4.3 for Mac OS X   Leave a comment

The dmg version of gnuplot we can find on internet is gnuplot-4.4.3-aqua-i386.dmg. This is included in octave-3.4.0-i386.dmg, in the folder of Extras/ . However, after moving the gnuplot into the application folder, gnuplot does not run correctly. There is error message on the screen.

One way to solve the problem is as follows,

Open a terminal, and go to


and replace every instance of




In vim, you can do this with the following command:


Try gnuplot again, it should work fine this time.

Posted June 23, 2013 by wzhenhua in GNU Linux, MAC & OS X

Use utopia font in LaTeX   Leave a comment

If you want to try utopia font in your paper, you can put the following at the beginning of your tex file.

\usepackage[utopia]{mathdesign} % Change the fonts of all the paper

It looks like this
Screen Shot 2013-04-17 at 10.08.45 PM

Posted April 17, 2013 by wzhenhua in LaTeX