Use GCIN and gnome-shell on Gentoo

Despite the common usage of input method is iBus, GCIN is still my favorite one for Chinese. But with the upgrading of GNOME 3 (gtk3) and in Gentoo, there are notes should be wrote down.

1. The GCIN package is not provided officially by Gentoo’s portage tree. But with hard works of gentoo communities in gentoo-zh (from gentoo-taiwan and gentoo-china), we can use GCIN via layman:

# layman -L
# layman -a gentoo-zh

2. Add gtk3 use flag for GCIN in /etc/portage/package.use:
# echo 'app-i18n/gcin gtk3' > /etc/portage/package.use
3. Some note to make GCIN works is listing in Linux/X window gcin 無法使用的檢查事項.For example:
a) My own configuration for environment variable declare is in ~/.xprofile:

export GTK_IM_MODULE=gcin
export QT_IM_MODULE=gcin
export XMODIFIERS=@im=gcin

b) To install GCIN’s module in gtk2/3 on x86 (i686) Gentoo OS:

# gtk-query-immodules-2.0 > /etc/gtk-2.0/i686-pc-linux-gnu/gtk.immodules
# gtk-query-immodules-3.0 --update-cache

[20120209 edit]
The latest version since 2.7.1 disable the En input method (IM) for switching by default. And for my newly installed gentoo box, I cannot switch IM if the default method is set as En.

It is not convenient when I set other IMs as default, because I need to change to En by pressing an additional shift key or ctrl-space hotkey.

Help from GCIN forum by coolcd, the solution is to close the default attribute after IM launch. The setting is to un-check the box in gcin-tools for:

Default input method and toggle key > Toggle on input mode by default (non-XIM only)

After restart GCIN, the IM mode by default is En that like most IME done.

Enjoy it. 🙂

Replace Unity with gnome-shell on Ubuntu 11.10

This article is about how to remove Unity (and its dependency packages) and launch the Gnome Shell by default.

Note: Some of the packages we want to remove may not installed in your system. Just remove the package name in the remove list.

1. Remove Unity and its dependency packages:
$ sudo apt-get remove unity unity-2d-places unity-2d unity-2d-panel unity-2d-spread unity-asset-pool unity-services unity-lens-files unity-lens-music unity-lens-applications gir1.2-unity-4.0 unity-common indicator-sound indicator-power indicator-appmenu libindicator6 indicator-application evolution-indicator indicator-datetime indicator-messages
This will also remove the tomboy and transmission. If you need them, just install back:
$ sudo apt-get install tomboy transmission

2. Install GNOME-shell and some BEST extra packages:
$ sudo apt-get install gnome-shell gnome-themes-standard gnome-sushi gnome-contacts gnome-tweak-tool

3. Remove scrollbar and appmenu of unity:
$ sudo apt-get remove appmenu-gtk indicator-applet-appmenu indicator-appmenu overlay-scrollbar

4. Use the native notification daemon (Or some notify may use ubuntu’s daemon and make us confuse):
$ sudo apt-get install notification-daemon
$ sudo apt-get remove notify-osd
This also remove gnome-power-manager but we need it.
$ sudo apt-get install gnome-power-manager

5. Clean up the system:

$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo dpkg --list |grep "^rc" | awk '{print $2}' | xargs sudo dpkg --purge

The first line is to clean up dependency packages while the second one is for the unused packages downloaded in system. The third one is to find the records which had been installed but remove and make a purge step.

6. Logout. And now you can log into GNOME Shell via click the ‘gear’ icon in login window and select GNOME Shell. Enjoy it. 🙂

The references are:
Ubuntu 11.10 GNOME Shell Guide
How can you remove Unity?
Ubuntu 11.10 Oneiric: Remove Unity and use Gnome Classic by Default