Connecting a Bluetooth speaker to a Raspberry Pi Zero W running Raspian Stretch Lite
5246
5245
<
ol
>
<
br
><
li
>
sudo
apt
-
get
update
&&
sudo
apt
-
get
dist
-
upgrade
li
>
<
br
><
li
>
sudo
apt
-
get
install
bluealsa
li
>
<
br
><
li
>
sudo
service
bluealsa
start
li
>
<
br
><
li
>
Switch
on
your
bluetooth
device
li
>
<
br
><
li
>
sudo
bluetoothctl
li
>
<
br
><
li
>
scan
on
li
>
<
br
><
li
>
pair
XX
:
XX
:
XX
:
XX
:
XX
:
XX
(
replace
the
XXXXX
with
your
device
ID
)
li
>
<
br
><
li
>
trust
XX
:
XX
:
XX
:
XX
:
XX
:
XX
li
>
<
br
><
li
>
connect
XX
:
XX
:
XX
:
XX
:
XX
:
XX
li
>
<
br
><
li
>
exit
li
>
<
br
><
li
>
aplay
-
D
bluealsa
:
HCI
=
hci0
,
DEV
=
XX
:
XX
:
XX
:
XX
:
XX
:
XX
,
PROFILE
=
a2dp
/
usr
/
share
/
sounds
/
alsa
/*
li
>
<
br
>
ol
>
Stop