Playstation 2

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search

Simple Media System (SMS)

SMS is a DivX and MP3 player for the PS2.

get it here:

Using SMS, you can stream movies and music right to your TV. forget about all the set-top boxes, forget about the 'Media PC', if you have a PS2, you have all the hardware you need.


Features of SMS include:

  • Smooth DivX AVI Playback at decent resolution
  • Pan/Scan and zooming
  • Subtitles support (SRT and SUB)
  • Visual seek (Fast Foward and Rewind)
  • Multiple language and character set support for subtitles other than English
  • MP3 Playback
  • AC3 Surround Support
  • Full resolution
  • Multilanguage
  • Copy your movies and mp3's to your internal HDD!

SMS will read video files from a variety of sources:

  • Network Streaming
  • USB Drives
  • Hard Drives (both the Official Sony HDD and any normal PC HDD)
  • CD/DVD-ROM (and NO modchip required!)

Running SMS

To run SMS you will need to have a modchip or use the PS2 Independence Memory Card Exploit

Installing Ups2client

This is the server that will allow the PS2 to connect to your Linkstation. You can download the source code from this post HERE (registration required). The code has been updated to allow for applications to traverse through subdirectories on Linux systems, thanks husky99 of kurubox forums

I believe you will need to have the development tools installed if you run OpenLink to compile Ups2client

Compile Ups2client

make clean
make PREFIX=$PS2DEV/usr install

This installs ps2client and fsclient into /usr/bin. Only problem now is that SMS has to be started on the PS2 before you start ps2client, husky99 solved that with a python script below,, obviously you'll need python installed on your system. FreeLink users can just:

apt-get install python

You will need to place the script in the same place as ps2client (/usr/bin in my case)

pico /usr/bin/

Copy this into it:

#! /usr/bin/env python
import commands
import time
import os

serverrunning = 0
while 1:
    # Check for connectivity to PS2
       (rc, output) = commands.getstatusoutput("ping -c 3")
    #if the ping returned 0, we can see the PS2
       if rc == 0:	
                # If the server isn't running, start it.
                if serverrunning == 0:
                        serverrunning = 1
                        # start server app
                        os.system("./ps2client -h listen &")
                        print "server started"
                # If the server is running and we're no longer connected, close it.
                if serverrunning == 1:
                        serverrunning = 0
                        # close server app
                        output = commands.getoutput("killall ps2client")
                        print "server closed"

I put a start script in to start ps2client and the run the above script as this was the only way I could get it to work how I wanted it to, e.g turn on PS2 and have access to Linkstation files.

pico /etc/init.d/ps2client

Copy this to it:

# $Date: 01/09/2006 $ Bauldrick $
# ps2client      This shell script takes care of starting and stopping
#            ps2client.
# description: ps2client server for Playstation2 (SMS).

   export PATH


   case "$1" in
#  echo -n "Starting ps2client: "
#  $PS2CLIENT -h $IP listen &
   cd /usr/bin
   ./ &
#  echo "done"
#  sleep 1
   echo -n "Shutting down ps2client: "
 # $PS2CLIENT -h $IP poweroff &
 # -- Or: kill `getpid $PS2CLIENT`
   killall ps2client
   sleep 1
   echo "done"
   echo -n "Restarting ps2client: "
   $0 stop
   sleep 1
   $0 start
   echo "Status of ps2client: "
   ps auxw|grep ps2client
echo "Usage: ps2client {start|stop|restart|status}"
   exit 1

   exit 0

Then link it:

cd /etc/rc2.d && ln -s /etc/init.d/ps2client S99ps2client
cd /etc/rc6.d && ln -s /etc/init.d/ps2client K99ps2client
cd /etc/rc0.d && ln -s /etc/init.d/ps2client K99ps2client


Now that it is installed and running (hopefully), you would normally create an elflist.txt and enter locations, however I believe this is currently broken? So, create links from the media you would like to stream, to the place ps2client is located, i.e:

ln -s /mnt/hda/films /usr/bin
ln -s /mnt/hda/music /usr/bin


Enable USB support front the SMS menu (press 'start' at the browser). The built-in USBD.IRX is compatible with most USB drives. You will see a new icon in the top bar when a USB device is attached. Press RIGHT to select this icon and browse the USB drive.