Monthly Archives: March 2014

PopCorn Time en Fedora 20

Trae los pochocolos Graciela !!! PopCorn Time en Fedora 20 !!

En esta mini guia vamos a ver como instalar esta flamante aplicacion que hizo estragos por todos lados :)…
Paso 1:


[localhost@/home/rrondan/Downloads $] sudo yum install nodejs rubygem-compass wget git

Paso 2:

Vamos a obtener desde el repositorio el codigo fuente:

[localhost@/home/rrondan/Downloads $] git clone https://github.com/popcorn-team/popcorn-app.git
Cloning into ‘popcorn-app’…
remote: Reusing existing pack: 4865, done.
remote: Total 4865 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (4865/4865), 7.24 MiB | 628.00 KiB/s, done.
Resolving deltas: 100% (3021/3021), done.
Checking connectivity… done.
[22:37:42]
[localhost@/home/rrondan/Downloads $]

Paso 3:

Ahora vamos a tener que ir al directorio del proyecto y tener que ejecutar ciertos comandos para que termine de armar todo el proyecto.

[localhost@/home/rrondan/Downloads $] cd popcorn-app/
[22:37:56]
[localhost@/home/rrondan/Downloads/popcorn-app $] npm install grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
Una salida muuuuuy larga.. la corto..
grunt-cli@0.1.13 node_modules/grunt-cli
├── resolve@0.3.1
├── nopt@1.0.10 (abbrev@1.0.4)
└── findup-sync@0.1.3 (lodash@2.4.1, glob@3.2.9)
[22:39:17]
[localhost@/home/rrondan/Downloads/popcorn-app $]
[22:39:42]
[localhost@/home/rrondan/Downloads/popcorn-app $] npm install
npm http GET https://registry.npmjs.org/network-address/0.0.4
npm http GET https://registry.npmjs.org/numeral/1.5.3
Otra salida muuuuy larga..
network-address@0.0.4 node_modules/network-address
clivas@0.1.4 node_modules/clivas
grunt-contrib-copy@0.5.0 node_modules/grunt-contrib-copy
url@0.7.9 node_modules/url
├── querystring@0.1.0
└── punycode@1.0.0
[22:41:44]
[localhost@/home/rrondan/Downloads/popcorn-app $]
[22:41:44]
[localhost@/home/rrondan/Downloads/popcorn-app $]

Paso 4:

Ahora vamos a construir para alguna arquitectura en particular nuestro binario:
Tener en cuenta las salidas de error… por si hace falta algun paquete que instalar para volver a correr el mismo paso.
(si ponen –platforms=all , lo hace para linux32,mac,windows tambien)

[localhost@/home/rrondan/Downloads/popcorn-app $] node_modules/grunt-cli/bin/grunt build –platforms=linux64
Running “compass:dist” (compass) task
create css/app.css (2.374s)
Compilation took 2.375s
Running “copy:superagent_fix” (copy) task
Copied 1 files

Running “nodewebkit:src” (nodewebkit) task
Downloading: https://s3.amazonaws.com/node-webkit/v0.9.2/node-webkit-v0.9.2-linux-x64.tar.gz
>> Created a new release with node-webkit (0.9.2) for linux64
>> @ /home/rrondan/Downloads/popcorn-app/build/releases/Popcorn-Time

Running “copy:main” (copy) task
Copied 6 files

Done, without errors.
[22:56:23]
[localhost@/home/rrondan/Downloads/popcorn-app $]

Paso 5:

Ahora vamos a darle unos retoques para poder hacerla andar desde otro directorio.

[localhost@/home/rrondan/Downloads/popcorn-app $] sudo cp -r build/releases/Popcorn-Time/linux64/Popcorn-Time/ /opt/
[22:58:54]
[localhost@/home/rrondan/Downloads/popcorn-app $] ls -l /opt/Popcorn-Time/
total 102716
-rw-r–r–. 1 root root 2665880 Mar 23 22:58 libffmpegsumo.so
-rw-r–r–. 1 root root 4031601 Mar 23 22:58 nw.pak
-rwxr-xr-x. 1 root root 98478513 Mar 23 22:58 Popcorn-Time
[22:59:01]
[localhost@/home/rrondan/Downloads/popcorn-app $]

Tambien le creamos un enlace directo

[localhost@/home/rrondan/Downloads/popcorn-app $] sudo ln -s /opt/Popcorn-Time/Popcorn-Time /usr/bin/
[22:59:29]
[localhost@/home/rrondan/Downloads/popcorn-app $]

Un hermoso icono tambien , porque no?

[localhost@/home/rrondan/Downloads/popcorn-app $] sudo wget https://avatars0.githubusercontent.com/u/6956202?s=140 -O /usr/share/pixmaps/popcorntime.png
–2014-03-23 23:00:08– https://avatars0.githubusercontent.com/u/6956202?s=140
Resolving avatars0.githubusercontent.com (avatars0.githubusercontent.com)… 199.27.78.133
Connecting to avatars0.githubusercontent.com (avatars0.githubusercontent.com)|199.27.78.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 20764 (20K) [image/png]
Saving to: ‘/usr/share/pixmaps/popcorntime.png’

100%[==============================================================================================================================>] 20,764 106KB/s in 0.2s

2014-03-23 23:00:09 (106 KB/s) – ‘/usr/share/pixmaps/popcorntime.png’ saved [20764/20764]

[23:00:09]
[localhost@/home/rrondan/Downloads/popcorn-app $]

Y ahora el ultimo retoque:

[localhost@/home/rrondan/Downloads/popcorn-app $] sudo su –
[root@localhost ~]# sudo echo “[Desktop Entry]
Name=Popcorn Time
Comment=Watch movies in streaming with P2P.
Exec=/usr/bin/Popcorn-Time
Categories=AudioVideo;
StartupNotify=false
Type=Application
Icon=popcorntime” > /usr/share/applications/popcorn-time.desktop
[root@localhost ~]#

Paso 6:

Ahora si vamos a buscar una aplicacion ya la encontramos y aparecera con el icono 🙂
Lo que sigue es ejecutar PopCorn desde ahi 🙂 y….

TRAE LOS POCHOCLOS GRACIELAS!!! (perdon pero me acorde de TEG !!!, tenes empanadas graciela 🙂

Referencia: http://www.roussos.cc/2014/03/21/building-running-popcorn-time/

Rino Rondan
Fanatico de Villa Dalmine
Fedora Ambassador & Packager