Ubuntu – Popcorn-Time installation

software installationtar

I downloaded a new Popcorn Time from popcorn-time.se and I don't know how to install a tar.gz file. I extracted the folder that is in tar.gz and then tried to run command sudo ./install but there in no command found.. What should I do? How to install this "new" Popcorn Time source file?

Best Answer

Those are directly the files you need to run the program. For opening Popcorn Time, just run from the extracted folder:

./Popcorn-Time

However, if you want to know where to save all those files with the other programs, a good place would be /usr/share.
So, let's say the folder where you extracted the files is ~/popcorn-time. Then, you'll have to run this in a terminal:

# Copy the whole folder into /usr/share, using recursive option
sudo cp -r ~/popcorn-time /usr/share/popcorn-time
# Create a symlink to the binary file
sudo ln -s /usr/share/popcorn-time/Popcorn-Time /usr/bin/popcorn-Time

From now on, you'll be able to run popcorn-Time on the Terminal, and it'll open.

Finally, if you want to have an icon in the launcher, create a new file in your home directory, named popcorn.desktop, and write the following in it:

[Desktop Entry]
Name=Popcorn Time
Comment=Watch torrent movies instantly!
Exec=/usr/bin/popcorn-time
Terminal=false
Type=Application