<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Roberto Carvajal &#187; Linux</title>
	<atom:link href="http://robertocarvajal.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertocarvajal.org</link>
	<description>personal blog</description>
	<lastBuildDate>Thu, 22 Jul 2010 01:37:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Streaming Video From Linux To The Xbox 360 With Ushare</title>
		<link>http://robertocarvajal.org/2008/11/19/streaming-video-from-linux-to-the-xbox-360-with-ushare/</link>
		<comments>http://robertocarvajal.org/2008/11/19/streaming-video-from-linux-to-the-xbox-360-with-ushare/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 19:00:13 +0000</pubDate>
		<dc:creator>Roberto</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Xbox360]]></category>

		<guid isPermaLink="false">http://robertocarvajal.org/2008/11/19/streaming-video-from-linux-to-the-xbox-360-with-ushare/</guid>
		<description><![CDATA[I had successfully setup ushare to stream multimedia content from my linux fileserver/p2p machine to my xbox 360 in order to reproduce the media on my tv without using xbox 360 hard drive space and without all the hassle that means burning disks or copying data to a pendrive, it works, the only problem right [...]]]></description>
			<content:encoded><![CDATA[<p>I had successfully setup <a title="GeeXboX uShare UPnP A/V Media Server HomePage" href="http://ushare.geexbox.org/">ushare</a> to stream multimedia content from my linux fileserver/p2p machine to my xbox 360 in order to reproduce the media on my tv without using xbox 360 hard drive space and without all the hassle that means burning disks or copying data to a pendrive, it works, the only problem right now is that xbox 360 doesn&#8217;t support any kind of subtitles, altough I can understand 99% of the english I hear, that&#8217;s not the case for the rest of the family. Anyways, this is what you have to do to get things working smooth.</p>
<p>First, of course, install ushare, I won&#8217;t give details because it changes from system to system, I recommend you to use your distribution package system to get this one installed.</p>
<p>After the install you need to add a multicast route so the upnp discovery protocol can work, add this to your <code>/etc/rc.local</code> if you want this to run on each boot, just change <code>eth0</code> to your real network interface.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">route add <span style="color: #660033;">-net</span> 239.0.0.0 netmask 255.0.0.0 eth0
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth0 allmulti</pre></div></div>

<p>Either run that manually now or reboot, after that you should see your route like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>tangerine ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># route</span>
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     <span style="color: #000000; font-weight: bold;">*</span>               255.255.255.0   U     <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span> eth0
239.0.0.0       <span style="color: #000000; font-weight: bold;">*</span>               255.0.0.0       U     <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span> eth0
default         Lucius          0.0.0.0         UG    <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span> eth0</pre></div></div>

<p>Now edit ushare config, mine is at <code>/etc/ushare.conf</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/ushare.conf</span>
<span style="color: #666666; font-style: italic;"># Configuration file for uShare&lt;/code&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># uShare UPnP Friendly Name (default is 'uShare').</span>
<span style="color: #007800;">USHARE_NAME</span>=uShare
&nbsp;
<span style="color: #666666; font-style: italic;"># Interface to listen to (default is eth0).</span>
<span style="color: #666666; font-style: italic;"># Ex : USHARE_IFACE=eth1</span>
<span style="color: #007800;">USHARE_IFACE</span>=eth0
&nbsp;
<span style="color: #666666; font-style: italic;"># Port to listen to (default is random from IANA Dynamic Ports range)</span>
<span style="color: #666666; font-style: italic;"># Ex : USHARE_PORT=49200</span>
<span style="color: #007800;">USHARE_PORT</span>=
&nbsp;
<span style="color: #666666; font-style: italic;"># Port to listen for Telnet connections</span>
<span style="color: #666666; font-style: italic;"># Ex : USHARE_TELNET_PORT=1337</span>
<span style="color: #007800;">USHARE_TELNET_PORT</span>=
&nbsp;
<span style="color: #666666; font-style: italic;"># Directories to be shared (space or CSV list).</span>
<span style="color: #666666; font-style: italic;"># Ex: USHARE_DIR=/dir1,/dir2</span>
<span style="color: #007800;">USHARE_DIR</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>shared<span style="color: #000000; font-weight: bold;">/</span>multimedia
&nbsp;
<span style="color: #666666; font-style: italic;"># Use to override what happens when iconv fails to parse a file name.</span>
<span style="color: #666666; font-style: italic;"># The default uShare behaviour is to not add the entry in the media list</span>
<span style="color: #666666; font-style: italic;"># This option overrides that behaviour and adds the non-iconv'ed string into</span>
<span style="color: #666666; font-style: italic;"># the media list, with the assumption that the renderer will be able to</span>
<span style="color: #666666; font-style: italic;"># handle it. Devices like Noxon 2 have no problem with strings being passed</span>
<span style="color: #666666; font-style: italic;"># as is. (Umlauts for all!)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Options are TRUE/YES/1 for override and anything else for default behaviour</span>
<span style="color: #007800;">USHARE_OVERRIDE_ICONV_ERR</span>=
&nbsp;
<span style="color: #666666; font-style: italic;"># Enable Web interface (yes/no)</span>
<span style="color: #007800;">ENABLE_WEB</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Enable Telnet control interface (yes/no)</span>
<span style="color: #007800;">ENABLE_TELNET</span>=
&nbsp;
<span style="color: #666666; font-style: italic;"># Use XboX 360 compatibility mode (yes/no)</span>
<span style="color: #007800;">USHARE_ENABLE_XBOX</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Use DLNA profile (yes/no)</span>
<span style="color: #666666; font-style: italic;"># This is needed for PlayStation3 to work (among other devices)</span>
<span style="color: #007800;">ENABLE_DLNA</span>=no</pre></div></div>

<p>Notice the <strong>USHARE_ENABLE_XBOX=yes</strong>?, turns out that in the default config file the option is named just <strong>ENABLE_XBOX</strong> which doesn&#8217;t work, the correct option name is <strong>USHARE_ENABLE_XBOX</strong>. Now after your config is OK you should start ushare, then go to your xbox, select multimedia -&gt; videos and press X button to load videos from another source, if everything is OK there you should see your uShare source.</p>
<p>Thanks to <a title="ECBC » uShare vs XBox 360 vs Ubuntu" href="http://blog.joebalancio.com/?p=19">this blog</a>, I found the config flag fix. All kudos and greets to that guy.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://robertocarvajal.org/2008/11/19/streaming-video-from-linux-to-the-xbox-360-with-ushare/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
