Skip to content

Instantly share code, notes, and snippets.

@Mausy5043
Last active April 7, 2023 13:56
Show Gist options
  • Save Mausy5043/2ff60eb18d7dffafc799067ef2ff364a to your computer and use it in GitHub Desktop.
Save Mausy5043/2ff60eb18d7dffafc799067ef2ff364a to your computer and use it in GitHub Desktop.
install bleeding edge bluez on Rasberry Pi
#!/bin/sh
if [ -z "$STY" ]; then exec screen -dm -S buildbluez /bin/bash "$0"; fi
sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/deb-src.list
sudo sed -i 's/^deb /deb-src /' /etc/apt/sources.list.d/deb-src.list
sudo apt-get update
sudo apt-get build-dep bluez
sudo apt -y install python3-docutils
cd /tmp
git clone git://git.kernel.org/pub/scm/libs/ell/ell.git
git clone https://github.com/bluez/bluez.git
cd bluez
./bootstrap
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var
make && sudo make all && sudo make install
sudo systemctl daemon-reload
sudo systemctl restart bluetooth.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment