1

I have a headless raspberry pi (it's networked but not plugged into any keyboard or monitor). I've previously used it to play music through a wired speaker plugged into the headphone socket.

I was wondering if it would be possible to connect the raspberry pi to a bluetooth speaker. But irritatingly all the information I can find about bluetooth and linux want do give me a GUI solution.

I'm looking for instructions on how to connect a debian (raspbian) machine to a blue tooth device (bluetooth speaker) from the command line only. The aim will be to do this over SSH.

Can anyone suggest a direction or tutorial for how to do this?

  • Do your speakers have a button with the Bluetooth symbol on it? – Seamus Feb 22 at 7:59
  • @Seamus yes. They are Bluetooth speakers, as stated in the question. – Philip Couling Feb 22 at 9:16
  • I got that... I just wanted to verify they had the push button to facilitate the pairing process. Have you been able to accomplish that yet? – Seamus Feb 22 at 11:13
  • @Seamus I've honestly never seen a Bluetooth device without a pairing button or soft-button equivalent. It looks like bluetoothctl might be the start of it, but might be only step one of two. I will need to pair with the speaker, and I will need to set up the speaker as a sound device. Before I play around with bluetoothctl, I don't know if the second step is automatic. – Philip Couling Feb 22 at 11:19
  • Thinking about it, there might be a step 3 where I choose which sound device to use. One thing at a time I guess. – Philip Couling Feb 22 at 11:20
0

You can do it using bluetoothctl. There is a guide for it: https://bluedot.readthedocs.io/en/latest/pairpipi.html#using-the-command-line

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.