Page 1 of 28 12311 ... LastLast
Results 1 to 10 of 271

Thread: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

  1. #1
    Join Date
    Sep 2007
    Location
    /dev/null/
    Beans
    1,589

    Smile HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    NOTE: Since the Fuppes UPNP project has gotten its act together I consider that project a superior solution to ushare. I have some basic instructions for compiling SVN fuppes at the end of this thread as currently there is no fuppes package available in the Ubuntu repos. Possibly when my 360 comes back from repair I will consider updating the guide unless someone does it before me.

    So your using Ubuntu and you want to share multimedia from your machine to your 360. This is indeed possible! Some of you may ask, there is a number of existing guides about this, so whats different about this one? Well, this guide uses free software and it uses free software that is not encumbered with bugs.

    At the heart of the matter is that we need whats called a upnp media server to serve the media requests. Microsoft in typical fashion did not adhere to upnp standards when producing the 360's sharing. So that means right off the bat, upnp media servers will not work. Thankfully though, some upnp media servers have been modified to run in a special xbox 360 mode. The bad news is that these select servers are either not free or not robust.

    The community has reached a point where the single robust upnp server that is free, and importantly is not deprecated, does not have the special xbox 360 mode. Servers like 360 media serve and Fruppes are not actively being developed. The Fruppes community is talking about merging with MediaTomb but getting 360 mode into MediaTomb is going to take time. Ushare is still being developed but it contains a number of ugly bugs that makes the experience frustrating. There is a payware upnp media server but in our hearts, we know that using non free software really isnt right.

    Thanks to forum member NeToU he has taken the Ushare source code and patched it to resolve these ugly bugs. So we will be using his patched Ushare version.

    Were going to need to download his source code, configure it, compile it and install it. This is not as hard as it sounds and provided you can follow these instructions carefully you will do fine.

    NOTE: YOU MUST REMOVE AND PURGE ANY OLD USHARE INSTALLS YOU MAY HAVE FROM THE REPOS BEFORE STARTING

    1. Download The Source

    Goto http://netou.co.uk/ and download the source code.

    2. Extract The Source

    I keep my source in a directory tree under home / src though you may use a different approach. Open up a terminal by selecting the Ubuntu icon, Accessories and then Terminal. Now carefully copy and paste the following, one line at a time, hit enter in the terminal and do the next line.

    Code:
    cd ~
    mkdir src

    Now move your archive to the src directory depending on where you downloaded the source too. For example, if it is in your home directory use:

    Code:
    mv ~/ushare-11a-netou.tar.bz2 ~/src/

    Lets extract the source now:

    Code:
    cd ~/src
    tar -xjf ushare-11a-netou.tar.bz2

    3. Compile the program

    First lets get the dependencies out of the way. If your not sure if you already have these there is no harm in doing it as existing installs will not be installed again. So lets get the tools to be able to build software:

    Code:
    sudo apt-get install build-essential

    Now lets deal with getting the software Ushare depends on:

    Code:
    cd ushare-1.1a-NeToU
    sudo apt-get build-dep ushare

    Once that is done, we can compile Ushare now:

    Code:
    ./configure --prefix=/ --bindir=/usr/bin --mandir=/usr/share/man
    make
    sudo make install
    sudo make clean

    4. Configure Ushare:

    Ushare like most Linux apps has a conf file. It is critical that you enable the special xbox 360 upnp mode and that you correctly put in the path of the multimedia that you want to share. To edit you conf file, use the following command:

    Code:
    gksudo gedit /etc/ushare.conf

    Or use nano in the CLI:

    Code:
    sudo nano -w /etc/ushare.conf

    Edit the file to your liking, with the important settings explained below:

    Code:
    USHARE_NAME=          Put the name you want your share to be called e.g. MyMedia
    USHARE_PORT=          Define the port number you want to use e.g. 49200
    USHARE_DIR=           Configure the share locations e.g. /mnt/hda1,/mnt/hdb1/videos/share/
    USHARE_ENABLE_WEB=    Use yes to enable the web interface
    USHARE_ENABLE_TELNET= I turn this off with no, preferring to use the web interface
    USHARE_ENABLE_XBOX=   This must be yes for 360 sharing to work

    Note that Ushare does not handle spaces in the share directories.

    5. Controlling the Ushare daemon

    To start Ushare:

    Code:
    sudo /etc/init.d/ushare start


    And to stop Ushare:

    Code:
    sudo /etc/init.d/ushare stop

    6. Getting Ushare to automatically start on user login:

    Some of the existing guides that use not so robust Upnp servers, also recommend unnecessarily complex ways to get Ushare to autostart. For example by hacking up sudo to run Ushare as a session item for the user. This approach is not only messy, but it also creates the problem where if that user logs out and then later logs in again without rebooting you now have multiple Ushare sessions going.

    Let's get Ushare to auto start using Ubuntu's default runlevel settings:

    Code:
    sudo update-rc.d ushare defaults

    7. Managing Ushare via the web interface

    You can manage Ushare via the web interface at:

    Code:
    http://ip_address:port/web/ushare.html

    For example on my machine, its http://192.168.10.2:49200/web/ushare.html

    8. Wait, I have the firewall on!

    If your using Ubuntu's UFW, you can easily add a rule to cope with this. Lets say your 360 uses a static IP address of 192.168.10.3 and your machine is 192.168.10.2. Use the following command to provide a small hole in your firewall for this:

    Code:
    sudo ufw allow proto tcp from 192.168.10.3 to 192.168.10.2 port 49200

    You can easily check what UFW is doing with:

    Code:
    sudo ufw status

    Your all done, have fun



    FAQ #1 Why Cant I Transcode?

    You can easily! However the best way is to do this outside of a upnp server. Why? The elegant way to do it otherwise is coding a media centre extender. However Microsoft's 360 media centre does not support MPEG4-ASP (divx, xvid) among other things - yes it is behind the "dumber" sharing interface without the media centre. This complicates coding a media centre add on.

    There is robust and verstile Linux apps you can use to easily transcode media. I consider the best to be mencoder which can quickly convert many different media formats into mpeg2. You could even batch script it to convert directories of your media overnight.

    FAQ #2 I Want to Uninstall

    Code:
    cd ~/src/ushare-1.1a-NeToU/
    sudo make uninstall
    sudo update-rc.d -f ushare remove
    Last edited by Nullack; April 26th, 2009 at 03:44 AM. Reason: No spaces in share dir
    He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.

  2. #2
    Join Date
    Oct 2005
    Location
    Sydney, Australia
    Beans
    23
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    Nice work!

    I've created two pages on the Ubuntu wiki for Xbox 360 compatibility, and have incorporated your howto.

    https://help.ubuntu.com/community/Xbox_360
    https://help.ubuntu.com/community/Xbox360Media

  3. #3
    Join Date
    Sep 2007
    Location
    /dev/null/
    Beans
    1,589

    Re: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    Thanks LordYama. I have updated the guide to use the Ushare deamon.

    Users who do not wish to compile their own Ushare and who use the same computing platform as Lord Yama are able to use an easier method. Look for Lord Yama's easy method on the Ubuntu 360 wiki:

    https://help.ubuntu.com/community/Xbox360Media
    He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.

  4. #4
    Join Date
    Jun 2008
    Beans
    7

    Unhappy Re: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    my xbox 360 still can't see my computer..


    btw I think you meant "make clean" not "male clean" as it is written in your post..



    edit: and i get an error when trying to uninstall:

    make: *** No rule to make target `uninstall'. Stop.
    Last edited by krestean; August 12th, 2008 at 02:29 PM.

  5. #5
    Join Date
    Jun 2008
    Beans
    7

    Talking Re: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    ok, my bad..

    have firestarter installed..

    just added the ip of the xbox to "allow connections form hosts" and voilla, it works!


    edit: thanks a lot for the guide
    Last edited by krestean; August 12th, 2008 at 02:50 PM. Reason: forgot something

  6. #6
    Join Date
    Sep 2007
    Location
    /dev/null/
    Beans
    1,589

    Re: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    I have fixed the typo. Im glad you sorted out your networking issue and found the guide useful.

    An update: We continue to need to use the patched version that our member here on the forums kindly provides. The official development tree of Ushare is moving forward but at this stage the official dev code is failing to compile on my test system. It also requires libdlna0 at an unreleased version level as a dependency. These things adds up to the current development version not being ready for use but into the future we will be able to compile Ushare without patches. This should lead to its eventual inclusion into the Ubuntu repos once the Ushare developers release an updated formal release.
    Last edited by Nullack; August 12th, 2008 at 04:21 PM.
    He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.

  7. #7
    Join Date
    Jul 2008
    Beans
    111
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    Hi, thx for the descriptive guide! Couple of questions though.. I've been searching for years now on how to actually stream media to my 360. I dont have a router. How exactly should I connect my 360 to my pc to get this to work? I have a regular ethernet cable and also a crossover cable. Can I do this with one of those cables or do I need a router? I live alone, so I really dont have a need for networking in my apt therefore I never needed a router. I would like to just connect my 360 directly to my pc using one of the cables I have and stream stuff. Possible?

  8. #8
    Join Date
    Jun 2008
    Beans
    7

    dircet connect to pc

    My xbox 360 is directly connected to my laptop.

    xbox live is working perfectly, but ushare stopped working after I rebooted...



    i use the cable that came with my xbox.. think it's a normal ethernet cable..
    Last edited by krestean; August 12th, 2008 at 09:12 PM. Reason: cable

  9. #9
    Join Date
    Sep 2007
    Location
    /dev/null/
    Beans
    1,589

    Re: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    It certainly is possible to run router like functions on Ubuntu - DNS, DHCP, Firewall, NAT etcetc.

    If you guys conduct a search you'll see a number of howtos on this forum and externally on internet connection sharing with Ubuntu.

    I prefer to run routing on dedicated hardware as then I dont need to have my workstation on to serve the 360. It free's me to fiddle around with the workstation, reboot when I want etcetc without interfering with the connectivity of other machines.

    Krestean you can see if Ubuntu is running by typing "sudo ps -e | grep ushare". This is the first step in diagnosing the issue.
    He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.

  10. #10
    Join Date
    Jul 2008
    Beans
    111
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOW TO: The Ultimate XBOX 360 Multimedia Sharing Guide

    Nullack:

    Quote Originally Posted by Drizzel View Post
    Hi, thx for the descriptive guide! How exactly should I connect my 360 to my pc to get this to work? I have a regular ethernet cable and also a crossover cable. Can I do this with one of those cables or do I need a router?

Page 1 of 28 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •