歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> ubuntu 8.04 root用戶下的中文環境配置

ubuntu 8.04 root用戶下的中文環境配置

日期:2017/3/2 16:44:17   编辑:Linux服務器

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 #重啟你的系統

Copyright © Linux教程網 All Rights Reserved