Difference between revisions of "MTPCenter - server solution for Pinnacle Showcenter"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Installation)
(Requirements)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Template:Articles}}[[Image:MTPCenter02.png]]
 +
 
<big><font color=red>Only notes so far - not finished</font></big>
 
<big><font color=red>Only notes so far - not finished</font></big>
  
Line 6: Line 8:
 
You will need to install:
 
You will need to install:
  
# [[Articles/DebianApache | Apache]]
+
# [[Apache HTTP server, installing | Apache]]
# [[Articles/DebianApache | PHP]]
+
# [[Apache HTTP server, installing | PHP]]
# [[Articles/DebianMySQL | MySQL]]
+
# [[MySQL database server, installing | MySQL]]
 
# [http://www.boutell.com/gd/ GD] (for this I simply did a...)
 
# [http://www.boutell.com/gd/ GD] (for this I simply did a...)
 
  apt-get install php4-gd
 
  apt-get install php4-gd
 
  
 
=== Installation ===
 
=== Installation ===
  
 +
Download MTPCenter into apache's DocumentRoot
  
 
  cd /var/www
 
  cd /var/www
 
+
  <nowiki>wget http://www.panczyk.org/linux/linux_mtpcenter_1.0.tar.gz</nowiki>
  wget http://www.panczyk.org/linux/linux_mtpcenter_1.0.tar.gz
+
 +
Untar the downloaded file and enter the new directory
  
 
  tar zxvf  linux_mtpcenter_1.0.tar.gz
 
  tar zxvf  linux_mtpcenter_1.0.tar.gz
 
 
  cd linux_mtpcenter_1.0
 
  cd linux_mtpcenter_1.0
  
chown -R www-data:www-data /var/www/linux_mtpcenter_1.0
+
Change user:group
 +
 
 +
  chown -R www-data:www-data /var/www/linux_mtpcenter_1.0
 +
=== Apache ===
 +
 
 +
Now you will need to create a file in apache to see MTPCenter
  
 
  pico /etc/apache/conf.d/mtpcenter
 
  pico /etc/apache/conf.d/mtpcenter
 +
 +
and add this to that file
  
 
  # mtpcenter Apache Virtual Host Configuration file
 
  # mtpcenter Apache Virtual Host Configuration file
Line 43: Line 52:
 
  </VirtualHost>
 
  </VirtualHost>
  
 +
Restart apache
  
 
  /etc/init.d/apache restart
 
  /etc/init.d/apache restart
  
 +
== Run It ==
 +
 +
Go to MTPCenter on your Linkstation
 +
 
  http:/<LinkstationIP>:8280
 
  http:/<LinkstationIP>:8280
  
ensure that the following settings in the php.ini are set as listed below
+
ensure that the following settings in your php.ini are set as listed below  
  
 
  ;;;;;;;;;;;;;;;;;
 
  ;;;;;;;;;;;;;;;;;
Line 58: Line 72:
  
  
  [Informix]  (on line 792/1077)
+
  [Informix]  <font color=green>(on line 792/1077)</font>
 
  ; Initialize session on request startup.
 
  ; Initialize session on request startup.
 
  session.auto_start = 0
 
  session.auto_start = 0
  
should get this - works on Linkstheater, need to write up the rest
+
You should get this -  
  
 
[[Image:MTPCenter01.JPG|250px]]
 
[[Image:MTPCenter01.JPG|250px]]
  
I Don't speak german (or whatever) but Konfigurationstest gives me this
+
The next thing to do is change the language - unless you are German ofcourse
 +
 
 +
cd /var/www/linux_mtpcenter_1.0/config
 +
pico config.inc
 +
 
 +
 
 +
// Used Language
 +
// possible values so far: "de" "eng" "fr"
 +
$LangUsed="<strike>de</strike>"; <font color=red>"eng";</font>
 +
 
 +
You'll need to enter directories where you want MTPCenter to look for your files in the relevent section and enter MySQL details etc...
 +
 
 +
// ###### PART: Standard Directories
 +
 +
// Music Main Directory
 +
$MusicDir="/mnt/music/";
 +
 +
// MP3 Directory
 +
$AudioDir="";
 +
 
 +
== Update ==
 +
 
 +
It didn't really work for me until I installed this update, then it all just started to work
 +
 
 +
cd /var/www
 +
<nowiki>wget http://www.panczyk.org/linux/linux_mtpcenter_1.0_Update_2.tar.gz</nowiki>
 +
tar zxvf linux_mtpcenter_1.0_Update_2.tar.gz
 +
 
 +
You need to add this aswell (?)
 +
 
 +
  pico /var/www/linux_mtpcenter_1.0/config/config.inc
 +
 
  
 +
// ######## Added for Update2
 +
$Music_Stream=true;
 +
$Music_Sort_Type = array("Title", "Title", "Track", "Title", "Title", "Title", "Track", "Title");
 +
$External_Remux=false;
 +
$External_Identify=array('-PIN-230','-VNE-258','','','');
 +
$External_Write_SH=true;
 +
$External_Script="temp/externremux.sh";
 +
$External_Software="/usr/local/bin/ts2ps <VPID> <APID>";
  
[[Image:MTPCenter02.JPG]]
+
[[Category:Debian]]
 +
[[Category:Mediaserver]]

Latest revision as of 16:53, 23 July 2006

MTPCenter02.png

Only notes so far - not finished


Contents

Requirements

You will need to install:

  1. Apache
  2. PHP
  3. MySQL
  4. GD (for this I simply did a...)
apt-get install php4-gd

Installation

Download MTPCenter into apache's DocumentRoot

cd /var/www
wget http://www.panczyk.org/linux/linux_mtpcenter_1.0.tar.gz

Untar the downloaded file and enter the new directory

tar zxvf  linux_mtpcenter_1.0.tar.gz
cd linux_mtpcenter_1.0

Change user:group

 chown -R www-data:www-data /var/www/linux_mtpcenter_1.0

Apache

Now you will need to create a file in apache to see MTPCenter

pico /etc/apache/conf.d/mtpcenter

and add this to that file

# mtpcenter Apache Virtual Host Configuration file
Listen 8280
<VirtualHost _default_:8280>
      DocumentRoot "/var/www/linux_mtpcenter_1.0"
      <Directory "/var/www/linux_mtpcenter_1.0">
              Options Indexes FollowSymLinks MultiViews
              AllowOverride None
              Order allow,deny
              Allow from all
      </Directory>
      <IfModule mod_dir.c>
              DirectoryIndex index.html index.php
      </IfModule>
</VirtualHost>

Restart apache

/etc/init.d/apache restart

Run It

Go to MTPCenter on your Linkstation

http:/<LinkstationIP>:8280

ensure that the following settings in your php.ini are set as listed below

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
;

register_globals = Off


[Informix]   (on line 792/1077)
; Initialize session on request startup.
session.auto_start = 0

You should get this -

MTPCenter01.JPG

The next thing to do is change the language - unless you are German ofcourse

cd /var/www/linux_mtpcenter_1.0/config
pico config.inc


// Used Language
// possible values so far: "de" "eng" "fr"
$LangUsed="de"; "eng";

You'll need to enter directories where you want MTPCenter to look for your files in the relevent section and enter MySQL details etc...

// ###### PART: Standard Directories

// Music Main Directory
$MusicDir="/mnt/music/";

// MP3 Directory
$AudioDir="";

Update

It didn't really work for me until I installed this update, then it all just started to work

cd /var/www
wget http://www.panczyk.org/linux/linux_mtpcenter_1.0_Update_2.tar.gz
tar zxvf linux_mtpcenter_1.0_Update_2.tar.gz

You need to add this aswell (?)

pico /var/www/linux_mtpcenter_1.0/config/config.inc


// ######## Added for Update2
$Music_Stream=true;
$Music_Sort_Type = array("Title", "Title", "Track", "Title", "Title", "Title", "Track", "Title");
$External_Remux=false;
$External_Identify=array('-PIN-230','-VNE-258',,,);
$External_Write_SH=true;
$External_Script="temp/externremux.sh";
$External_Software="/usr/local/bin/ts2ps <VPID> <APID>";