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?