I’ve got a little project going on in the past few days. I have a reasonable amount of media; movies, mp3’s and family pictures in my Linux desktop, Ubuntu 8.10. Would it be nice if I could stream all the movies and music directly from the Linux machine to my Xbox 360? This is a very easy feat in Windows, where we could simply use the Windows Media Share option in Windows Media Player 11. But, what about Linux?

Xbox-Linux box media sharing could be achieved by using GeeXbox uShare. GeeXboX uShare is a free UPnP A/V & DLNA Media Server for Linux. Installation and configuration explained after the jump below:


Installation and Configuration

1. Install uShare by using command:
sudo apt-get install ushare

2. Edit the uShare configuration file:
sudo gedit /etc/ushare.conf

Example of the uShare config file:

# /etc/ushare.conf
# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=uShare

# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=eth0

# Port to listen to
USHARE_PORT=49153

# Port to listen for Telnet connections
USHARE_TELNET_PORT=

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/home/myusername/mymediafolder

# Use to override what happens when iconv fails to parse a file name.
USHARE_OVERRIDE_ICONV_ERR=yes

# Enable Web interface (yes/no)
ENABLE_WEB=yes

# Enable Telnet control interface (yes/no)
ENABLE_TELNET=no

# Use XboX 360 compatibility mode (yes/no)
ENABLE_XBOX=yes

# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
ENABLE_DLNA=no

“USHARE_NAME” is the display name of your share.
“USHARE_IFACE” is the network interface uShare should listen to.
“USHARE_PORT” this is the port the uShare server listens on. Make sure this is set to 49153.
“USHARE_DIR” is the full path of the folder with your media.
“ENABLE_WEB” to turns on the web interface. Make sure this is set to ‘yes’.
“ENABLE_XBOX” is what enables Xbox 360 compatibility. Make sure it’s set to ‘yes’.

3. After finished editing the configuration file, save the file.

4. Edit the following file by issuing command below:
sudo gedit /etc/init.d/ushare

Find the following lines:

start-stop-daemon --start --quiet --background --oknodo \
--make-pidfile --pidfile $PIDFILE \
--exec $DAEMON -- $USHARE_OPTIONS

And change them to:

start-stop-daemon --start --quiet --background --oknodo \
--make-pidfile --pidfile $PIDFILE \
--exec $DAEMON -- $USHARE_OPTIONS --xbox

5. Restart uShare
sudo /etc/init.d/ushare stop
sudo /etc/init.d/ushare start

That’s pretty much it!

If you have a firewall running, open the firewall connection to your Xbox ip address.

The web interface is available at:
http://your.servers.ip.address:49153/web/ushare.html

Xbox 360 Settings

For your Xbox 360 configuration, make sure they are able to connect to your home network. Just set the networking options in the “Settings” blade. You can set the networking options to be automatic, or manual by the simplest settings of the ip address, subnet mask and gateway.

Viewing Your Media

Go to the “Media” blade on your Xbox 360 Dashboard. Open your media (Music, Video or Picture). The uShare (or any other name you’ve given in the uShare config) should be available on the selection source.

uShare Xbox 360 Dashboard

Open your media in the uShare source. WMV files should not be any problem, but for AVI’s and any other types, the view-ability depends on the codecs installed on your Xbox.

uShare video

Next project, wireless connectivity for the Xbox 360. :) I currently have a 10 meter network cable running across the room from my Xbox to the router, which is ridiculous.

Related posts:
  1. How to Check for Open Ports in Ubuntu There are various ways to view for open ports on...

Comments

  1. From Ady on March 10th, 2009 at 1:18 am

    This is super cool, I will do this when I am able to find the time. Thanks!

  2. From nonbuntu on March 10th, 2009 at 9:39 pm

    thanks wesley & bailey

  3. From TechBlizz on March 12th, 2009 at 8:06 pm

    hi, nice blog
    Your Blog is More interesting.great work.:)
    moreover, …if possible at ur free time visit mine..and give ur suggestion to improve..
    if possible add me in your blog roll. i will return my favour!!

  4. From capsgram on March 21st, 2009 at 8:45 am

    I tried it out, doesnt work, well actaully the “http://your.servers.ip.address:49153/web/ushare.html” doesnt work, ushare starts up but i cant access it or anything

  5. From nazham on March 21st, 2009 at 8:55 am

    Have you tried shutting down the firewall temporarily or opening the 49153 port? What error do you get?

  6. From capsgram on March 23rd, 2009 at 9:40 am

    I actaully disabled my firewall along time ago for speed, the ushare is actaully running but my xbox 360 doesnt recognize it.

    ive done all what u said, but i do have a 2wire router

  7. From capsgram on March 23rd, 2009 at 10:09 am

    oh and like, my ushare changes ip address and ports everytime i start, so it doesnt listen on 49153

  8. From Nintendo Hacks on March 23rd, 2009 at 7:08 pm

    Thats great. I’m currently looking for a way to interact between my PC media and my Nintendo Wii, any ideas?

  9. From nazham on March 24th, 2009 at 11:05 am

    @nintendo: I never tried it before, but I believe for Wii there’s Wii Media Center X, and Orb (orb.com)

  10. From nazham on March 24th, 2009 at 11:09 am

    @capsgram: For me, I’ve tried it connecting to my Windows machine (via Windows Media Share) first, just to see there’s no connectivity issues. Then I proceed with uShare on Linux.

  11. From capsgram on March 25th, 2009 at 12:05 am

    I have 2 pc’s, one with winxp and one with linux, i use a kvm switch between them, but my winxp pc is crappy its an old celerion from like 4 years ago, so am trying to use my better one with the interpid 8.10.

    the media share on my winxp does work with my xbox 360,but my old pc isnt up to par and is slow at times with connection.

    and i want to get away from having to use winxp for good.

    thanks

  12. From Jordo on March 31st, 2009 at 2:41 pm

    Any suggestions for a fedora 10 Fan at all?

  13. From nazham on March 31st, 2009 at 2:55 pm

    I believe there are uShare sources and rpm binaries available at ushare.geexbox.org . Or, maybe you can use Fuppes, but the config is a real pain.

  14. From Shu Fen on April 2nd, 2009 at 6:55 am

    hey ho! first time dropping by ^^

    would you like to exchange links? thanks!

    keep up the good work! :D

  15. From capsgram on July 20th, 2009 at 5:04 am

    @Nintendo Hacks

    its a media share called ¨mplayer-ce¨ for wii but you have to soft mod your wii or hard mod it either way it works, its a snap for sharing with ubuntu but winxp is a bitch to get it going,just do a search for wii soft mod and when you get that going do a search for ¨home brew browser¨ it´ll install all your apps for you much more friendly than any xbox or xbox 360 hacks forum or group could ever do

    wii hack groups usually are a hell-va lot more informative than ps3 and about a 1000 times more informative than 360

    if your new to wii it should take more than half a day of reading just to make sure but if your a wild cat prob about 2 or 3 hrs to get everything running depending on your download speed

    if you want some links here :

    http://hbc.hackmii.com/

    http://adewii.wordpress.com/2009/06/24/using-wiithon-wbfs-manager-for-linux-also-richs-wii-softmodded-successfully/

    http://www.wiihacks.com/recommended-faqs-guides-tutorials-only/15154-sd-usb-loaders-guide-how-use-waninkokos-usb-loader.html

    sorry for going offf topic but i gotta help out for a wii user

  16. From capsgram on July 20th, 2009 at 5:19 am

    no i think ushare is gonna have to wait a few more years by the looks of it before itll be up to par with all the other media share devices out there

    i got ubuntu 9.0 and its the shit and i still cant get this working even with a cat5 cable direct connection between the xbox 360 and my pc

  17. From capsgram on July 26th, 2009 at 2:26 am

    this worked for me finally:

    ushare -p 49153 -x -c /path/to/your/media

    it kciks ass, but you have to restart your computer every time you want to ¨refresh¨ your media if you download something new, otherwise it wont recognise the new stuff for some reason.

  18. From capsgram on July 26th, 2009 at 2:27 am

    type in your terminal ¨ushare -p 49153 -x -c /path/to/your/media¨ i should have said

  19. From nazham on July 26th, 2009 at 7:12 am

    Congratulations, it’s works for you finally :) . But don’t you think you just need to restart uShare, instead rebooting the machine?

  20. From capsgram on August 1st, 2009 at 4:38 am

    Thanks, ushare doesnt work for me with the easy commands:
    sudo /etc/init.d/ushare stop
    sudo /etc/init.d/ushare start

    for some reason I have to use:
    ushare -p 49153 -x -c /path/to/your/media

    for it to work, any other way and my xbox360 doesn´t receive.

    I get this when i use the above command:
    when attempting to stop
    * Stopping uShare UPnP A/V & DLNA Media Server: ushare start-stop-daemon: warning: failed to kill 9102: No such process

    when attempting to start:

    capsgram@capsgram:~$ ushare -p 49153 -p 49153 -x -c /path/to/your/media
    Interface eth1 is down.
    Recheck uShare’s configuration and try again !
    uShare (version 1.1a), a lightweight UPnP A/V and DLNA Media Server.
    Benjamin Zores (C) 2005-2007, for GeeXboX Team.
    See http://ushare.geexbox.org/ for updates.
    bind: Address already in use

  21. From capsgram on August 1st, 2009 at 4:40 am

    opps the above has a typo in it its supposed to be:

    capsgram@capsgram:~$ ushare -p 49153 -x -c /path/to/your/media
    Interface eth1 is down.
    Recheck uShare’s configuration and try again !
    uShare (version 1.1a), a lightweight UPnP A/V and DLNA Media Server.
    Benjamin Zores (C) 2005-2007, for GeeXboX Team.
    See http://ushare.geexbox.org/ for updates.
    bind: Address already in use

  22. From Phatp on October 3rd, 2009 at 3:36 pm

    hey, thanks loads for this, i have tried getting this to work from my kubuntu box to my 360 for months and this is the first tutorial that actually worked!

  23. From Faintdreams on November 10th, 2009 at 5:03 am

    thanks for this well laid out tutorial. It enabled me to set up file streaming on my xbox in under 20 minutes. Ushare works a treat!

  24. From Sepz on January 27th, 2010 at 1:00 pm

    This worked, best guide of the lot. Thankyou so much!

  25. From w0rdvirus on January 31st, 2010 at 3:08 am

    This is the best guide. I have read at least ten of them and they all seemed like too much work. This took like two minutes and worked perfectly.

  26. From keith1212 on March 6th, 2010 at 9:55 am

    Thank You So Much. Now I have no reason to use my Windows 7.

  27. From Connecting your Computer to your Living Room% on April 27th, 2010 at 5:23 am

    [...] How To Share Media Between Xbox 360 and Linux [...]

  28. From Harry Brown on May 9th, 2010 at 7:17 pm

    I own an Xbox and a Playstation and both are really good game consoles. Let’s see what are Microsoft’s future updgrades on its Xbox game console.,,,

  29. From Marcos Vinicius Pereira on May 28th, 2010 at 10:41 pm

    uShare worked for me, but the problem is sorting files. Imagine finding that nice picture you took in your 3 years ago vacation amongst your 18,000+ files? Or that wonderful music in you 7,000+ library?
    As long as they create a better sorting, it will be good.

twitter rss