Ubuntu 12.04 or 13.10 root configuration

   As you know root account is not allowed by default, so it should do some settings. Here I just write this for record, this will make me not to search the configuration every time from internet. 


1. set root password:

sudo passwd root

2. Change to root account:

su root

3. Backup lightdm.conf in /etc/lightdm folder, or just modify this file.


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

4. Edit lightdm.conf add : greeter-show-manual-login=true

sudo gedit /etc/lightdm/lightdm.conf

add the the below line to the end:

<span style="color:#ff0000;">greeter-show-manual-login=true</span>


5. reboot, you will find the root user can login now. 

But it seems that there is sound or you can't set the volume, that is because

pulseaudio is not started, so we should do the following:


6. Add root to pulse-access group and modify /etc/default/pulseaudio, find PULSEAUDIO_SYSTEM_START,

you will find it is 0, just changed to 1. Also change DISALLOW_MODULE_LOADING=0.


sudo usermod -a -G pulse-access root
gpasswd -a root pulse
gpasswd -a root pulse-access
cd /etc/default/
sudo gedit pulseaudio


change  PULSEAUDIO_SYSTEM_START=1

DISALLOW_MODULE_LOADING=0

then save.


It seems that you need to restart to make it take effect. So far it can resolve the sound problem.

The below method has some defect. I test it this method, it must run the command every time after login.

After I get some update, when reboot,there is no voice again, it can be resolved by the following:

pulseaudio --start --log-target=syslog

It will get the sound back again .
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值