alsa-utils的安装以及alsamixer 的应用

alsamixer是Linux 音频架构ALSA中的Alsa工具的其中一个,用于配置音频的各个参数。alsamixer是基于文本下的图形界面的,可以通过键盘的上下键,左右键等,很方便地设置需要的音量,开关某个switch(开关)等等操作。

1.运行alsamixer 提示未安装

root@greatwall-os:~# alsamixer 
程序“alsamixer”尚未安装。 您可以使用以下命令安装:
apt install alsa-utils

2.安装alsa-utils

alsa-utils下载地址:http://www.alsa-project.org/main/index.php/Main_Page

configure报错:

configure: error: Sufficiently new version of libasound not found.

解决:

安装alsa-lib-1.1.6,下载地址:http://www.alsa-project.org/main/index.php/Main_Page

root@greatwall-os:~/beep/alsa-lib-1.1.6# ./configure

root@greatwall-os:~/beep/alsa-lib-1.1.6# make install

alsa-utils重新configure成功

root@greatwall-os:~/beep/alsa-utils-1.1.6# make install

make[2]: Entering directory '/root/beep/alsa-utils-1.1.6/alsaconf/po'
mv: 无法获取't-ja.gmo' 的文件状态(stat): 没有那个文件或目录
Makefile:41: recipe for target 'ja.gmo' failed
make[2]: *** [ja.gmo] Error 1
make[2]: Leaving directory '/root/beep/alsa-utils-1.1.6/alsaconf/po'
Makefile:379: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/root/beep/alsa-utils-1.1.6/alsaconf'
Makefile:355: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

解决:

创建一个空的文件:

root@greatwall-os:~/beep/alsa-utils-1.1.6/alsaconf/po# touch t-ja.gmo

root@greatwall-os:~/beep/alsa-utils-1.1.6/alsaconf/po# pwd
/root/beep/alsa-utils-1.1.6/alsaconf/po

接下来又报错:

make[2]: Entering directory '/root/beep/alsa-utils-1.1.6/alsaconf/po'
mv: 无法获取't-ru.gmo' 的文件状态(stat): 没有那个文件或目录
Makefile:41: recipe for target 'ru.gmo' failed
make[2]: *** [ru.gmo] Error 1
make[2]: Leaving directory '/root/beep/alsa-utils-1.1.6/alsaconf/po'
Makefile:379: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/beep/alsa-utils-1.1.6/alsaconf'
Makefile:355: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

解决:

创建一个空的目录:

root@greatwall-os:~/beep/alsa-utils-1.1.6/alsaconf/po# touch t-ru.gmo

[Note] System unauthorized, Please contact the system supplier.

root@greatwall-os:~/beep/alsa-utils-1.1.6/alsaconf/po# pwd
/root/beep/alsa-utils-1.1.6/alsaconf/po

root@greatwall-os:~/beep/alsa-utils-1.1.6# make install

3.运行alsamixer  

root@greatwall-os:~/beep/alsa-lib-1.1.6# alsamixer  
No protocol specified
xcb_connection_has_error() 返回真
cannot open mixer: 没有那个文件或目录

解决:需要将root用户加入audio用户组

usermod -G audio root

root@greatwall-os:~/beep/alsa-lib-1.1.6# alsamixer  

 

转载于:https://my.oschina.net/u/3308173/blog/1862114

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值