Skip to content

Instantly share code, notes, and snippets.

@skylord123
Created November 11, 2015 05:38
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skylord123/892b6e30b724b81a8a48 to your computer and use it in GitHub Desktop.
Save skylord123/892b6e30b724b81a8a48 to your computer and use it in GitHub Desktop.
Linux machine to chromcast server
Following is taken from: https://plus.google.com/111475821387295047208/posts/KDEfS6S2hyk
-------------------------
How to turn your Linux machine into a Chromecast Server
Stream YouTube, Netflix, Hulu, Etc. from your smartphone or tablet onto your server or laptop. ...without buying Chromecast hardware...
Prerequisite- Install Google Chrome on your Desktop. Install Chromecast application onto your portable device.
Copy and paste these commands:
1) sudo apt-get install git python-setuptools
2) git clone https://github.com/dz0ny/leapcast.git
3) cd ./leapcast
4) python setup.py develop
5) leapcast --name MyNameHere --chrome /usr/bin/google-chrome --fullscreen
Run the Chromecast application on your phone or tablet. Make sure your devices are on the same WIFI channel. Your phone will discover your device named MyNameHere.
Now, when you run Netflix, YouTube, etc. your video streams to your computer and its sound system- when you click on the new little square Chromecast icon in your window. You'll figure it out.
Does it work? Yes. Have fun!
--------------------------
@recolic
Copy link

recolic commented Oct 9, 2020

Note that, leapcast has been deprecated.

@danwdart
Copy link

Are there any good replacements?

@recolic
Copy link

recolic commented Oct 22, 2021

I don't know... I just noticed that, leapcast put this message on their github.
I want an alternative.

@skylord123
Copy link
Author

skylord123 commented Oct 22, 2021

I'm going to try this out and see how well it works:
https://github.com/MayaPosch/NymphCast/
It doesn't work with chromecast so you would need to get a linux machine like a raspberry pi or something to receive the content. Looks pretty promising. I have an extra PI Zero W so I will try it out when I get a chance.

Most of my content is stored in Plex and Plex lets you send movies/tv shows to other devices on the same network already. Example: if you have plex open in a tab on your computer you can play content from your phone by "casting" to your pc tab. Downside is this only works with content on Plex.

Another solution is to use screen mirroring. You can send your mobile display to your PC this way. The downside is your mobile phone is unusable during the stream as it is literally sending your mobile screen to the remote machine.

I think I am going to give NymphCast a try. I like the idea of being able to cast but also fallback to a mouse and keyboard for manually playing something without using another device. Every now and then I find a website that doesn't support casting and so having a fallback is always nice. This is one reason I do like the firestick over the chromecast as you can actually use the firestick without a phone/another device.

@arafatamim
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment