The humble, Linux-based Raspberry Pi started out as a tiny, affordable computer for learning programming, but it has grown into a favorite among DIY enthusiasts. This little device can stream music, run mini servers, or power home automation projects, all while staying compact and cost-effective. Sales have been growing steadily, and by May 2021, over forty million boards had been sold. That year alone, Raspberry Pi produced 7 million units.
If you use a Pi, you probably know that the Pi MusicBox can stream music from services like TIDAL, local music libraries, and more by using specialized software such as Volumio, LMS, or Moode Audio.
But what about Apple Music? Can you play Apple Music on a Pi? In this guide, we'll show you real methods to turn your Pi into a fully capable Apple Music hub.
Method 1. Play Apple Music on Raspberry Pi Using the Web Player
The web player is the easiest way to play Apple Music on your Pi if you have a stable internet connection and just want to listen to music online. You don't need to install extra software. Just open a browser like Chromium, sign in with your Apple ID, and start streaming.
Requirements Before You Start:
- Your Raspberry Pi is connected to a stable Wi-Fi network.
- A browser installed on your Pi (Chromium recommended).
- Make sure your Raspberry Pi is connected to your Wi-Fi network.
- Open the Chromium browser (or another browser installed on your Pi).
- Go to music.apple.com.
- Sign in with your Apple ID.
- Browse your library, playlists, or the Apple Music catalog.
- Click Play on a song or playlist.
Method 2. Stream Apple Music on Raspberry Pi with a Linux Client (Cider)
Cider lets you run iOS apps on your Pi, including Apple Music. It takes a little more setup, but once it's ready, you get the full Apple Music experience. You can browse your library, playlists, and even use the App Store - just like on an iPhone or iPad. This method is ideal if you want more features than the web player.
Requirements Before You Start:
- Your Raspberry Pi is connected to the internet.
- Basic familiarity with terminal commands on Linux.
- Ensure your Raspberry Pi is connected to the internet.
- Open a terminal on your Raspberry Pi.
- Clone the Cider repository:
git clone https://github.com/HemantSachdeva/Cider.git - Navigate to the Cider folder:
cd Cider - Make the installation script executable:
chmod +x install.sh - Run the installation script with superuser privileges:
sudo ./install.sh - Reboot your Raspberry Pi after installation.
- Open Cider in the terminal by typing:
cider - Access the Apple App Store within Cider.
- Download and install the Apple Music app.
- Open Apple Music, sign in with your Apple ID, and browse your library.
Method 3. Stream Apple Music on Raspberry Pi via AirPlay (Shairport Sync)
AirPlay doesn't support Chromecast. However, tools like Shairport Sync or RPiPlay make your Raspberry Pi work like an AirPlay speaker. You can send music from your iPhone or iPad to the Pi over Wi-Fi. You don't need to install Apple Music on the Pi itself - just play music on your device, and it streams directly to your Pi.
Step 1: Set Up Third-Party Options for AirPlay
Option 1: Using Shairport Sync
- Ensure your Raspberry Pi is connected to your Wi-Fi network.
- Open a terminal and install Shairport-Sync:
sudo apt-get update
sudo apt-get install shairport-sync - Start the AirPlay server:
sudo service shairport-sync start
Option 2: Using RPiPlay
- Ensure your Raspberry Pi is connected to your Wi-Fi network.
- Open a terminal and install RPiPlay by running:
sudo apt-get update
sudo apt-get install cmake git libavahi-compat-libdnssd-dev libplist-dev libavcodec-dev libavformat-dev libavutil-dev
git clone https://github.com/FD-/RPiPlay.git
cd RPiPlay
mkdir build
cd build
cmake ..
make
sudo make install - Start RPiPlay by running:
rplay
Step 2: AirPlay Apple Music to Your Raspberry Pi
- On your iPhone or iPad, open the Apple Music app.
- Start playing a song or playlist.
- Make sure your Raspberry Pi and iOS device are connected to the same Wi-Fi network.
- Tap the AirPlay icon (a rectangle with an arrow pointing into it).
- Select your Raspberry Pi from the list of available devices.
- Your Apple Music will now stream to your Raspberry Pi. You can control playback and volume directly from your iOS device.
Method 4. Download and Play Apple Music on Raspberry Pi with a Music Converter
Normally, you can't just open Apple Music on any device like Pi because its DRM protection keeps it locked to Apple platforms. Most of the time, users will need a DRM-removal tool like ViWizard Apple Music Converter to get Apple Music anywhere.
ViWizard is designed carefully for Apple Music. It converts DRM-protected tracks into common formats your Pi can actually read, like FLAC. The conversion process is surprisingly fast - up to 30 times faster than traditional methods - and it keeps all the ID3 tags intact. That means your music stays organized, with correct song titles, artists, and album info.
I set it up on my computer, picked a few playlists, and let ViWizard do its job. Soon, my songs were ready to transfer to the Pi. Everything played smoothly, no internet needed, and I could control playback just like normal music files. Here's how:
Requirements Before You Start:
- A computer with ViWizard Apple Music Converter installed.
- Access to your Apple Music account.
- A USB drive or network connection to transfer files to the Raspberry Pi.
- An audio player installed on the Raspberry Pi.

Key Features of ViWizard Apple Music Converter
Free Trial Free Trial* Security verified. 5, 481,347 people have downloaded it.
- Convert Apple Music songs, albums, playlists, and artists into MP3 for easy access
- Preserve lossless audio, high-resolution lossless, and Dolby Atmos quality
- Strip DRM from Apple Music for unrestricted offline listening
- Save converted audio files while retaining full ID3 tag details
- Download and install ViWizard Apple Music Converter on your computer.
- Open ViWizard and sign in to your Apple Music account.
- Select the playlists, albums, or songs you want to convert.
- Choose MP3 as the output format.
- Start the conversion process and wait for it to finish.
- Locate the converted MP3 files on your computer.
- If using a USB drive, insert it into your computer.
- Copy the converted MP3 files and paste them into the USB drive.
- Safely eject the USB drive from your computer and plug it into your Raspberry Pi.
- Copy the music files from the USB drive into a folder on your Raspberry Pi (e.g.,
/home/pi/Music
). - If using a network connection, open your preferred file transfer client (e.g., WinSCP, Cyberduck, FileZilla).
- Connect to your Raspberry Pi using its IP address or hostname.
- Navigate to the folder where you want to store your music (e.g.,
/home/pi/Music
). - Copy the converted MP3 files from your computer and paste them into the folder on your Raspberry Pi.
- Open your audio player on the Raspberry Pi.
- Navigate to the folder containing your converted music. Your Apple Music is now ready to play offline on your Raspberry Pi.
FAQs About Playing Apple Music on Raspberry Pi
Why can't I play Apple Music directly on Raspberry Pi?
Apple Music doesn't support native streaming on Raspberry Pi, and iTunes only runs on x86 systems. To play music, you need workarounds like AirPlay or converted files.
Why can't I run iTunes on Raspberry Pi?
iTunes only works on x86 systems and isn't compatible with the ARM-based Raspberry Pi. There's no practical way to install it directly.
Can Raspberry Pi act as an AirPlay receiver for Apple Music?
Yes. With tools like Shairport-Sync, Raspberry Pi can receive AirPlay streams from an iPhone or Mac. This is the most common and reliable method.
Can I play Apple Music offline on Raspberry Pi?
Yes. You can convert DRM-protected Apple Music tracks to MP3 or FLAC using tools like ViWizard, then transfer the files to your Pi offline.
Why does Apple Music only play part of the song on Raspberry Pi?
Songs may stop after about 90 seconds because of browser and DRM limits on the web player. Full playback works normally on other devices.
Verdict
To draw a conclusion from the above passage, obviously play Apple Music on Raspberry Pi via AirPlay is a lot more cumbersome and time-consuming than Method 4. On top of that, Method 4 enables you not only to stream Apple Music to Raspberry Pi but to back up your favorite Apple Music songs and listen to them on any other devices offline. To be honest, Method 2 can help you accomplish many things in one time, without hassle. So don't miss ViWizard Audio Converter. Click the link below to listen to Apple Music playlists on any devices.
Leave a Comment (0)