How to Install Snapcast on Debian Latest

Snapcast is an open-source, multi-room audio synchronization software that allows you to stream music to multiple devices simultaneously. In this tutorial, you will learn how to install Snapcast on Debian Latest.

Prerequisites

Before you install Snapcast, make sure you have the following prerequisites:

Step 1 – Install Required Dependencies

First, you need to install the following dependencies:

$ sudo apt-get update
$ sudo apt-get install build-essential git libasound2-dev libvorbisidec-dev libvorbis-dev libopus-dev libflac-dev libavahi-client-dev libssl-dev

Step 2 – Download Snapcast

Next, you need to download the Snapcast package from Github. Use the following command to download the package:

$ git clone https://github.com/badaix/snapcast.git

Navigate to the Snapcast directory:

$ cd snapcast

Step 3 – Build and Install Snapcast

To build and install Snapcast, first, you need to run the following command to create the build directory:

$ mkdir build

Next, navigate to the newly created build directory:

$ cd build

Run the following command to configure Snapcast:

$ cmake ..

Then, build the Snapcast package:

$ make

Finally, install the package:

$ sudo make install

Step 4 – Configure Snapcast

After installing Snapcast, you need to configure it to use your audio devices. First, create a configuration file:

$ sudo nano /etc/snapserver.conf

Add the following configuration:

[server]
port = 1704

Save and close the file.

Step 5 – Start Snapcast

To start Snapcast, run the following command:

$ snapserver -d -c /etc/snapserver.conf

This will start the Snapcast server in the background.

Step 6 – Test Snapcast

To test Snapcast, start the Snapcast client on another device on the same network:

$ snapclient

This will start the Snapcast client and connect it to the server. You should now be able to play music on the client and have it synced across all devices connected to the Snapcast server.

Congratulations! You have successfully installed and configured Snapcast on Debian Latest.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!