Chinaunix首页 | 论坛 | 博客
  • 博客访问: 925517
  • 博文数量: 264
  • 博客积分: 10107
  • 博客等级: 上将
  • 技术积分: 2455
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-09 16:34
文章分类

全部博文(264)

文章存档

2012年(1)

2011年(11)

2010年(128)

2009年(82)

2008年(42)

我的朋友

分类:

2008-03-15 10:49:38

给虚拟机ubuntu安装中文输入法 - [渡虎谷软件]

2008-02-18

:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://duhugu.blogbus.com/logs/15562449.html

我的总结:给虚拟机ubuntu安装中文.目前的实际步骤都记下来:

1、先安装语言包:

1.1、参照 %E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6%8C%87%E5%8D%97/FeistyFawn#.E5.AE.89.E8.A3.85.E8.AF.AD.E8.A8.80.E5.8C.85 的“安装语言包”:
输入sudo apt-get install language-pack-zh

1.2、上命令在我的机器目前不成功,解决方法参照:
修改apt-get的软件源,即修改/etc/apt/sources.list:

修改sources.list则需要root权限。输入su后,输入密码却不成功。
刚装两天,我就忘记我的root密码是不是忘记设置了,这种问题就是麻烦呢,呵呵。

设置root密码:
sudo passwd
给root设置密码,就可以了。

su切换为root后,将sources.list修改成1.2中的网址里的那样:

#########################################
deb dapper main restricted
deb-src dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb dapper-updates main restricted
deb-src dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb dapper universe multiverse&
deb-src dapper universe multiverse&

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb dapper-backports main restricted universe multiverse&
deb-src dapper-backports main restricted universe multiverse&

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 multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse

## dapper-commercial by canonical
## currently has realplay (realplayer 10) and opera (opera 9)
## only uncomment it if you need it
## deb dapper-commercial main

## Bleeding edge wine repository for Dapper
## only uncomment it if you need it
## deb dapper main
## deb-src dapper main

## skype
## only uncomment it if you need it
## deb stable non-free
#########################################

然后输入:
sudo aptitude update && sudo aptitude upgrade
安装语言包:
sudo apt-get install language-pack-zh
配置字体,使中文看起来更漂亮(可选):
sudo fontconfig-voodoo -f -s zh_CN

2、安装及设置scim输入法

2.1、在ubuntu虚拟机进入system-管理-语言设置,这个界面第一条支持语言就多了很多种语言。
我勾住了中文、日文、英文,确认之后按照提示一步步安装,之后restart。

2.2、此时,输入文字的时候右击鼠标,就可以选择scim输入文字了。
但是,要是想用快捷键ctrl+space调出输入法,还需要进行以下设置:

参照%E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6% 8C%87% E5%8D%97/FeistyFawn#scim.E8.BE.93.E5.85.A5.E6.B3.95.E5.AE.89.E8.A3.85.E5.8F.8A.E8.AE.BE.E7.BD.AE 的“scim输入法安装及设置”:
sudo gedit /etc/X11/xinit/xinput.d/default
加入:
XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
DEPENDS="scim,scim-gtk2-immodule | scim-qtimm"

现在重启Gnome。
重启方法:
强大的“Ctrl+Alt+Backspace”嘻嘻。

终于OK了。
这个scim带了巨多输入法(),哪国都有,真是累赘。(转)
阅读(805) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~