Debain 安装与卸载
1
2
3
|
sudo apt-get install -y xxx
sudo apt-get remove xxx
sudo apt-get autoremove xxx # 慎用!
|
pip3 安装
1
2
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
|
网易云音乐 Linux 版本
1
2
3
4
|
$ git clone https://github.com/darknessomi/musicbox.git && cd musicbox
$ ## or (sudo) pip(3) install NetEase-MusicBox
$ python(3) setup.py install
$ (sudo) apt-get install mpg123
|
树莓派连接蓝牙音箱
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
## 查看蓝牙状态
systemctl status bluetooth
## 添加蓝牙组
sudo usermod -G bluetooth -a pi
sudo reboot
#安装其他lib
sudo apt-get install pi-bluetooth bluez bluez-firmware blueman -y
#安装pulseaudio
sudo apt-get install pulseaudio-module-bluetooth -y
#修改pulseaudio的空闲退出时间
#sudo nano /etc/pulse/daemon.conf
#设置
#exit-idle-time = -1
#开户pulseaudio
pulseaudio --start
bluetoothctl
power on
agent on
default-agent
scan on
pair XX:XX:XX:XX:XX:XX
trust XX:XX:XX:XX:XX:XX
connect XX:XX:XX:XX:XX:XX
exit
#显示可用发音设备
pacmd list-sinks
#设置默认发音设备
pacmd set-default-sink bluez_sink.XX:XX:XX:XX:XX:XX
#测试
wget http://youness.net/wp-content/uploads/2016/08/h2g2.ogg
paplay h2g2.ogg
|
表示连接一次蓝牙好难,不好玩!