Skip to content

Instantly share code, notes, and snippets.

@Zibri
Created March 6, 2022 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zibri/5d6eb51f33a17c1ffda8e3fc6c331738 to your computer and use it in GitHub Desktop.
Save Zibri/5d6eb51f33a17c1ffda8e3fc6c331738 to your computer and use it in GitHub Desktop.
Bash script to recompile bluez on Linux
#!/bin/bash
#
# Bash script to recompile bluez on Linux
# Tested on Ubuntu 20.04
sudo apt-get update
cd /tmp
sudo apt-get install -y libudev-dev libical-dev libreadline-dev libdbus-1-dev libasound2-dev build-essential
apt-get build-dep bluez
apt-get source bluez
cd bluez-5*
./configure --enable-midi --with-systemdsystemunitdir=/etc/systemd/system
make -j $(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}')
sudo make install
sudo apt-get install --reinstall bluez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment