RSS

Tag Archives: ibus

Ubuntu 13.10 personal post-installation mini guide

Okey. It is the end of 2013. I have gave Unity a try for a day, but goodbye again Unity.

xubuntu is almost perfect, howerver, as usual, customization is always required.

And I confess, I have just copied and pasted almost everything from the old entry. So not much excited.

Please note, I have got myself a new laptop, so the procedure will be even simpler.

1.1) enable Canonical’s ‘partner’ repository:

sudo nano /etc/apt/sources.list

1.2) uncomment the following lines:

deb http://archive.canonical.com/ubuntu saucy partner
deb-src http://archive.canonical.com/ubuntu saucy partner

2) To get the latest WineHQ:

sudo add-apt-repository ppa:ubuntu-wine/ppa

3) Then, update data base:

sudo apt-get update

4) (Optional) To find out what you have installed:

dpkg --get-selections | sed 's:install$::' > InstalledPackages.txt

5) Then, remove what I do not want:

sudo apt-get purge abiword* catfish espeak* gmusicbrowser gnome-mines gnome-sudoku gnomine gnumeric* ibus-pinyin* nano parole pidgin* plymouth-theme* ristretto thunderbird* xchat*

6) Then, upgrade system:

sudo apt-get dist-upgrade

7) Then, install what I want:

sudo apt-get install audacious brasero chromium-browser easytag geeqie guvcview ibus-table-cangjie3 ibus-table-cantonhk ibus-table-quick3 ttf-mscorefonts-installer skype smplayer synaptic unrar vim virtualbox virtualbox-guest-additions-iso vlc winetricks

8) As of every new version of Ubuntu, there are some minor bugs in the system. This time again is the sound card volume control. If you find you have a gray out speaker in your Indicator Plugin, you may try this.

8.1) Edit the following file:

sudo vim /usr/share/dbus-1/services/indicator-sound.service

8.2) Comment out the last line and add a new line as follow:

[D-BUS Service]
Name=com.canonical.indicator.sound
#Exec=/usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
Exec=/usr/lib/indicator-sound-gtk2/indicator-sound-service

8.3) Logout then Login again, and you should good to go.

 
Leave a comment

Posted by on November 5, 2013 in Linux, Ubuntu, xUbuntu

 

Tags: , , , , , , , , ,

WineHQ for Microsoft Office 2010

Edited on 6th May 2013.

This is an update for How-to install Microsoft Office 2010 via WineHQ in Ubuntu 12.10 and Ubuntu 13.04. The Wine I am using is 1.4.1. Hope this may help.

1) Install winetricks and Microsoft Core fonts:

sudo apt-get install winetricks msttcorefonts wine-mono

2) If you have installed WineHQ before, you should remove all config files from your home directory:

rm -rf ~/.wine
rm -rf ~/.cache/winetricks
rm -rf ~/.config/menus/applications-merged/*
rm -rf ~/.local/share/applications/*
rm -rf ~/.local/share/mime/application/*

3) For 64-bit system, you have to tell WineHQ to run in 32-bit mode:

export WINEARCH=win32
wineboot --update

4) In order for Office to work properly, you have to install some software from winetricks

4.1) Open Winetricks
4.2) Select "Select the default wineprefix", then click OK.
4.3) Select "Install a Windows DLL or component", then click OK.
4.4) Select and install the following components:
4.4.1) dotnet20(*)
4.4.2) msxml6
4.4.3) vcrun2005
(*) : Since this file could not download automatically,
please follow the prompt, download the file,
copy it to the designated directory,
re-run winetricks and install this file again.

5) Install Microsoft Office 2010

6) (Optional) Install some Windows fonts from Winetricks

6.1) Open Winetricks
6.2) Select "Select the default wineprefix", then click OK.
6.3) Select "Install a font", then click OK.
6.4) Select and install the following font:
6.4.1) corefonts

7) Then, we need to specified which DLL file to use, Winehq provided one or Windows native.

7.1) Open Winetricks
7.2) Select "Select the default wineprefix", then click OK.
7.3) Select "Run winecfg", then click OK.
7.4) Go to the "Library" tab:
7.4.1) Edit "msxml6" to "Native (Windows)"
7.4.2) Edit "msvcp90" to "Native (Windows)"
7.4.3) Add "gdiplus", then edit it to "Native (Windows)"
7.4.4) Add "riched20", then edit it to "Native (windows)"
7.4.5) Now can click "Apply" then "OK"

8) Apparently, after Wine1.2rc, whenever you open a MS Office file, it will create a .lnk file in your working directory, which will not be removed after you close the file. The .lnk file was supposed to be created for the “Recently opened file” menu, however, there is a little bug. WineHQ forgot to create a folder to store all those .lnk

mkdir ~/.wine/drive_c/users/"your_user_name"/Recent

9) WineHQ will change some file association to “Wine Explorer” and “Wine Notepad”, to stop this:

cd ~/.local/share/applications/

rm -rf wine-extension-dic.desktop wine-extension-exc.desktop wine-extension-gif.desktop wine-extension-ini.desktop wine-extension-jfif.desktop wine-extension-jpe.desktop wine-extension-png.desktop wine-extension-txt.desktop wine-extension-url.desktop wine-extension-wri.desktop

10) For IBus to work correctly in Office, please edit the following text files:

Go to :
~/.local/share/applications/wine/Programs/Microsoft Office

Edit the following files:
Microsoft Office Access 2010.desktop
Microsoft Office Excel 2010.desktop
Microsoft Office Groove 2010.desktop
Microsoft Office InfoPath 2010.desktop
Microsoft Office OneNote 2010.desktop
Microsoft Office Outlook 2010.desktop
Microsoft Office PowerPoint 2010.desktop
Microsoft Office Publisher 2010.desktop
Microsoft Office Word 2010.desktop
----------------------------------------
Change:
Exec=env WINEPREFIX=..............
To:
Exec=env LANG=zh_TW.UTF-8 WIEPREFIX=............
----------------------------------------
Depend on your language, you may use:
zh_TW.UTF-8 zh_CN.UTF-8 ja_JP.UTF-8 ko_KR.UTF-8
 
Leave a comment

Posted by on December 11, 2012 in IBus, Linux, Wine

 

Tags: , , , , , , , , ,

WineHQ and IBus for Microsoft Office 2007

Edited on 6th February 2013.

I am using Xubuntu 12.10 with WineHQ 1.4.1,

1) Install winetricks and Microsoft Core fonts:

sudo apt-get install winetricks msttcorefonts

2) If you have installed WineHQ before, you should remove all config files from your home directory:

rm -rf ~/.wine
rm -rf ~/.cache/winetricks
rm -rf ~/.config/menus/applications-merged/*
rm -rf ~/.local/share/applications/*
rm -rf ~/.local/share/mime/application/*

3) For 64-bit system, you have to tell WineHQ to run in 32-bit mode:

export WINEARCH=win32
wineboot --update

4) Install Microsoft Office 2007

5) Then, we need to specified which DLL file to use, Winehq provided one or Windows native.

5.1) Open Winetricks 
5.2) Select "Select the default wineprefix", then click OK. 
5.3) Select "Run winecfg", then click OK. 
5.4) Go to the "Library" tab: 
5.4.1) Add "riched20", then edit it to "Native (windows)" 
5.4.2) Now can click "Apply" then "OK"

6) (Optional) Install some Windows fonts from Winetricks

6.1) Open Winetricks
6.2) Select "Select the default wineprefix", then click OK.
6.3) Select "Install a font", then click OK.
6.4) Select and install the following font:
6.4.1) corefonts

7) Apparently, after Wine1.2rc, whenever you open a MS Office file, it will create a .lnk file in your working directory, which will not be removed after you close the file. The .lnk file was supposed to be created for the “Recently opened file” menu, however, there is a little bug. WineHQ forgot to create a folder to store all those .lnk

mkdir ~/.wine/drive_c/users/"your_user_name"/Recent

8) WineHQ will change some file association to “Wine Explorer” and “Wine Notepad”, to stop this:

cd ~/.local/share/applications/

rm -rf wine-extension-dic.desktop wine-extension-exc.desktop wine-extension-gif.desktop wine-extension-ini.desktop wine-extension-jfif.desktop wine-extension-jpe.desktop wine-extension-png.desktop wine-extension-txt.desktop wine-extension-url.desktop wine-extension-wri.desktop

9) For IBus to work correctly in Office, please edit the following text files:

Go to :
~/.local/share/applications/wine/Programs/Microsoft Office

Microsoft Office Access 2007.desktop
Microsoft Office Excel 2007.desktop
Microsoft Office Groove 2007.desktop
Microsoft Office InfoPath 2007.desktop
Microsoft Office OneNote 2007.desktop
Microsoft Office Outlook 2007.desktop
Microsoft Office PowerPoint 2007.desktop
Microsoft Office Publisher 2007.desktop
Microsoft Office Word 2007.desktop
----------------------------------------
Change:
Exec=env WINEPREFIX=..............
To:
Exec=env LANG=zh_TW.UTF-8 WIEPREFIX=............
----------------------------------------
Depend on your language, you may use:
zh_TW.UTF-8 zh_CN.UTF-8 ja_JP.UTF-8 ko_KR.UTF-8
 
Leave a comment

Posted by on July 31, 2012 in IBus, Linux, Wine

 

Tags: , , , , , , ,

ibus Traditional Chinese input in English interface

This is a problem back dated since Ubuntu 10.10 when they started to use ibus as the default Chinese input software. The problem is when you start typing, ibus will give out Simplified Chinese character. As I born in Hong Kong, I learn and use Traditional Chinese and I hate and condemn Simplified Chinese. It is a very long story and I am not going to explain here at the moment.

To solve the problem you only need to edit one config file:
1) use your favorite text editor and open /usr/share/ibus-table/engine/table.py
2) Go to line 123, and you should read “# if IME declare as Chinese IME
3) Go to next line, change 0 to 1 if you want ibus to show Traditional Chinese only; or change 0 to 3 if you want traditional first then simplified
4) Save and restart ibus

 
Leave a comment

Posted by on April 1, 2012 in Linux, Ubuntu

 

Tags: , , , ,