From a47d95f66ffc4270f4d968953e8572180b612bd3 Mon Sep 17 00:00:00 2001 From: ColdVisionz <73615575+coldvisionz@users.noreply.github.com> Date: Sat, 25 May 2024 21:04:30 +0000 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5620e8b..d29c354 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ I've successfully run this on a Raspberry Pi 4 using the default Bluetooth modul ## Installation and Usage 🛠️ -### Setup Instructions +### Setup Instructions for Debian-based ```bash # update apt @@ -51,6 +51,29 @@ git clone https://github.com/pybluez/pybluez.git cd pybluez sudo python3 setup.py install +# build bdaddr from the bluez source +cd ~/ +git clone --depth=1 https://github.com/bluez/bluez.git +gcc -o bdaddr ~/bluez/tools/bdaddr.c ~/bluez/src/oui.c -I ~/bluez -lbluetooth +sudo cp bdaddr /usr/local/bin/ +``` +### Setup Instructions for Arch-based + +```bash +# update pacman & packages +sudo pacman -Syyu + +# install dependencies +# since arch doesn't separate lib packages: libbluetooth-dev included in bluez package +sudo pacman -S bluez-tools bluez-utils bluez-deprecated-tools \ + python-setuptools python-pydbus python-dbus + git gcc python-pip \ + +# install pybluez from source +git clone https://github.com/pybluez/pybluez.git +cd pybluez +sudo python3 setup.py install + # build bdaddr from the bluez source cd ~/ git clone --depth=1 https://github.com/bluez/bluez.git