Posts Tagged ‘ushare’

How To: Get Ubuntu To Stream Videos To Your Xbox360 With UShare

Wednesday, December 26th, 2007

The recent Xbox360 fall update gives users the option to view DIVX films. If, like me, you have a huge collection of DIVX movies stored on a separate Linux machine, you’ll want to find a way to get the linbox to deliver these movies to your Xbox (trust me, it’s great). The particular tool I’ve used to do this is uShare (part of the GeeXBoX distro - specialising in HTPC implementations).

So, to get started, install uShare. The uShare website (here) gives details on how to do this. Installing uShare using apt-get will set up three files (amongst others) on your Ubuntu machine:

  • /usr/bin/ushare - the uShare binary file
  • /etc/ushare.conf - the uShare configuration file
  • /etc/init.d/ushare - the uShare daemon start/stop script

We can get uShare to start serving our files immediately to the Xbox with the command

uShare -D -x -c /media/directory (where /media/directory is the path to your files).

This isn’t very neat though, so read on if you want to integrate uShare properly with your Ubuntu install.

We now need to make sure uShare knows which files to serve and to make it operate in Xbox 360 compatibility mode. Bring up your text editor (using sudo) and open up /etc/ushare.conf. Change the line ENABLE_XBOX= to USHARE_ENABLE_XBOX=yes. Set USHARE_DIR to the path(s) of the files you want to serve. If you want web access, change the line ENABLE_WEB= to USHARE_ENABLE_WEB=yes and set the USHARE_PORT.

The uShare daemon script also needs to be amended slightly to tell uShare to use the config file we’ve just changed. Using your text editor (again with sudo), open up /etc/init.d/ushare and add a new line under the CONFIGFILE=/etc/ushare.conf that reads USHARE_OPTIONS="-f $CONFIGFILE" (running uShare straight on the command line will automatically open that config file. For some reason, the command used in the script doesn’t. Thanks to [this forum](http://ubuntuforums.org/showthread.php?t=631213&page=7 for the solution)).

Once this is all done, restart the uShare daemon by running the command

sudo /etc/init.d/ushare restart.

If you load up your Xbox 360 and go into the Videos section under the Media blade, you’ll see your new media server listed as “uShare” (press X to change video source if not). Happy viewing!

Still need to resolve the following issues:

  1. uShare does not differentiate between media types, so all my movies are appearing as music as well. Music also isn’t organised into albums.
  2. Only the first directory I’ve specified for sharing in the configuration file is being scanned and delivered.

Conclusion - Use uShare if you want to just deliver movies. For delivery of multiple media types, including a large music collection, uShare can’t seem to handle it just yet.