Yify-pop, the opensource netflix streaming torrents from Yify

Remember Popcorn Time? and all its alternatives such as Popcorn Team, Time4Popcorn, Atraci, and many others, that came basically after the end of the Popcorn time project?

Well, after the entry of Netflix in several new countries, it has not been long to see an opensource alternative, a kind of Netflix + Popcorn time actually.

Popcorn Time was a fancy software to install on your computer and allowing you to watch all the top movies and TV-shows based on popular trackers. You were then able to watch them like if it was a simple stream (Just click play and watch) but in peer to peer.

Great software but a big problem for your privacy. Indeed, if you use such software it is easy to catch your IP on the trackers and know if you are downloading the latest Hollywood blockbusters.

Well, this is where Yify Pop will interest a lot of people.

yify-pop main page

Yify Pop is a web server to stream torrents from yify, with a nice interface, which is actually responsive design (Mobile/Tablet friendly).

Easy to install on a remote server, Yify Pop has a large set of movies, TV shows and also includes a large set of subtitles in different languages.

yify-pop TV shows game of thronesBasically, a great software to watch in streaming all the latest movies, TV shows, etc…

Unfortunately, it might not be legal in your country.

But for the sake of knowledge, let’s see how to install it!

Yify-pop waiting for stream buffer

Installation

You will first need to install node.js and npm.

1) Install nodejs and npm

– If you use Ubuntu, simple run (as root)

apt-get install nodejs npm

– If you are on Debian (Wheezy?) like me, you can install nodejs from wheezy-backports (modify your source.list accordingly) and run (in root):

apt-get install nodejs nodejs-legacy curl

and for npm, you can use the installer (still in root)

curl https://www.npmjs.com/install.sh | sh

2) Clone their git repository into your /var/www

Still in root (or with sudo):

cd /var/www
git clone https://github.com/yify-pop/yify-pop

3) Install the 2 specific requirements (Geddy and Peerflix)

Still in root:

cd yify-pop
npm -g install geddy
npm -g install peerflix

4) Install the application

Still in root:

npm install

5) Start the server

geddy

and simply go to http://YourIP:4000/

yify-pop stream video p2p start

 

Make it a service

Now you want to make sure the application stay always on? I recommend you to use forever that will make sure your nodejs application is always running. If suddenly the process is killed, forever will bring it back.

1) Install forever

npm -g install forever

2) Launch Yify-Pop with forever

forever start /usr/bin/geddy

if you want to stop it, simply run:

forever stop /usr/bin/geddy

You can actually replace /usr/bin/geddy by any of your js application.

3) Now you want to make sure geddy is started at boot time

To do so, you will need to create a init.d script that will give us control to start or stop the service.

Still in root, create an init.d script called geddy:

nano /etc/init.d/geddy

and paste:

#!/bin/sh

### BEGIN INIT INFO
# Provides:          Yify-pop
# Required-Start:    $local_fs 
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: geddy
### END INIT INFO

export PATH=$PATH:/usr/local/bin
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules

case "$1" in
  start)
  exec forever start /usr/bin/geddy
  ;;
stop)
  exec forever stop /usr/bin/geddy
  ;;
*)
  echo "Usage: /etc/init.d/geddy {start|stop}"
  exit 1
  ;;
esac

exit 0

You can update the command to run if you want to change the default port, etc…

Save (CTRL +X) and make it executable.

chmod +x /etc/init.d/geddy

and add it to your boot sequence:

update-rc.d geddy defaults

Now if you restart your server, (or simply start manually the script), Yify-pop will be back to life!

 

Well it’s not done yet, you could also want to change the port number or directly redirect the port 4000 to a sub domain (Easier to remember and better if you want to make it an open service). Here is how.

Virtualhost configuration

What you will need:

1) Create a A redirection in your DNS server/registrar with something like stream.domain.tld to your IP

2) Have SSL certificate ready. If not you can read this tutorial. (Optional)

3) Install Mod Proxy HTML and activate proxy HTTP

In root, run:

apt-get install libapache2-mod-proxy-html
a2enmod proxy_http

4) Create your virtualhost as following:

In /etc/apache2/sites-enabled/, create a file called yify-pop (In root):

nano /etc/apache2/sites-enabled/yify-pop

and paste the following content:

<VirtualHost *:80>
        ServerAdmin webmaster@domain.tld
        ServerName stream.domain.tld
        Redirect / https://stream.domain.tld
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/ssl/certs/myblog.pem
        SSLCertificateKeyFile /etc/ssl/private/myblog.key

        ServerAdmin webmaster@domain.tld
        ServerName stream.domain.tld

        ProxyRequests Off
        Order deny,allow
        Allow from all

        ProxyPass / https://localhost:4000
        ProxyPassReverse / https://localhost:4000

</VirtualHost>
</IfModule>

Adapt the content (Servername, webmaster email, SSL certificate, directory,…).

When done, save the file (CTRL+X then Yes) and reload apache: (In root)

/etc/init.d/apache2 reload

From now one, all the connections to stream.domain.tld will be redirected first to https://stream.domain.tld, which will be redirected to localhost:4000

And voila! All set!

 

If any question, I suggest you to visit their github issues tracker. Many new features are coming so keep in touch with the project!

Gravatar

Loves to discover web-based apps to install on his own server@home and write articles about it

0 Comments:

Add a comment