commit
3b52781c60
25
README.md
25
README.md
|
@ -34,7 +34,7 @@ I've successfully run this on a Raspberry Pi 4 using the default Bluetooth modul
|
||||||
|
|
||||||
## Installation and Usage 🛠️
|
## Installation and Usage 🛠️
|
||||||
|
|
||||||
### Setup Instructions
|
### Setup Instructions for Debian-based
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# update apt
|
# update apt
|
||||||
|
@ -51,6 +51,29 @@ git clone https://github.com/pybluez/pybluez.git
|
||||||
cd pybluez
|
cd pybluez
|
||||||
sudo python3 setup.py install
|
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
|
# build bdaddr from the bluez source
|
||||||
cd ~/
|
cd ~/
|
||||||
git clone --depth=1 https://github.com/bluez/bluez.git
|
git clone --depth=1 https://github.com/bluez/bluez.git
|
||||||
|
|
Loading…
Reference in New Issue