Linux PC "を" Bluetooth Speaker としてつかう
ども
今回はLinux PCをBluetoothスピーカーとして使っていくよ
環境はArch Linux 。Bluetooth まわりで必要なものは前回のこれ↓で確認。多分今回のでは必要ないのも含まれてるけど
http://bobbyquine.hatenablog.com/entry/2019/01/15/204651
今回は作業中だったのでrootユーザーで進めていく。一般ユーザーでやるときは適宜sudo 使ってね。
参考にしたページ↓
設定
# pacman -S bluez bluez-utils
# vim /etc/bluetooth/audio.conf
以下を追加---------------------------------------------------------------
[General]
Enable=Source
------------------------------------------------------------------------------
起動、ペアリング
# systemctl start bluetooth
# bluetoothctl
シェルが変わる
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# scan on
それっぽいのを探して
[bluetooth]# pair yourdevicesMacAdd
ペアリングしたらちゃんとコネクトもしてあげましょ
[bluetooth]# connect yourdevicesMacAdd
これで使えるようになったはず
以上