Overview
Musique Agent runs on Raspberry Pi devices to provide reliable, dedicated audio playback for your locations. This guide covers three different installation methods to suit your deployment needs.Choose Your Installation Method
Select the installation method that best fits your use case:Manual Installation
Best for:
- Learning and understanding each component
- Custom configurations
- Troubleshooting and development
- Full control over the process
Automated Script
Best for:
- Quick POCs (Proof of Concepts)
- Single device deployments
- One-by-one installations
- Simplified setup
Ansible Deployment
Best for:
- Bulk installations (10+ devices)
- Fleet management
- Standardized configurations
- Massive deployments
Method 1: Manual Installation
This method provides complete, step-by-step manual installation of the Musique Agent. Choose this when you need full control over the installation process, want to understand each component, or need to customize your setup.Requirements
Before you begin, ensure you have:Hardware
- Raspberry Pi 4
- Power supply
- Audio output (3.5mm jack or HDMI)
- SD card (16GB+ recommended)
Software
- Debian-based OS (Ubuntu 24.04.3 LTS recommended)
- ALSA audio system
- PulseAudio
- Docker
This guide assumes you have a fresh installation of Ubuntu 24.04.3 LTS or Raspberry Pi OS (64-bit). Both Debian-based operating systems are recommended.
Installation Steps
Step 1: Install ALSA
ALSA (Advanced Linux Sound Architecture) is required for audio output.Check if ALSA is installed
Run the following command to verify if ALSA is already present:If you see a list of packages, ALSA is already installed.
Step 2: Install PulseAudio
PulseAudio manages audio routing for the Musique Agent.Step 3: Install Docker
Docker is used to run the Musique Agent container.Check if Docker is installed
Verify Docker installation:If you see a version number, Docker is installed.
Configuration
Configure ALSA for PulseAudio
Create an ALSA configuration file to route audio through PulseAudio.Install Musique Agent
Download Docker Image
Authenticate with GitHub Registry
Login to the GitHub Container Registry using your organization token:
Run Musique Agent
Enable Auto-Start on Boot
Configure the Musique Agent to start automatically when the Raspberry Pi boots.Create Systemd Service
Run the following command to create a systemd service (replace
xxxx with your user ID):Verify Installation
After installation, verify everything is working:Check Agent Status
Check Agent Status
View the service status:Status should show “active (running)”.
View Logs
View Logs
Check agent logs for any issues:Press
Ctrl + C to exit.Test Audio Playback
Test Audio Playback
Verify audio output is working:You should hear test sounds. Press
Ctrl + C to stop.Check Online Status
Check Online Status
- Log into your Musique dashboard
- Navigate to Analytics
- Verify the device appears as online
Troubleshooting
No audio output
No audio output
Check audio device:Verify PulseAudio is running:Test audio directly:
Agent not starting
Agent not starting
Check service status:View error logs:Common issues:
- Incorrect username/password
- Network connectivity issues
- Docker not running:
sudo systemctl start docker
Docker permission denied
Docker permission denied
Add user to docker group:Log out and log back in for changes to take effect.
Device offline in dashboard
Device offline in dashboard
- Check internet connection
- Verify credentials are correct
- Check service is running:
sudo systemctl status musique-agent - Review logs:
sudo journalctl -u musique-agent -f - Test network connection:
ping google.com
Managing the Agent
Service Commands
Update the Agent
To update to the latest version:Method 2: Automated Script Installation
The automated installation script provides a quick and easy way to install the Musique Agent on Raspberry Pi devices. This method is ideal for POCs (Proof of Concepts), single device deployments, and simplified setup.Prerequisites
Hardware
- Raspberry Pi 4
- Power supply
- Audio output (3.5mm jack or HDMI)
- SD card (16GB+ recommended)
Software
- Debian-based OS (Ubuntu 24.04.3 LTS or Raspberry Pi OS recommended)
- Internet connection
- Root or sudo access
Installation Steps
Switch to Root User (if needed)
If you’re not logged in as root, switch to superuser mode:
Running the installation script as root ensures all system-level configurations are applied correctly.
Download the Installation Script
Download the automated installation script from the Musique Agent repository:
Run the Installation Script
Execute the installation script:The script will automatically handle:
- System package updates
- ALSA installation
- PulseAudio installation and configuration
- Docker installation
- Audio routing configuration
- Musique Agent Docker image download
- Systemd service setup for auto-start
The installation process may take 5-15 minutes depending on your internet connection and system resources.
Post-Installation
The installation script automatically configures the Musique Agent to start on system boot. Use the same service management commands as described in the manual installation method.Method 3: Ansible Deployment (Coming Soon)
Ansible deployment provides an automated, scalable solution for installing and managing the Musique Agent across multiple Raspberry Pi devices simultaneously.Overview
This method will be ideal for:- Fleet Management: Deploy to dozens or hundreds of devices at once
- Standardized Configuration: Ensure consistent setup across all devices
- Bulk Installations: Rapidly deploy Musique to multiple locations
- Infrastructure as Code: Version-controlled, reproducible deployments
Planned Features
The Ansible playbook will automate:- System configuration and package updates
- Dependency installation (ALSA, PulseAudio, Docker)
- Agent deployment with encrypted credential management
- Service configuration and verification
Prerequisites (When Available)
- Ansible installed on your control machine
- SSH access to all target Raspberry Pi devices
- Network connectivity to all devices
Temporary Alternative
While the Ansible playbook is being developed, use the Automated Script method for multiple devices:For enterprise deployment assistance or to request priority access to the Ansible playbook, contact support@musique.app.
Best Practices
Network Connection
Use wired Ethernet connection for best stability and audio quality.
Power Supply
Use official Raspberry Pi power supply to prevent stability issues.
Audio Output
Test audio output before deploying to ensure proper configuration.
Regular Updates
Keep the agent updated to receive latest features and bug fixes.
Monitor Status
Regularly check device status in Analytics dashboard.
Backup Config
Keep a copy of your systemd service file for easy redeployment.
Next Steps
Create Schedules
Set up audio schedules for your new Raspberry Pi device.
Monitor Performance
Track your device status and network quality in Analytics.
Test Network
Use the Speed Test tool to verify connection quality.
FAQ
Find answers to common Raspberry Pi setup questions.

