Ubuntu 10.04 root user volume adjustment

Source: Internet
Author: User

BenArticleIt is built on an existing sound card driver that allows normal user logon to adjust the volume normally.

In ubuntu 10.04, pulseaudio is used by default to manage audio devices. pulseaudio is not allowed to run under the root user, which may cause security problems. Therefore, the system volume cannot be changed, and the voice preference is always "waiting for the sound system to respond ".

If you run pulseaudio directly, you will be prompted.

Root @ coppers :~ # Pulseaudio
W: Main. C: the script should not be run as root.Program(Unless-system is specified ).

If the system parameter is added, many modules are disabled.

There are many solutions. For security reasons, you can install the gnome ALSA mix to manage the volume, but the system still cannot hear the sound. The second is to modify the default pulse configuration file so that it can run under the root permission.

Edit/etc/default/pulseaudio

Root @ coppers :~ # Gedit/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.

This will have some negative effects. You can read the comments in this document carefully.

This blog is intended to be written because you are used to root users and need to solve many problems caused by root. Discovering and solving problems is far better than avoiding them

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.