Stream music from Ubuntu to Chromecast
Stream music from Ubuntu to Chromecast

One of the best ways to experience seamless music is by streaming it via a DLNA / UPnP devices such as Chromecast, Roku, Amazon Fire Stick, and etc.. Smartphone is the first obvious choice to start streaming music due to its portability. How about using your Ubuntu PC to stream music when you are working on it? Seems like a handy idea!

Check out “Pulseaudio-DLNA” utility for Linux. It is lightweight streaming server which brings DLNA / UPNP and Chromecast support to PulseAudio and Linux. It can stream your current PulseAudio playback to different UPNP devices in your network. The utility is easy to use, and easy to configure.

Installing Pulseaudio-DLNA in Ubuntu

I have tested it on Ubuntu 17.10, but should work on older Ubuntu versions, Linux Mint, elementary OS, and derivatives without hassles.

Step 1) Launch ‘Terminal’.

Step 2) Enter the following command and press return to add PPA.

sudo apt-add-repository ppa:qos/pulseaudio-dlna

Step 3) Update the repositories in your computer.

sudo apt update

Step 4) Install Pulseaudio-DLNA using apt command:

sudo apt install pulseaudio-dlna

Step 5) Now run this command to start scanning for available Chromecast devices on your Wi-Fi network. Make sure to have the Chromecast power ON and connected to same Wi-Fi network as your Ubuntu PC.

pulseaudio-dlna
Pulseaudio DLNA will disover all the streaming devices in the Wi-Fi network
Pulseaudio DLNA will discover all the streaming devices in the Wi-Fi network

Step 6) You can close and terminal after a minute or so, and then go to “Settings”.

Go to Ubuntu Settings
Go to Ubuntu Settings

Step 7) Click “Sound” in the left pane. You should see Chromecast devices listed. To start streaming, simply select the device and then start playing music!

Chromecast devices added to System Audio Settings
Chromecast devices added to System Audio Settings

 

SOURCEPulseAudio DLNA
Previous articleHow to control your Android phone from Ubuntu PC
Next articleRelax and Concentrate with Ambient Noise for Ubuntu
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover, and enjoys hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find time, drop me an email or feedback from 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Mike Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Mike
Guest
Mike

Hi, thanks for this. I’m a new Linux Mint user (fork of Ubuntu). I am trying to get MP3s streaming from my Linux system to my “smart” TV over Wifi. I tried your solution but nothing changed on the “Chromecast” app on my smartphone… after selecting the device in “Sound” how do I then “just start playing music”? BTW I do indeed still see “Chromecast” as one of the inputs on my TV… and did select it (of course!). NB I’ve also just installed (before this) Kodi: I’d assumed that would broadcast MP3s over Wifi… but there’s no sign of… Read more »