NSLU2-Linux
view · edit · print · history

This page captures information related to Media Extenders like the Neuston Virtuoso MC-500 Digital Media Centre and Pinnacle Showcenter.

Links

OpenShowCenter is an open source server software for the Pinnacle Show Center, Neuston Virtuoso MC-500 and compatible devices. It only requires a PHP-enabled web server to run (Apache is known to work), and of course some media files to serve.

All relevant information is available on the project home page at http://openshowcenter.sourceforge.net.

This is how to install it:

  1. Telnet in the slug.
  2. ipkg install php-apache eaccelerator (eAccelerator is optional, but highly recommended)
  3. If Apache or PHP asks you whether you want to replace your existing configuration files, and you don't know what this means, say (Y)es.
  4. Make sure apache has restarted by running /opt/etc/init.d/S80apache
  5. Apache should now be running on your slug on port 8000: check that it is by navigating to http://IP-address-of-your-slug:8000 with a web browser. You should see a generic greeting from Apache.
  6. Navigate to www folder cd /opt/share/www and download OpenshowCenter from http://sourceforge.net/projects/openshowcenter/ using wget http://surfnet.dl.sourceforge.net/sourceforge/openshowcenter/openshowcenter_v0.24.tar.gz(approve sites)
  7. Extract the file using tar xvzf openshowcenter_v0.24.tar.gz
  8. Change the name of the directory: mv openshowcenter_v0.24 openshowcenter
  9. cd /opt/share/www/openshowcenter and run the follow:
    mkdir media
    mkdir ./media/vdr
    mkdir ./media/vdr/temp
    chmod 777 ./modules/movie/config.ini
    chmod 777 ./modules/music/config.ini
    chmod 777 ./modules/photo/config.ini
    chmod 777 ./modules/streamcast/config.ini
    chmod 777 ./modules/music/temp
    chmod 777 ./modules/streamcast/temp
    chmod 777 ./modules/vdr/temp
    chmod 777 ./media/vdr/temp
  10. For simplicity's sake, we assume that the movie (avi, mpg, ogg, etc) files reside in a folder called 'mymovies' in DISK 2.
    Telnet into the slug. Navigate to OpenShowCenter's media archive (/opt/share/www/openshowcenter/media). Type:
    ln -s /share/flash/data/public/mymovies /opt/share/www/openshowcenter/media/movie
    Do the same for music and photo.
    Example:
    ln -s /share/flash/data/public/mymusic /opt/share/www/openshowcenter/media/music
    ln -s /share/flash/data/public/myphoto /opt/share/www/openshowcenter/media/photo
    Three symlink-ed folders will appear in OpenShowCenter's media archive.
  11. Edit /opt/etc/apache2/httpd.conf to:
    DocumentRoot? "/opt/share/www/openshowcenter" and
    <Directory "/opt/share/www/openshowcenter">.
    Furthermore add the following:
    Alias /media "/share/hdd/data/opt/share/www/openshowcenter/media"
    Alias /root/ "/"
    ErrorLog? /var/log/openshowcenter_error.log
  12. Edit /opt/etc/php.ini. Look for the line 'error_reporting = E_ALL'. Comment that out by adding '#' in front. Next, look for the line 'error_reporting = E_ALL & ~E_NOTICE'. Remove the '#' in front. Close and save.
    If you miss this step, the OpenShowCenter's home page will display a bunch of php errors. They're harmless however.
  13. Restart Apache by running /opt/etc/init.d/S80apache
  14. Try OpenShowCenter from your web browser: your-slug-ip:8000 (eg: 192.168.1.77:8000).
  15. Add the OpenShowcenter? address to your media extender and connect to it.

An other method is the following:

  1. Unsling your NSLU2.
  2. Install Apache.
  3. Install PHP.
  4. Install Proftpd or Vsftpd.
  5. Using an FTP client (WS-FTP), navigate to Apache's default document root (eg. /opt/share/apache2/htdocs), you'll find that there are several files that Apache has placed in here by deafult. You may safely delete them.
  6. Upload the OpenShowCenter files into Apache's document root (eg. /opt/share/apache2/htdocs). It's important that a FTP client set to binary mode is used because the conversion to/from DOS format with CRLF instead of just LF will cause problems.
  7. Telnet (or FTP as root) into the slug. Create a folder called 'media' in document root (eg. /opt/share/apache2/htdocs). This folder is OpenShowCenter's media archive
  8. Telnet in the slug and run the follow:

    chmod 777 ./modules/movie/config.ini
    chmod 777 ./modules/music/config.ini
    chmod 777 ./modules/photo/config.ini
    chmod 777 ./modules/streamcast/config.ini
    chmod 777 ./modules/music/temp
    chmod 777 ./modules/streamcast/temp
    chmod 777 ./modules/vdr/temp
    chmod 777 ./media/vdr/temp
  9. Telnet (or FTP as root) to the slug. In Apache's httpd.config (/opt/etc/apache2/httpd.conf), look for the line "DirectoryIndex". Add 'index.php' to it. Close and save.
  10. Telnet (or FTP as root) to the slug. Navigate to '/opt/etc/php.ini'. In php.ini, look for the line 'error_reporting = E_ALL'. Comment that out by adding '#' in front. Next, look for the line 'error_reporting = E_ALL & ~E_NOTICE'. Remove the '#' in front. Close and save.

    If you miss this step, the OpenShowCenter's home page will display a bunch of php errors. They're harmless however.
  11. Use a web browser and access the URL: http://IP-address-of-your-slug:8000(approve sites). If you can see the OpenShowCenter home page, you've done well. (Sometimes, if you can't access the page, you will need to change the permissions on index.php to 644 to make it accessible). Don't try the links yet. You aren't finished.
  12. I assume that most slugs run off a quiet thumb drive. Therefore, media files usually reside in a roomier HDD enclosure, plugged into the slug's DISK 2 socket. Because OpenShowCenter requires media files to reside in apache's document root we need to create symlinks from the media archive to DISK 2.
  13. For simplicity's sake, we assume that the movie (avi, mpg, ogg, etc) files reside in a folder called 'mymovies' in DISK 2.

    Telnet into the slug. Navigate to OpenShowCenter's media archive (/opt/share/apache2/htdocs/media). Type:

    ln -s /share/flash/data/public/mymovies /opt/share/apache2/htdocs/media/movie

    Do the same for music and photo.

    Example:
    ln -s /share/flash/data/public/mymusic /opt/share/apache2/htdocs/media/music
    ln -s /share/flash/data/public/myphoto /opt/share/apache2/htdocs/media/photo

    Three symlink-ed folders will appear in OpenShowCenter's media archive.
  14. Return to OpenShowCenter's home page in the browser and try the links. You should be able to see your files. However, you will not be able to download them. The playlist that is generated is for the Neuston box to read.
  15. If OpenShowCenter is accessible from your web browser, it's now time to try it from your Neuston box. Power up your MC 500. The first thing you'll see is a list of already-configured servers. Click on ADD. Fill up the NAME box with any name you want. You might like to just type in NSLU2. In the IP box, type: http://IP-address-of-your-slug:8000(approve sites). Click on SAVE.
  16. Return to MC 500's home page. There is a new item in the list. Connect to the server name NSLU2. You should see OpenShowCenter's home page.
  17. Good luck!
view · edit · print · history · Last edited by tman.
Based on work by bART, rwhitby, tman, SimonRyan, perlguru, and salivateforme.
Originally by rwhitby.
Page last modified on August 27, 2005, at 04:29 PM