Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just saw the video about Chromecast and I am interested in knowing how can I enable this on my Ubuntu PC. My TV has an HDMI port.

share|improve this question
Which video did you watch? Could you link to it in your question? – Kevin Bowen Jul 26 '13 at 20:27
None yet, but the addon did install (And I actually took my time to read the information about "How to use Chromecast) which I accidentally skipped yesterday. Was too tired). When I get the chance to test it with a device I will let you know immediately. – Luis Alvarado Jul 26 '13 at 20:39
ok. I just thought that you had a specific video in mind that would be useful for others. I've found a few for my own edification. Cheers! – Kevin Bowen Jul 26 '13 at 22:39
up vote 36 down vote accepted

It looks as if all you need is the browser Chrome or Chromium and the extension below:

share|improve this answer
google said you need android 4.3, win, iphone or chromebook but I think this extension may work in linux – Rodislav Jul 25 '13 at 15:32
I have added it to Chromium - I will try to get hold of a Chromecast, test it and get back to you – azra Jul 25 '13 at 17:09
please share your results here (and if you can please do a test with Chrome also) – Rodislav Jul 26 '13 at 8:38
When I try to install the extension on Ubuntu 13.04 and Chrome 26.0.1410.63, the extension's page says, "This application is not supported on this computer. Installation has been disabled." Nobody else is getting that message? – Sam Swift Jul 27 '13 at 17:56
Same extension installs fine on the same machine in Chromium 28.0.1500.71. Hopefully Chrome will be updated soon? – Sam Swift Jul 27 '13 at 18:01

The documentation from Google indicates that the Google Cast extension is not supported in Linux, but it actually does work.

To get this working in Ubuntu:

  • Make sure you are running either Chromium or Chrome version 28 or higher. Earlier versions will get a "This application is not supported on this computer. Installation has been disabled." error. The 'chromium-browser' package in Ubuntu 13.04 works fine.

  • Make sure iptables is configured to allow the UPnP/SSDP traffic used by the Google Cast browser extension to discover the ChromeCast device.

    The browser will send a multicast UDP packet from the local IP and an ephemeral (random) port to port 1900. The ChromeCast device will respond with a unicast UDP packet from the ChromeCast device's IP and another ephemeral port to the source IP/port of the multicast packet. Note that this is slightly different than most other UPnP devices, which will usually respond with a unicast UDP packet from port 1900 instead of an ephemeral port.

    The typical iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT rule WILL NOT match the response packet, as iptables does not currently have a conntrack helper that supports SSDP. In addition, the iptables -A INPUT -p udp --sport 1900 -j ACCEPT rule typically used for UPnP/SSDP will not work since the replies from the ChromeCast device do not come from port 1900.

    Therefore, you will need to add a rule to accept UDP packets on all ephemeral ports. The ephemeral port range for the initial multicast packet should be 32768-61000 (Verify with cat /proc/sys/net/ipv4/ip_local_port_range), so the following rule should work (note it inserts at the top of the input rules):

    iptables -I INPUT -p udp -m udp --dport 32768:61000 -j ACCEPT

    After the ChromeCast device has been discovered (each time the browser starts), the browser will control it using TCP (HTTP) connections to port 8008, which should not require any special iptables rules.

  • Install the Google Cast browser extension in either Chromium or Chrome. Note that an app/extension called ChromeCast is available, but this is not what you want.

  • If you have not yet set up your ChromeCast device, follow the instructions that come with the device to set it up.

  • Once your device is configured, you should be able to simply click the Cast button in Chromium to Cast your current tab.

share|improve this answer
Thanks for the info on IP tables. I wasn't aware of Chromecast's different behavior from other uPnP devices. – Fred Thomsen Aug 24 '13 at 23:15
To get this solution to work in Fedora using the GUI, go to the Zones tab in "Firewall configuration", select the public zone, go to the ports tab, and add the udp port range 32768-61000 – CamelBlues Jun 20 '14 at 1:07
Sadly, this does not work for Nexus Player. – abergmeier Feb 3 '15 at 19:17
The castv2 protocol seems to use mDNS + Cast(s) protocol on port 8009 instead of the original approach. Additionally, when Mirroring your screen it will send traffic on a separate UDP port for the screen data which is announced dynamically during the handshake. – Roberto Andrade Sep 13 '15 at 14:13
You still need to unblock your incoming port for TCP connections, e.g. 8080, in iptables. – ApolloLV Oct 25 '15 at 22:55


This project is in active development. From version >= 0.4.6 Chromecast is supported in addition to DLNA.

After adding the ppa ppa:qos/pulseaudio-dlna with

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

to our software sources we can install it with:

sudo apt-get install pulseaudio-dlna

It then can be run from a terminal or script with

pulseaudio-dlna [options]

It will add all DLNA and Chromecast client(s) available in the local network as an audio output device to select from the sound settings menu.

We can then stream the audio from any media player (or browser) to our Chromecast client.

For all options see the project's documentation at GIT.

share|improve this answer
Little command added =) – A.B. Dec 4 '15 at 19:19
second step should be sudo apt-get update, something obvious for most of us, but maybe some users face it ;-) – wikier Dec 7 '15 at 13:35
cool, thx for upgrading the answer :+1: – wikier Dec 10 '15 at 8:13
Nice, working out of the box, although stuttering a bit from time to time... thanks, +1 – Rmano Feb 20 at 17:30
@Rmano: glad it works. In case your device is not yet listed as supported the developer masmu may be happy to receive a note. – Takkat Feb 20 at 17:34

I got a Chrome-cast for $49au.

I'm running Ubuntu 14.04 on my PC & Android 4.3 on my Phone.

First you need to plug the Chromecast in and change the TV source to that HDMI port.

Next install the Phone app.

Then use the Phone app to connect the Chromecast to your wifi and then it will update and reboot.

After that, go to your Ubuntu PC and open Chromium and install app. The Chrome-cast device is now listed. it's that simple.

For video file playback : Goto File/Open File... locate video and open. The Chromium browser has a media player built in. then you can stream it, remember to go "full screen" (F11) . :) That's it.

The most important thing is the streaming works out of the box.

Here are the codecs that work in Chromium :

There are other projects like VLC or XBMC that are working on Chromecast compatability, so it won't be long till we can stream everything. If you use Steam you can install VLC or XBMC and stream from one Steam box to another already.

share|improve this answer
Thank you. It works ! – skonsoft Nov 7 '15 at 0:41

You need Google Cast server app on Ubuntu based PC or your NAS.

Chromecast device is new ... question is: "Does this app exist yet?" It is a new opportunity for linux developers.

more info:

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Eliah Kagan Jul 29 '13 at 21:40

I just got my chromecast device. It can stream YouTube and tabs from Chrome. Because Netflix is not available on Ubuntu you cannot stream movies from Ubuntu. Tab streaming gives you a lot of cool features. I already tried: streaming photos from Flickr, streaming videos from Vimeo, streaming music from SoundCloud or Google Music (I connected it to Receiver, so experience is awesome).

I did not see any issues with music streaming, but in video you can see some dropped frames (but not really, I watched some trailers and overall it was fine).

I could not make Chrome with Chromecast play avi files from my local PC. It allows to stream it, but I see black screen on TV (I guess this is not supported).

And I did not do anything special to install Chromecast plugin on Chrome, it just works.

share|improve this answer
It only works if you have your firewall turned off :-( Can others confirm? – NullVoxPopuli Aug 17 '13 at 18:04

Since this thread was stated 2 years ago, it may be worth mentioning to anyone looking at this after Feb 2016 that, on xubuntu 15.10, it was as easy as:

  1. Install Chrome for linux

  2. Install the Google Cast browser extension from within Chrome

Cast the tab you want. Easy as that. Thanks to the top few posts for the above intel.

share|improve this answer

It's suggested that it's Windows-only at this point, but that's not really true. The extension seems to work fine for me on Ubuntu 13.04 (running the latest Chrome). Just be sure you have an Android device and/or Chrome installed on your box(es), and install the free Chrome extension.

share|improve this answer
I had to turn off my firewall to get it to work :-( – NullVoxPopuli Aug 17 '13 at 18:04

protected by jokerdino Aug 18 '13 at 5:24

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.