apt-get souce

本文提供Dapper 6.06版本的中文环境配置指南,包括软件源更换、语言包安装、中文字体安装及输入法配置等详细步骤。
Dapper (6.04) 版本
请参阅 [Ubuntu简介]

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list
用以下内容替换文件中的所有内容

deb http://archive.ubuntu.org.cn/ubuntu/ dapper main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu/ dapper-security main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu/ dapper-updates main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu/ dapper-backports main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn/ dapper main restricted universe multiverse
这里你也可以直接使用更快速的ubuntu.cn99.com的源(推荐):

deb http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse
这里你还可以使用速度也非常快的的mirror.lupaworld.com的源:

deb http://mirror.lupaworld.com/ubuntu/archive/ dapper main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ dapper-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ dapper-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ dapper-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ dapper main restricted universe multiverse
如果是教育网用户请使用上海交通大学的源:

deb http://ftp.sjtu.edu.cn/ubuntu/ dapper main restricted universe multiverse
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-security main restricted universe multiverse
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ dapper main restricted universe multiverse
保存编辑好的文件

sudo apt-get update
设置本地local环境
1. Breezy(5.10)版本
sudo dpkg-reconfigure locales
确保 zh_CN.UTF-8 被选择,同时也默认local为 zh_CN.UTF-8

2. Dapper(6.06)版本
sudo apt-get install language-support-zh
sudo locale-gen zh_CN
安装中文支持环境
请根据你的系统来选择

1. 安装中文语言支持(Ubuntu)
sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base language-support-zh
2. 安装中文语言支持(KUbuntu)
sudo apt-get install language-pack-kde-zh language-pack-kde-zh-base language-pack-zh language-pack-zh-base language-support-zh
安装中文字体
如果出现需要输入[Y/n] 或 [y/N] 一律输入 y 并 回车

sudo apt-get install ttf-arphic-ukai ttf-arphic-uming
如果希望有更好的中文显示,推荐 使用圆体美化 。

安装输入法
你可以在SCIM和fcitx输入法中任选一种安装

SCIM
$sudo apt-get install scim scim-modules-socket scim-modules-table scim-pinyin scim-tables-zh scim-input-pad
$sudo sh -c " echo 'export XMODIFIERS=@im=SCIM ; export GTK_IM_MODULE="scim" ; scim -d ' > /etc/X11/Xsession.d/95xinput "
$sudo chmod +755 /etc/X11/Xsession.d/95xinput
注:在Dapper下省略后两步

注:在Dapper里也可以直接选择系统->系统管理—>语言支持(language support)勾选Chinese 就会自动安装和配置scim

Fcitx
$sudo apt-get install fcitx
$sudo sh -c " echo 'export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE="fcitx" ; fcitx ' > /etc/X11/Xsession.d/95xinput "
$sudo chmod +755 /etc/X11/Xsession.d/95xinput
注:在Dapper下省略后两步

激活输入法
重新启动Xwindow完成。按 Ctrl + 空格 键激活输入法。

给你个链接 http://wiki.ubuntu.org.cn/%E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6%8C%87%E5%8D%97

转载于:https://www.cnblogs.com/microsoftxiao/archive/2006/07/11/447956.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值