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