Using Jack 2 without D-Bus on Debian 7


Index               Contact



Removing D-Bus Dependency

The jackd2 package in Debian 7.x is compiled with D-Bus support, which can cause problems if you want to run it without X or don't want to get involved in dbus configuration. You may want to remove this. The official way would be to recompile the Debian package without dbus support enabled. A less painful way (IMO) is to compile from more recent upstream source and install the new files over the existing Debian package files. Note that this is not officially supported, so if you mess your system up you're on your own.

First get the current Jack 2 source from the git repository:

git clone git://github.com/jackaudio/jack2.git

The above command may change at some point, so always check the jackaudio.org download page before using it. Then (on amd64):

cd jack2
./waf configure --firewire --alsa --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
./waf
su -c "./waf install"
su -c "rm /usr/bin/jackdbus"


The libdir option will be different for non-amd64 systems. The above commands overwrite the files installed by several packages: jackd2, jackd2-firewire, libjack-jackd2-0 and libjack-jackd2-dev. These will all need to be re-installed if you want to return to the standard installation.

To prevent future upgrades of the standard jackd2 package from overwriting your compiled version, use apt pinning.

Create a file /etc/apt/preferences.d/jack containing the following lines:
Package: libjack*
Pin: release
Pin-Priority: -1


Replacing Jack 1 with Jack 2

The quick way to do this is just:

apt-get install libjack-jackd2-dev

This will replace the existing Jack 1 packages with Jack 2. D-Bus support can then be removed using the steps outlined above.

Last updated November 11 2019