Ubuntu 13.04设置root用户登录图形界面

来源:互联网 发布:java实验心得体会 编辑:程序博客网 时间:2024/05/01 05:42

在Ubuntu 12.10中使用root进行登录方法类似。

先切换到root用户, sudo su root

1、先设定一个root的密码, passwd root

2、备份一下lightgdm

cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak

3、编辑lightdm.conf

 gedit /etc/lightdm/lightdm.conf

5、最后加:

greeter-show-manual-login=true

修改后为:

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu

greeter-show-manual-login=true

重启登陆即可。已经可以输入root了。

注意:如果root登陆后还没声音,又查了查,如下方法:

Ubuntu root登录没有声音这个问题的根本原因是使用root登录后pulseaudio没有启动。

login  as root ,then :

将root加到pulse-access组:

usermod -a -G pulse-access root

启动pulseaudio

pulseaudio --start --log-target=syslog


我的lightdm.conf如下:

[SeatDefaults]
autologin-guest=false                           
#不允许guest登录
autologin-user=root                               #自动以root登录
autologin-user-timeout=0                      
autologin-session=lightdm-autologin     
user-session=ubuntu
greeter-session=unity-greeter
greeter-show-manual-login=true             
#手工输入登陆系统的用户名和密码

0 0