ubuntu 8.04 root用户下的中文环境配置

1.ubuntu 8.04默认是不允许root用户登陆图形界面,如果要启用root,需做以下更改:

    (1)重设 root 的密码:
    $sudo passwd root #按提示输两次新的密码,并加以确认。

    (2)$sudo vi /etc/gdm/gdm.conf
    AllowRoot=false #修改为 AllowRoot=true

    2.点击 "系统" -> "系统管理" -> "登陆窗口" 菜单,并切换到 "安全" 选项页,然后选中其下的“允许本地管理员登陆”选项。

    3.通过以上两步设置,你可以用root帐号登陆图形界面了,如果需要禁止root帐号登陆图形界面,sudo passwd -l root,或者去掉"系统" -> "系统管理" -> "登陆窗口" 菜单,并切换到 "安全" 选项页,然后去掉选中其下的“允许本地管理员登陆”选项。

    4.可以通过root登陆图形界面后,默认的界面是英文界面的,需要做以下两步:

    (1)在root用户下,安装中文支持语言包,操作如下:
    点击"system"–>"system mangement"–>"language support",在支持的语言中选中勾选"Chinese",在默认的语言中选"Chinese(mainland)",点需"确定",他会下载一些中文支持语言包的,下载的时间要看各自的网速。

    (2)vi /etc/.profile
    # ~/.profile: executed by Bourne-compatible login shells.

    if [ "$BASH" ]; then
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    fi

    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"

    5.root图形界面上启用scim输入法
    (1)apt-get install scim #把默认需要安装的文件都装上

    (2)touch /etc/X11/Xsession.d/95xinput
    export XMODIFIERS=@im=SCIM;
    export GTK_IM_MODULE="scim";
    export QT_IM_MODULE="scim";
    scim -d

    (3)reboot #重启你的系统

点赞 (0)

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Captcha Code