分页: 1 / 1

我的 scim 安装与相关问题的解决

发表于 : 2006-11-10 0:43
akey307
以dapper为例,首先用光盘安装base system后

sudo apt-get remove firefox mozilla-firefox
sudo apt-get install mozilla-firefox

sudo apt-get install ubuntu-base ubuntu-desktop


sudo cp /etc/apt/source.list /etc/apt/source.list_backup

将source.list的内容修改为

deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted

deb http://archive.ubuntu.com/ubuntu dapper main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu dapper main universe multiverse restricted

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe


然后
sudo apt-get update


sudo apt-get dist-upgrade

sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base language-support-zh

sudo apt-get install scim
sudo apt-get install scim-chinese
sudo apt-get install scim-config-socket
sudo apt-get install scim-gtk2-immodule
sudo apt-get install scim-tables-zh
wget -c http://www.study-area.org/apt/firefly-f ... 3.0.tar.gz
sudo tar zxvf fireflysung-1.3.0.tar.gz -C /usr/share/fonts/truetype/
sudo chown -R root:root /usr/share/fonts/truetype/fireflysung-1.3.0/
sudo fc-cache -f -v


安装好之后,需要在 X11 启动文件夹中添加 scim 条目。

$ sudo touch /etc/X11/Xsession.d/74custom-scim_startup
$ sudo chmod 646 /etc/X11/Xsession.d/74custom-scim_startup
$ echo 'export XMODIFIERS="@im=SCIM"' >> /etc/X11/Xsession.d/74custom-scim_startup
$ echo 'export GTK_IM_MODULE="scim"' >> /etc/X11/Xsession.d/74custom-scim_startup
$ echo 'export XIM_PROGRAM="scim -d"' >> /etc/X11/Xsession.d/74custom-scim_startup
$ echo 'export QT_IM_MODULE="scim"' >> /etc/X11/Xsession.d/74custom-scim_startup
$ sudo chmod 644 /etc/X11/Xsession.d/74custom-scim_startup


重新启动X, 就可以找到SCIM中文输入了。



这个时候往往acroread无法正常使用,解决方法是:

把如下部分

#!/bin/sh
#


改变成:

#!/bin/sh
#
GTK_IM_MODULE=xim

保存文件。
现在acroread就可以工作了。

Re: 我的 scim 安装与相关问题的解决

发表于 : 2006-11-11 10:57
xiaosilent
akey307 写了:
sudo apt-get remove firefox mozilla-firefox
sudo apt-get install mozilla-firefox

将source.list的内容修改为

deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted

deb http://archive.ubuntu.com/ubuntu dapper main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu dapper main universe multiverse restricted

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
为什么要先删了ff再安装一遍? 你在国外么?用国外的源?

发表于 : 2006-11-11 12:38
karron
有关这样的问题请看wiki上的快速指南,有标准的ubuntu式的方法,不要用这样“旁门左道”的方法。

发表于 : 2006-11-29 22:09
henshan2002
有待一试,烦啊,ubuntu什么都好,为什么输入要用户这样来配置,难道这样
才是博大的本意吗?
这样有利于linux的传播吗?真的不懂啊