$sudo apt install pulseaudio
$echo "export DISPLAY=127.0.0.1:0 PULSE_SERVER=tcp:localhost:4712" >> ~/.profile
或export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4712 & >> ~/.profile
执行玩以上任意一条命令,启动GNU/Linux系统后即可在XServer XSDL中输出声音。新版Linux deploy部署镜像时一般都会有pulseaudio。
$echo "export DISPLAY=127.0.0.1:0 PULSE_SERVER=tcp:localhost:4712" >> ~/.profile
或export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4712 & >> ~/.profile
执行玩以上任意一条命令,启动GNU/Linux系统后即可在XServer XSDL中输出声音。新版Linux deploy部署镜像时一般都会有pulseaudio。