Difference between revisions of "XBMC - Using Xbox Media Center with the LinkStation"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (Create a startscript)
m
 
(10 intermediate revisions by one user not shown)
Line 1: Line 1:
{{Template:Articles|Mediaserver}}
+
{{Template:Articles|Mediaserver|Mediacenter}}
 
<table align=right><tr><td>
 
<table align=right><tr><td>
http://www.xboxmediacenter.de/makeup/xb04.gif
+
<center>http://upload.wikimedia.org/wikipedia/en/thumb/6/66/XBMC_logo.svg/100px-XBMC_logo.svg.png</center>
</td></tr><tr><td>http://upload.wikimedia.org/wikipedia/en/thumb/c/c2/Xbmc.JPG/250px-Xbmc.JPG
+
</td></tr><tr><td>http://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/XBMC_Main_Screen.png/250px-XBMC_Main_Screen.png
 
</td></tr></table>
 
</td></tr></table>
 
==Xbox Media Center (XBMC)==
 
==Xbox Media Center (XBMC)==
Line 24: Line 24:
 
# [[w:DLNA|DLNA]] compliant Mediabolic Mediaserver in LinkStation [[HS]]
 
# [[w:DLNA|DLNA]] compliant Mediabolic Mediaserver in LinkStation [[HS]]
  
===The XBMS Protocol===
+
===The XBMS Protocol (ccxstream)===
 
XBMSP (XBox Media Stream Protocol) or XBMS for short is another way of sharing media, supposedy it is faster than Samba. It is capable of streaming all types of media and gives the option of sharing individual folders or entire drives. XBMS is very bandwith efficient and it is a routable network-protocol which means that it is also ideal if you wish to stream over the internet, (just make sure you open the TCP/IP network-port 1400 in your firewalls on both both the server-side and the client side).  For linux XBMSP support is provided by ccXStream.<ref>[http://sourceforge.net/project/shownotes.php?release_id=191190&group_id=87054  ccXStream 1.0.15 for Linux]</ref>  Once you install ccXStream on your LinkStation all you have to do is configure your XMBC to use the media share.<ref>[http://www.xboxmediacenter.com/wiki/index.php?title=Windows_ccx_gui_%28xbms%29#How_to_Configure_XBMS_on_XBMC Xbox Media Center Online Manual:How to Configure XBMS on XBMC]</ref>
 
XBMSP (XBox Media Stream Protocol) or XBMS for short is another way of sharing media, supposedy it is faster than Samba. It is capable of streaming all types of media and gives the option of sharing individual folders or entire drives. XBMS is very bandwith efficient and it is a routable network-protocol which means that it is also ideal if you wish to stream over the internet, (just make sure you open the TCP/IP network-port 1400 in your firewalls on both both the server-side and the client side).  For linux XBMSP support is provided by ccXStream.<ref>[http://sourceforge.net/project/shownotes.php?release_id=191190&group_id=87054  ccXStream 1.0.15 for Linux]</ref>  Once you install ccXStream on your LinkStation all you have to do is configure your XMBC to use the media share.<ref>[http://www.xboxmediacenter.com/wiki/index.php?title=Windows_ccx_gui_%28xbms%29#How_to_Configure_XBMS_on_XBMC Xbox Media Center Online Manual:How to Configure XBMS on XBMC]</ref>
====Ccxstream - compile from source====
 
# Install the [[Precompiled C development environment, running on the LS]]
 
# Get the source tarball and compile
 
  
wget http://osdn.dl.sourceforge.net/sourceforge/xbplayer/ccxstream-1.0.15.tar.gz
+
# [[Ccxstream - Xbox Media Stream Protocol]]
tar -xvzf ccxstream-1.0.15.tar.gz
+
cd ccxstream-1.0.15
+
make
+
cp ccxstream /usr/local/bin
+
mkdir /usr/doc/ccxstream
+
cp  COPYRIGHT /usr/doc/ccxstream/
+
cp  ChangeLog /usr/doc/ccxstream/
+
cp  PORTING /usr/doc/ccxstream/
+
cp  README /usr/doc/ccxstream/
+
cp  TODO /usr/doc/ccxstream/
+
cp  xbmsp-xml.txt /usr/doc/ccxstream/
+
cp  xbmsp.txt /usr/doc/ccxstream/
+
 
+
====README file====
+
'''COMMAND LINE OPTIONS'''
+
 
+
{|
+
|-
+
|width=130|'''-l address'''
+
|Listen only given local address.  Only one -l flag can be given.  By default all local interface addresses are listened.
+
|-
+
|'''-p port'''
+
|Listen given port (default is 1400).
+
|-
+
|'''-r directory'''
+
|Use diven document root (default is current dir).  If -S flags are present, it's often the best choice to use an empty directory as a document root.  With option -r -user can create a virtual root directory into which the directories can be added with -S flag.
+
|-
+
|'''-u user'''
+
|Run as given user.  Give up the user privileges and run with as given user instead.  You need to have root privileges in order to use this flag.
+
|-
+
|'''-P password'''
+
|Require password authentication from the client.  Only clients supplying the given password can use the server. The client can also pass an user name in the authentication
+
step, but it's ignored.
+
|-
+
|'''-L'''
+
|Follow symbolic links in the data directories.  Normally symbolic links are not followed because of security reasons. This option overrides the default and more secure option.
+
|-
+
|'''-f'''
+
|Fork process to background.
+
|-
+
|'''-F pidfile '''
+
|Save pid number to given file.  This is especially usable if the server is running in the daemon mode (-f).
+
|-
+
|'''-S mountpoint=dir'''
+
|Show dir in the root of the fileserver as mountpoint.  Multiple -S flags can be present.
+
|}
+
 
+
'''EXAMPLE'''
+
 
+
ccxstream -f -F /var/run/ccxstream.pid -P s3cre7 -r /u/documents -S video=/u/videos -S audio=/u/mp3
+
Run server in background and show directory <tt>/u/documents</tt> as a
+
root directory of the server.  In addition show directory
+
<tt>/u/videos</tt> in as directory video and directory <tt>/u/mp3</tt> as directory
+
audio in the document root.  All clients need to authenticate
+
with password ''"s3cre7"''
+
 
+
'''CAUTION'''
+
 
+
For security reasons symbolic links are not followed.  Document root
+
can however be a symbolic link.  If you want to use symbolic link
+
to point to a shared directory <tt>(-S flag)</tt> you can circumvent the
+
symbolic link by adding <tt>/.</tt> to the end of the path.  If for example
+
<tt>/u/videos</tt> is actually a symbolic link pointing to a real video
+
directory, you can use flag <tt>-S video=/u/videos/.</tt> instead of plain
+
<tt>-S video=/u/videos</tt> that would not work with a symlink.
+
 
+
====Create a startscript====
+
'''''/etc/init.d/ccxstream'''''
+
  #!/bin/sh
+
  # Start/stop the ccxstream daemon.
+
  #
+
  # Set SHAREDIR to directory you want to share
+
  # Set OPTIONS to other command line options you want
+
 
+
  SHAREDIR=/mnt/disk1/Music
+
  OPTIONS="-f -F /var/run/ccxstream.pid"
+
 
+
  test -f /usr/local/bin/ccxstream || exit 0
+
 
+
  case "$1" in
+
  start) echo -n "Start services: ccxstream"
+
  /usr/local/bin/ccxstream -r $SHAREDIR  $OPTIONS
+
        ;;
+
  stop) echo -n "Stop services: ccxstream"
+
  killall ccxstream
+
        ;;
+
  restart)
+
  $0 stop
+
  sleep 2
+
  $0 start
+
        ;;
+
  *)    echo "Usage: $0 start|stop|restart"
+
        exit 1
+
        ;;
+
  esac
+
  exit 0
+
 
+
====Ccxstream daemon====
+
Change the script you just created into a executable file
+
chmod a+x /etc/init.d/ccxstream
+
Add to startup and shutdown if you want it to start on system startup
+
cd /etc/rc.d/rc2.d
+
ln -s ../init.d/ccxstream S75ccxstream
+
cd ../rc0.d
+
ln -s ../init.d/ccxstream K02ccxstream
+
cd ../rc6.d
+
ln -s ../init.d/ccxstream K02ccxstream
+
Start the ccxstream daemon
+
/etc/init.d/ccxstream
+
  
 
===iTunes (DAAP)===
 
===iTunes (DAAP)===
 
XBMC has the ability to stream audio files that you set up to share through ITunes. This method is extremely easy to set up and configure, although it is limited to audio files. It will not allow you to share videos, photos or other types of media. It also does not allow you to share entire folders or drives. The Linux implementation of this protocol (previously called Mt-dappd) is [[w:Firefly_Media_Server|Firefly]].  
 
XBMC has the ability to stream audio files that you set up to share through ITunes. This method is extremely easy to set up and configure, although it is limited to audio files. It will not allow you to share videos, photos or other types of media. It also does not allow you to share entire folders or drives. The Linux implementation of this protocol (previously called Mt-dappd) is [[w:Firefly_Media_Server|Firefly]].  
 +
 
# [[Firefly]]
 
# [[Firefly]]
  
 
==[http://www.xboxmediacenter.com/wiki/index.php?title=Xlink_Kai Xlink Kai]==
 
==[http://www.xboxmediacenter.com/wiki/index.php?title=Xlink_Kai Xlink Kai]==
Xlink is a method (developed by Team-XLink) of online-gaming whereby system-link enabled Xbox games can be 'tricked' into being played across the internet instead of a normal LAN (Local Area Network). For more information see: [[KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP]]
+
Xlink is a method (developed by Team-XLink) of online-gaming whereby system-link enabled Xbox games can be 'tricked' into being played across the internet instead of a normal LAN (Local Area Network).  
 +
 
 +
# [[KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP]]
  
 
==Xbox Media Center Online Manual==
 
==Xbox Media Center Online Manual==

Latest revision as of 02:04, 25 August 2010

100px-XBMC_logo.svg.png
250px-XBMC_Main_Screen.png

Contents

Xbox Media Center (XBMC)

Xbox Media Center (XBMC)[1] is a feature-rich open source media player for the Xbox -- a software program which plays video, music and displays pictures/images from the Xbox DVD-ROM drive, built-in harddisk drive, local-area-network or the internet. XBMC is the successor to Xbox Media Player (XBMP) (XBMP). XBMC is a complete rewrite of XBMP by the same developer-team. XBMC was publicly announced in October 2003.

Features

XBMC can play media from CD/DVD media using the Xbox's built-in DVD-ROM drive. It can also play media from the Xbox's built-in harddisk-drive, stream it over an SMB/SAMBA/CIFS share (Windows File-Sharing), Universal Plug and Play (UPnP) share, XBMSP (XBox Media Stream Protocol) share, or stream iTunes-shares via DAAP. XBMC takes advantage of the Xbox ethernet-network-port and broadband internet if available, using the IMDb to obtain thumbnails and reviews on movies, CDDB (via FreeDB) for Audio-CD track-listings) and album-thumbnails via AMG, stream internet-video-streams, and play internet-radio-stations (such as SHOUTcast). XBMC also includes the option to submit music usage statistics to Audioscrobbler and Last.fm, it has music/video-playlist and picture/image-slideshow functions, a weather-forecast (via Weather.com) and MP3+CDG karaoke function, plus many audio-visualizations. XBMC can also upconvert all 480p/576p standard-resolution videos and output them to 720p or 1080i HDTV-resolutions. In addition is a frontend for an Xbox Live alternative (called "XLink Kai") integrated, enabling you to control the engine running separately and play system-link/LAN-enabled Xbox games online without leaving your television.

Running XBMC

XBMC requires a modchip[2] or softmod[3] to run. For the software exploit you can use a USB Thumbdrive instead of the Action Replay device. [4][5][6] The T3CH distribution seems the most stable.[7]

Configuring File Shares

There are four alternatives for streaming media from the LinkStation to the XBMC[8]

Using Samba

Windows File Sharing (SMB/SAMBA/CIFS) is the most capable method of sharing media. It is is capable of streaming all types of media and gives the option of sharing individual folders or entire drives, (including CD/DVD-ROM drives).

  1. Samba - a Windows-readable file share

UPnP Sharing

XBMC also supports UPnP[9] (short for "Universal Plug and Play") shares. This is an extremely easy, user-friendly way to stream your media over your network. Like SMB/SAMBA/CIFS it is capable of streaming all types of media and gives the option of sharing individual folders or entire drives. Note that you must be using an XBMC build from 10th of July 2006 or newer in order to use this functionality.

  1. TwonkyVision UPnP MediaServer
  2. GMediaServer - GNU UPnP media server (MIPSel)
  3. Ushare - UPnP Media Server for Linux
  4. MediaTomb - Free UPnP MediaServer
  5. DLNA compliant Mediabolic Mediaserver in LinkStation HS

The XBMS Protocol (ccxstream)

XBMSP (XBox Media Stream Protocol) or XBMS for short is another way of sharing media, supposedy it is faster than Samba. It is capable of streaming all types of media and gives the option of sharing individual folders or entire drives. XBMS is very bandwith efficient and it is a routable network-protocol which means that it is also ideal if you wish to stream over the internet, (just make sure you open the TCP/IP network-port 1400 in your firewalls on both both the server-side and the client side). For linux XBMSP support is provided by ccXStream.[10] Once you install ccXStream on your LinkStation all you have to do is configure your XMBC to use the media share.[11]

  1. Ccxstream - Xbox Media Stream Protocol

iTunes (DAAP)

XBMC has the ability to stream audio files that you set up to share through ITunes. This method is extremely easy to set up and configure, although it is limited to audio files. It will not allow you to share videos, photos or other types of media. It also does not allow you to share entire folders or drives. The Linux implementation of this protocol (previously called Mt-dappd) is Firefly.

  1. Firefly

Xlink Kai

Xlink is a method (developed by Team-XLink) of online-gaming whereby system-link enabled Xbox games can be 'tricked' into being played across the internet instead of a normal LAN (Local Area Network).

  1. KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP

Xbox Media Center Online Manual

[12]

Introduction

  • Introduction
  • About this Manual
  • Features and Supported Formats

Setting Up XBMC

  • Installing XBMC
  • Bookmarks
  • Sharing Media from your PC
  • XBMC Settings
  • Using Profiles
  • The UserData Folder
  • Advanced Configuration

General Usage

  • Default Controls
  • The User Interface
    • General
    • My Programs
    • My Music
    • My Pictures
    • My Videos
    • My Files
    • Weather
    • Settings
  • The Web Interface
  • Using Scripts

Inner Workings

  • Video Players
  • Audio Players
  • The XBMC Database
  • Skinning XBMC
  • Creating Python Scripts

Appendices

  • Appendix A: References
  • Appendix B: Troubleshooting
  • Appendix C: HOW-TOs / Tips & Tricks
  • Appendix D: Development Notes
  • Appendix E: Popular Modifications to XBMC and the Xbox

References

  1. Wikipedia: Xbox Media Center (XBMC)
  2. Xbox-Scene.com:Modchips for the original Xbox
  3. ProductWiki™:How to Go from Xbox to Xbox Media Center in 30 minutes
  4. Xbox Linux:USB HOWTO
  5. Xbox Linux:Xbox USB Compatibility List
  6. Xbox Linux:USB Storage To Xbox Memory Card HOWTO
  7. Google Search:T3CH XBMC
  8. Xbox Media Center Online Manual:Configuring PC Shares
  9. Xbox Media Center Online Manual:UPNP Sharing
  10. ccXStream 1.0.15 for Linux
  11. Xbox Media Center Online Manual:How to Configure XBMS on XBMC
  12. Xbox Media Center Online Manual