The problem that the sound disappears after Ubuntu Root Login

Source: Internet
Author: User
Ubuntu root logon and sound problems

1. sudo su root, and then enter the password

2. gedit/etc/lightdm. conf (you can back up it in advance ).

[Seatdefaults]

// Add ubuntu14.04 for Automatic Root Login

# Autologin-Guest = true

Autologin-user = root

Autologin-user-Timeout = 2

Autologin-session = lightdm-autologin

// Add Automatic Root Login

 

Greeter-session = unity-greeter

User-session = Ubuntu

Greeter-show-manual-login = true # manually enter the user name and password for logging on to the system

Allow-Guest = false # logon from guest is not allowed

 

Questions about sound failure

1. gedit/etc/profile

Then addPulseaudio -- start -- log-target = Syslog

 

2. Other Methods

 

For the sake of security, the sound system is disabled by default for Ubuntu as the root user.

If you want to enable it easily, because pulseaudio is not started after root login. So start it first.

Add root to the pulse and pulse-access groups:

Sudo usermod-a-g pulse-access Root

Gpasswd-a root pulse

Gpasswd-a root pulse-Access

Then:

Edit the/etc/default/pulseaudio File

 

CP-P/etc/default/pulseaudio. Bak

 

Vim/etc/default/pulseaudio

Modify the following two items:

Pulseaudio_system_start = 1

 

Disallow_module_loading = 0

 

Change to 1 and 0, indicating that the system environment is allowed and the module can be dynamically loaded.

Restart the computer and the sound will come out.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.