Ubuntu下root用户登陆及中文显示

sudo passwd root //更改root密码。 在 Gnome,打开 系统 --> 系统管理--> 登陆窗口,点击管理 页 ,选择 允许本地系统管理员登陆。 

在终端运行

sudo gedit /etc/gdm/gdm.conf

修改/etc/gdm下的gdm.conf文件来允许root直接登陆,在该文件中,修改其中的AllowRoot=false变成AllowRoot=true重启就可以了 

sudo gedit /usr/share/config/kdm/kdmrc

在 KDE,打开/usr/share/config/kdm/kdmrc,作如下修改 
[X-:0-Core] 
Authorize=true 
AutoLoginAgain=true 
AutoLoginDelay=0 
AutoLoginEnable=true #允许自动登陆 
AutoLoginLocked=false 
AutoLoginUser=root #设置root为自动登陆用户 
ClientLogFile=.xsession-errors 


8.04中选择root进入系统,无法显示中文桌面,而且选择中文后也没有作用

sudo gedit ~/.profile

修改root下隐藏文件.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="zh_CN.UTF-8" 
LANGUAGE="zh_CN:zh" 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值