Bonjour,
Tout d'abord, merci à Magicalex pour ce tuto, je suis tombé dessus par hasard et il m'a bien servi.
L'installation que j'ai faite est néanmoins un peu différente, car je n'installe pas rutorrent, j'ai déjà deluge d'installé.
J'ai donc réussi à installer les pré-requis, puis cakebox light.
J'arrive sur la page
http://192.168.0.5:81/cakebox/motok/
Le seul problème est que je ne vois aucun fichier.
Cela est peux-être du au fait que mon cakebox.root pointe sur un disque dur USB qui contient un système de fichier en NTFS.
Je vois aussi des erreurs dans la console java (liées ?).
Je vous colle donc le contenu des fichiers :
/etc/nginx/sites-enabled/cakebox.conf
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
server {
listen 81 default_server; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
root /var/www/cakebox/public;
index index.php;
# Make site accessible from http://localhost/
server_name CakeBox;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
location /cakebox/ {
rewrite ^/cakebox(/.*)$ $1 break;
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
}
location /cakebox/motok/ {
alias /media/USBHDD1/shares/Web/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
autoindex on;
}
location /doc/ {
alias /usr/share/doc/;
autoindex on;
allow 127.0.0.1;
allow ::1;
deny all;
}
# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
#location /RequestDenied {
# proxy_pass http://127.0.0.1:8080;
#}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root /usr/share/nginx/www;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
#
# # With php5-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# root html;
# index index.html index.htm;
#
# location / {
# try_files $uri $uri/ =404;
# }
#}
# HTTPS server
#
#server {
# listen 443;
# server_name localhost;
#
# root html;
# index index.html index.htm;
#
# ssl on;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
#
# ssl_session_timeout 5m;
#
# ssl_protocols SSLv3 TLSv1;
# ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
# ssl_prefer_server_ciphers on;
#
# location / {
# try_files $uri $uri/ =404;
# }
#}
/var/www/cakebox/config/motok.php
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/media/USBHDD1/shares/Web/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/motok/"; // Alias used in web server for direct access
$app["cakebox.language"] = "fr"; //Language of Cakebox. Could be : fr, en
/*
Directory settings
*/
$app["directory.ignoreDotFiles"] = false;
$app["directory.ignore"] = "//"; // Regex for files exclusion. For exemple : "/(\.nfo|\.test)$/"
/*
Web player settings
*/
$app["player.default_type"] = "vlc"; // html5 or divx or vlc
$app["player.auto_play"] = "false";
/*
User rights
*/
$app["rights.canPlayMedia"] = true;
$app["rights.canDownloadFile"] = true;
$app["rights.canArchiveDirectory"] = false;
$app["rights.canDelete"] = false;
/*
Betaseries account
NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
access.log
192.168.0.3 - - [29/Sep/2014:17:10:22 +0200] "GET /cakebox/motok/ HTTP/1.1" 200 204 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:24 +0200] "GET /cakebox/motok/ HTTP/1.1" 200 204 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:26 +0200] "GET /cakebox/motok HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:26 +0200] "GET /motok HTTP/1.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/ressources/languages/locale-fr.json HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /ressources/languages/locale-fr.json HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/api/app HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/api/rights HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /api/app HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /api/rights HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/partials/browse.html HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /partials/browse.html HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/jquery/dist/jquery.min.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/jquery/dist/jquery.min.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular/angular.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular/angular.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular-resource/angular-resource.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular-resource/angular-resource.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular-route/angular-route.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular-route/angular-route.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:34 +0200] "-" 400 0 "-" "-"
192.168.0.3 - - [29/Sep/2014:17:10:34 +0200] "-" 400 0 "-" "-"
Le fichier error.log est vide.
Et enfin, ce que la console javascript me donne :
TypeError: Cannot read property 'local' of undefined
at http://192.168.0.5:81/cakebox/app/controller/AppCtrl.js:14:39
at http://192.168.0.5:81/cakebox/components/angular-resource/angular-resource.min.js:9:303
at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:101:350
at k.$eval (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:68)
at k.$digest (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:109:168)
at k.$apply (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:398)
at h (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:72:454)
at u (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:77:463)
at XMLHttpRequest.w.onreadystatechange (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:79:24) angular.js:10071
4Error: [$resource:badcfg] http://errors.angularjs.org/1.2.25/$resource/badcfg?p0=array&p1=object
at Error (native)
at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:6:450
at p.then.m.$resolved (http://192.168.0.5:81/cakebox/components/angular-resource/angular-resource.min.js:8:517)
at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:101:350
at k.$eval (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:68)
at k.$digest (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:109:168)
at k.$apply (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:398)
at h (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:72:454)