ubuntu 8.04 root用户下的中文环境配置
1.ubuntu 8.04默认是不允许登陆图形界面,如果要启用,需做以下更改:
网管u家u.bitscn@com
(1)重设 root 的密码:
$sudo passwd root #按提示输两次新的密码,并加以确认。
网管联盟bitsCN_com
(2)$sudo vi /etc/gdm/gdm.conf
AllowRoot=false #修改为 AllowRoot=true 网管网 www.bitscn.com
2.点击 "系统" -> "系统管理" -> "登陆窗口" 菜单,并切换到 "安全" 选项页,然后选中其下的“允许本地管理员登陆”选项。 网管u家www.bitscn.net
3.通过以上两步设置,你可以用root帐号登陆图形界面了,如果需要禁止root帐号登陆图形界面,sudo passwd -l root,或者去掉"系统" -> "系统管理" -> "登陆窗口" 菜单,并切换到 "安全" 选项页,然后去掉选中其下的“允许本地管理员登陆”选项。 网管u家u.bitsCN.com
4.可以通过root登陆图形界面后,默认的界面是英文界面的,需要做以下两步:
网管有家bitscn.net (1)在root用户下,安装中文支持语言包,操作如下:
点击"system"-->"system mangement"-->"language support",在支持的语言中选中勾选"Chinese",在默认的语言中选"Chinese(mainland)",点需"确定",他会下载一些中 文支持语言包的,下载的时间要看各自的网速。
网管论坛bbs_bitsCN_com
(2)vi /etc/.profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
网管bitscn_com
mesg n
# Installed by Debian Installer:
# no localization for root because zh_CN.UTF-8
# cannot be properly displayed at the Linux console
LANG=C #修改此行为:LANG="zh_CN.UTF-8"
LANGUAGE=C #修改此行为:LANGUAGE="zh_CN:zh"
网管有家www.bitscn.net
5.root图形界面上启用scim输入法
(1)apt-get install scim #把默认需要安装的文件都装上 网管联盟 bitsCN_com
(2)touch /etc/X11/Xsession.d/95xinput
export XMODIFIERS=@im=SCIM;
export GTK_IM_MODULE="scim";
export QT_IM_MODULE="scim";
scim -d
网管u家www.bitscn.net
(3)reboot #重启你的系统
- 最新评论