Bash script to recompile bluez on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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