Linux Ubuntu21.10 root登陆系统没有声音

Ubuntu18.04设置系统默认音频设备:使用pavucontrol命令_DS小龙哥的专栏-CSDN博客一、环境介绍操作系统: 虚拟机运行的Ubuntu18.04 64位二、解决的问题情况说明: 当前ubuntu18.04上有多个声卡设备,两个麦克风(1个USB声卡带的麦克风、1个内置麦克风)、2个扬声器设备(内置外放扬声器、USB接口扬声器)。目的: 想要设置系统默认使用USB接口扬声器放音。三、安装pavucontrol命令一般情况下,系统都自带该命令,无需再下载,...https://blog.csdn.net/xiaolong1126626497/article/details/105828447/

输入该命令就有声音了
pulseaudio --start --log-target=syslog

 既然如此那就把这句话写入到.profile中,每次系统自动加载

root@orz:~# cat .profile 
# ~/.profile: executed by Bourne-compatible login shells.
pulseaudio --start --log-target=syslog

if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

tty -s && mesg n || ture
mesg n 2> /dev/null || true

解决Ubuntu下切换到root用户后没有声音问题_学习是为了探索这个世界的本质-CSDN博客Ubuntu在root用户下,为了安全考虑默认是关闭了声音系统的。如果要开很简单,因为root登录后pulseaudio没有启动。所以要先启动它将root加到pulse和pulse-access组:sudo usermod -a -G pulse-access rootgpasswd -a root pulsegpasswd -a root pulse-accesshttps://blog.csdn.net/SUKHOI27SMK/article/details/19004785

ubuntu 以root登录 无声音_王建国的专栏-CSDN博客输入指令pulseaudio --start --log-target=syslog sudo sh -c echo “pulseaudio –start –log-target=syslog” >> /etc/environment usermod -a -G pulse rootusermod -a -G pulse-access rootgpasswd -a roothttps://blog.csdn.net/wjgwrr/article/details/51743074

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值