Ubuntu root下无声音问题
来源:互联网 发布:unix环境高级编程linux 编辑:程序博客网 时间:2024/04/27 15:11
Ubuntu root下默认关闭声音,通过如下步骤开启声音
1. 将root加入到pulse和pulse-access中
usermod -a -G pulse-access rootgpasswd -a root pulsegpasswd -a root pulse-access
2. 修改/etc/default/pulseaudio文件
cp -p /etc/default/pulseaudio/etc/default/pulseaudio.bakvi /etc/default/pulseaudio
默认为
# Start the PulseAudio sound server in system mode.# (enables the pulseaudio init script - requires that users be in the# pulse-access group)# System mode is not the recommended way to run PulseAudio as it has some# limitations (such as no shared memory access) and could potentially allow# users to disconnect or redirect each others' audio streams. The# recommended way to run PulseAudio is as a per-session daemon. For GNOME/KDE/# Xfce sessions in Ubuntu Lucid/10.04, /etc/xdg/autostart/pulseaudio.desktop# handles this function of automatically starting PulseAudio on login, and for# it to work correctly your user must *not* have "autospawn = no" set in# ~/.pulse/client.conf (or in /etc/pulse/client.conf). By default, autospawn# is enabled. For other sessions, you can simply start PulseAudio with# "pulseaudio --daemonize".# 0 = don't start in system mode, 1 = start in system modePULSEAUDIO_SYSTEM_START=1 # Prevent users from dynamically loading modules into the PulseAudio sound# server. Dynamic module loading enhances the flexibility of the PulseAudio# system, but may pose a security risk.# 0 = no, 1 = yesDISALLOW_MODULE_LOADING=0
将PULSEAUDIO_SYSTEM_START=1改为0, DISALLOW_MODULE_LOADING=0改为1
3. 重启,使设置生效
PS. 如果要以普通用户登录,则把.bak文件恢复即可
来源: http://blog.chinaunix.net/uid-9688646-id-3275005.html
- Ubuntu root下无声音问题
- ubuntu 12.10 root 登录 无声音解决方法
- ubuntu解决root登录无声音
- ubuntu 12.10 root 登录 无声音解决方法
- Ubuntu 15.04 root登录,无声音解决方案
- ubuntu 以root登录 无声音
- Ubuntu root&&root登陆声音问题
- ubuntu root 如何启用,以及解决root下声卡没声音问题
- ubuntu root 如何启用,以及解决root下声卡没声音问题
- Ubuntu 10.4 root账户声音问题
- Ubuntu下声音问题 alsamixer
- 解决Ubuntu下切换到root用户后没有声音问题
- 解决Ubuntu下切换到root用户后没有声音问题
- ubuntu 10.04 root 声音
- ubuntu 无声音解决方案
- ubuntu耳机无声音
- ubuntu 下root用户无法访问声音设备的解决方案
- Ubuntu 11.04 root用户没有声音的问题
- IOS自定义字体
- netty的误区
- android侧滑效果,SlidingMenu配置
- 排序算法之冒泡排序的基本介绍和数组越界,以及交换2个变量的3种方法
- MySql引擎
- Ubuntu root下无声音问题
- C++this指针
- poj 2376 Cleaning Shifts 贪心
- iOS☞旋转动画学习总结
- java System类
- mac下如何看凤凰卫视等直播
- 开始使用MASM
- Computer Vision Research Groups
- updating to Android SDK Tools出现问题解决办法