Difference between revisions of "Swisscenter (MIPSel)"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (fixed link)
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{Template:Articles}}
 +
[[Image:Swisscenter10.png|right]]
 +
=== Requirements ===
 +
 +
You will need to install:
 +
 +
# [http://downloads.nas-central.org/LS2_MIPSel/DevelopmentTools/NativeToolchains/mipsel-tools-2_1.tgz MIPSel Tools]
 +
# [[Apache w/ PHP and MySQL Support (MIPSel)#MySQL | MySQL]]
 +
# [[Apache w/ PHP and MySQL Support (MIPSel)#Apache_1.3.xx | Apache]]
 +
# [[Articles/MIPSelGD | GD]]
 +
# [[Apache w/ PHP and MySQL Support (MIPSel)#PHP | PHP]]
 +
 +
=== Installation ===
 +
 +
Create a swisscenter directory in apache's DocumentRoot (/mnt/hda/opt/apache/htdocs) : ((note I did not change it as in the docs e.g share/www))
 +
 +
mkdir /mnt/hda/opt/apache/htdocs/swisscenter
 +
 +
Download [http://swisscenter.co.uk Swisscenter] into previously created directory
 +
 +
cd /mnt/hda/opt/apache/htdocs/swisscenter
 +
<nowiki>wget http://www.swisscenter.co.uk/downloads/swisscenter.zip</nowiki>
 +
 +
Unzip the downloaded file
 +
 +
unzip swisscenter.zip
 +
 +
Change user:group
 +
 +
chown -R nobody:nogroup /mnt/hda/opt/apache/htdocs/swisscenter
 +
 +
Restart apache
 +
 +
/mnt/hda/opt/apache/bin/apachectl restart
 +
 +
== Run it ==
 +
 +
Go to your Swisscenter on your Linkstation
 +
 +
<nowiki>http://<IPAdddress>/swisscenter</nowiki>
 +
 +
Hopefully you will see this message
 +
 +
    You have not created a database.
 +
 +
Please use the Configuration Utility to create a database
 +
 +
 +
Now goto Swisscenter config on your Linkstation
 +
 +
<nowiki>http://<IPAdddress>/swisscenter/config</nowiki>
 +
 +
and hopefully you'll see this:
 +
 +
 +
[[Image:Swisscenter01.JPG]]
 +
 +
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
 +
 +
vi /mnt/hda/opt/apache/htdocs/swisscenter/base/server.php
 +
 +
and add change
 +
 +
if ( $sock = @fsockopen('66.249.87.99', 80, $temp, $temp, 0.5)) // www.google.com
 +
 +
to
 +
 +
if ( $sock = @fsockopen(<font color=red>'google.com'</font>, 80, $temp, $temp, 0.5)) // www.google.com
 +
 +
Once it's configured
 +
 +
<nowiki>http://<IPAdddress>/swisscenter</nowiki>
 +
 +
and you should see this:
 +
 +
[[Image:Swisscenter02.JPG]]
 +
 +
== Troubleshooting ==
 +
 +
In the event of something not working as it should, do this and ask for help
 +
 +
Create a file to see your php settings
 +
 +
vi /mnt/hda/opt/apache/htdocs/swisscenter/config/test_php.php
 +
 +
and put this in it
 +
 +
<?
 +
phpinfo();
 +
?>
 +
 +
It should output your PHP settings when you try to reach it, check for MySQL support
 +
 +
  <nowiki>http://<LinkstationIP>/swisscenter/config/test_php.php</nowiki>
 +
 +
Create a file to check you MySQL settings
 +
 +
vi /mnt/hda/opt/apache/htdocs/swisscenter/config/test_mysql.php
 +
 +
and put this in it
 +
 +
<?
 +
echo mysql_pconnect('swiss','swisscenter','swisscenter');
 +
?>
 +
 +
Try and access it and see what it gives you
 +
 +
<nowiki>http://<LinkstationIP>/swisscenter/config/test_mysql.php</nowiki>
 +
 +
 +
== Screenshots ==
 +
 +
<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]]
 +
 +
---------
 +
 +
More screenshots can be seen [http://www.swisscenter.co.uk/content/view/57/60/ from here]
 +
 +
[[User:Bauldrick|Bauldrick]]
 +
 +
 +
 +
 +
 +
 +
 +
 
[[Category:LS2]]
 
[[Category:LS2]]
[[Category:Mediaserver]]
 
 
[[Category:Howto]]
 
[[Category:Howto]]

Latest revision as of 18:44, 16 September 2007

Swisscenter10.png

Contents

Requirements

You will need to install:

  1. MIPSel Tools
  2. MySQL
  3. Apache
  4. GD
  5. PHP

Installation

Create a swisscenter directory in apache's DocumentRoot (/mnt/hda/opt/apache/htdocs) : ((note I did not change it as in the docs e.g share/www))

mkdir /mnt/hda/opt/apache/htdocs/swisscenter

Download Swisscenter into previously created directory

cd /mnt/hda/opt/apache/htdocs/swisscenter
wget http://www.swisscenter.co.uk/downloads/swisscenter.zip

Unzip the downloaded file

unzip swisscenter.zip

Change user:group

chown -R nobody:nogroup /mnt/hda/opt/apache/htdocs/swisscenter

Restart apache

/mnt/hda/opt/apache/bin/apachectl restart

Run it

Go to your Swisscenter on your Linkstation

http://<IPAdddress>/swisscenter

Hopefully you will see this message

   You have not created a database.

Please use the Configuration Utility to create a database


Now goto Swisscenter config on your Linkstation

http://<IPAdddress>/swisscenter/config

and hopefully you'll see this:


Swisscenter01.JPG

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

vi /mnt/hda/opt/apache/htdocs/swisscenter/base/server.php

and add change

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

to

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

Once it's configured

http://<IPAdddress>/swisscenter

and you should see this:

Swisscenter02.JPG

Troubleshooting

In the event of something not working as it should, do this and ask for help

Create a file to see your php settings

vi /mnt/hda/opt/apache/htdocs/swisscenter/config/test_php.php 

and put this in it

<?
phpinfo();
?>

It should output your PHP settings when you try to reach it, check for MySQL support

 http://<LinkstationIP>/swisscenter/config/test_php.php 

Create a file to check you MySQL settings

vi /mnt/hda/opt/apache/htdocs/swisscenter/config/test_mysql.php 

and put this in it

<?
echo mysql_pconnect('swiss','swisscenter','swisscenter');
?>

Try and access it and see what it gives you

http://<LinkstationIP>/swisscenter/config/test_mysql.php 


Screenshots

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


More screenshots can be seen from here

Bauldrick