Ubuntu 12.04 or 13.10 root configuration

来源:互联网 发布:java byte类型 编辑:程序博客网 时间:2024/06/07 08:01

   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 youneed 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 backagain.
0 0