Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
add comment

5 Answers

up vote 16 down vote accepted

It looks as if all you need is the browser Chrome or Chromium and the extension below: https://chrome.google.com/webstore/detail/google-cast/boadgeojelhgndaghljhdicfkmllpafd

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
1  
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
3  
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
show 1 more comment

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 239.255.255.250 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:

    iptables -A 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
add comment

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: https://developers.google.com/cast/

share|improve this answer
1  
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
add comment

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 imdb.com 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
add comment

Be careful, the Ubuntu crowd will (as always) unnecessarily over-complicate things.

It's a super-simple, and super-cool device.

Just be sure you have an Android device and/or Chrome installed on your box(es), install the free Chrome extension (https://chrome.google.com/webstore/detail/google-cast/boadgeojelhgndaghljhdicfkmllpafd)

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).

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

protected by jokerdino Aug 18 '13 at 5:24

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

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.