Difference between revisions of "SwissCenter - server for the ShowCenter, LinkPlayer and LinkTheatre"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
Line 107: Line 107:
== Screenshots ==
== Screenshots ==
<center>These are on a pc so it doesn't show up quite right.</center>
<center>'''These are on a pc so it doesn't show up quite right'''.</center>
[[Image:Swisscenter03.JPG|250px|Today's Weather]]
[[Image:Swisscenter04.jpg|250px|Week's Weather]]
[[Image:Swisscenter08.jpg|250px|Change City]]
[[Image:Swisscenter05.jpg|250px|Internet Radio]]
[[Image:Swisscenter07.jpg|250px|Internet Radio]]
[[Image:Swisscenter06.jpg|250px|Listen to Music]]
[[Image:Swisscenter09.jpg|250px|Browse Video]]

Revision as of 14:59, 4 July 2006



You will need to install:

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


Create a swisscenter directory in apache's DocumentRoot (/var/www)

mkdir /var/www/swisscenter

Download Swisscenter into previously created directory

cd /var/www/swisscenter
wget http://www.swisscenter.co.uk/downloads/swisscenter.zip

Unzip the downloaded file

unzip swisscenter.zip

Change user:group

chown -R www-data:www-data /var/www/swisscenter


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

pico /etc/apache/conf.d/swisscenter.conf 

and add this to that file

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

Restart apache

/etc/init.d/apache restart

Run it

Go to your Swisscenter on your Linkstation


and if you get MySQL errors

pico  /etc/apache/httpd.conf 

comment out port 80 and add Listen 80 underneath


Now goto Swisscenter config on your Linkstation


and hopefully you'll see this:


Set up the databases and point it to your media and you should be away! In order to be able to get weather forecasts, internet radio and updates you will need to

pico /var/www/swisscenter/base/server.php

and add change

if ( $sock = @fsockopen('', 80, $temp, $temp, 0.5)) // www.google.com


if ( $sock = @fsockopen('google.com', 80, $temp, $temp, 0.5)) // www.google.com

Once it's configured


and you should see this:



These are on a pc so it doesn't show up quite right.

Today's Weather Week's Weather Change City Internet Radio Internet Radio Listen to Music Browse Video

I'll add a few more shots later, but that's about it I think

Bauldrick 09:22, 4 July 2006 (EDT)

Many thanks to REDSOLO'S guide where most of this info comes from.