个人工具
104.160.18.24
该IP地址的讨论
登录
查看“UbuntuHelp:Xbox360Media”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Xbox360Media”的源代码
来自Ubuntu中文
←
UbuntuHelp:Xbox360Media
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Xbox360Media}} {{Languages|UbuntuHelp:Xbox360Media}} == Xbox 360 Media sharing == The Xbox 360 has its own implementation of [http://en.wikipedia.org/wiki/UPNP UPnP], meaning that in theory you can share your media without Windows by using open protocols. The reality is more complex, but we do have solutions in the Free world. === Format compatibility === The Xbox 360 is fussy about [http://www.xbox.com/en-US/support/systemuse/xbox360/digitalmedia/intro.htm media formats]. It only supports JPEG images (not GIF or PNG), and you'll likely find that quite a few of your [http://www.xbox.com/en-us/support/systemuse/xbox360/digitalmedia/videoplaybackfaq.htm videos] refuse to play. A workaround is to use transcode, ffmpeg or mencoder to convert your video to a format that the Xbox 360 can interpret, such as Xvid/MP3 in an AVI container. === UPnP sharing with uShare === [http://ushare.geexbox.org/ uShare] allows a Linux PC to share its files with any other device using UPnP. There's a [http://packages.ubuntu.com/search?searchon=names&keywords=ushare package in universe], but its official support for Xbox 360 isn't quite right. Here's one method to get it working right. It's based on [http://ubuntuforums.org/showthread.php?t=848144 this howto], which uses [http://netou.co.uk/?p=28 this patched version of uShare]. ==== Easy version ==== You can find a copy of the source and a DEB package [http://www.slug.org.au/~yama/packages/ushare/ here]. Note that the DEB was made quickly on Ubuntu 8.04 ('Hardy Heron') using [http://www.howtoforge.com/howto_linux_debian_deb_checkinstall Checkinstall]. It is not digitally signed or configured fully, but it should work fine. If the version from universe is installed, remove it first. If you don't feel comfortable with this, see the 'DIY version' below. ==== DIY version ==== First, you need to download, compile and install the patched version of uShare. <ol><li>Set up a build environment.<pre><nowiki> $ sudo aptitude install libupnp-dev build-essential </nowiki></pre> </li><li>Get the uShare source code from [http://netou.co.uk/?p=28 here]. </li><li>In a terminal, extract the source and then descend into the directory.<pre><nowiki> $ tar -jxvf ushare-11a-netou.tar.bz2 $ cd ushare-1.1a-NeToU </nowiki></pre> </li><li>Configure and compile the source<pre><nowiki> $ ./configure --prefix=/ --bindir=/usr/bin --mandir=/usr/share/man $ make </nowiki></pre> </li><li>Create a package and install.<pre><nowiki> $ sudo checkinstall -D make install </nowiki></pre> </li><li>You'll be presented the following options:</li></ol> <pre><nowiki> ***************************************** **** Debian package creation selected *** ***************************************** This package will be built according to these values: 0 - Maintainer: [ root@ubuntu-desktop ] 1 - Summary: [ ushare ] 2 - Name: [ ushare-1.1a ] 3 - Version: [ NeToU ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ ushare-1.1a-NeToU ] 9 - Alternate source location: [ ] 10 - Requires: [ ] 11 - Provides: [ ushare-1.1a ] Enter a number to change any of them or press ENTER to continue: 2 Enter new name: >> ushare </nowiki></pre> <ol><li>Select option 2 and enter the name uShare then press <enter> </li><li>You will also need to change the version number follow the same step this time choosing 3 instead. Enter version number "1.1a" then press <enter> twice. It will now create a DEB Package. </li><li>Now you'll have a DEB package created and installed. You can save the DEB for future use.</li></ol> ---- <ol><li>To edit uShare's configuration, open /etc/ushare.conf in your favourite editor and set the following (adjust to your requirements).<pre><nowiki> USHARE_NAME=myserver USHARE_PORT=49200 USHARE_TELNET_PORT=49201 USHARE_DIR=/mnt/hda1,/mnt/hdc1,/mnt/hdd1 USHARE_ENABLE_WEB=yes USHARE_ENABLE_TELNET=yes USHARE_ENABLE_XBOX=yes </nowiki></pre> </li><li>Start the uShare daemon.<pre><nowiki> $ sudo /etc/init.d/ushare start </nowiki></pre> </li><li>Set uShare to start on boot.<pre><nowiki> $ update-rc.d ushare defaults </nowiki></pre></li></ol> ===== Using uShare ===== You can access the uShare Web interface at <pre><nowiki> http://ip_address:port/web/ushare.html </nowiki></pre> The Xbox 360 should see your server just like any UPnP share. ===== Allowing connections through a firewall ===== If you're using Ubuntu's UFW, you can easily add a rule to cope with this. Let's say your Xbox 360 uses a static IP address of 192.168.10.3, and your server is 192.168.10.2 with UPnP on port 49200. Use the following command to provide a small hole in your firewall for this: <pre><nowiki> sudo ufw allow proto tcp from 192.168.10.3 to 192.168.10.2 port 49200 </nowiki></pre> ===== Removing uShare ===== Checkinstall installs uShare into the dpkg repository just like any other package. Uninstallation is easy: <pre><nowiki> $ aptitude remove ushare </nowiki></pre> ==== Other uShare resources ==== * [http://ubuntuforums.org/showthread.php?t=631213 Ushare & Xbox 360] * [http://ubuntuforums.org/showthread.php?t=632428 How to make Ubuntu, uShare and xBox 360 play nice] * [http://www.liamm.com/tech/how-toxbox-360-media-server-in-linux How-To:XBOX 360 Media Server in Linux] === Resources === * [http://ubuntuforums.org/showthread.php?t=794489 HOWTO: Stream music to your Xbox 360] * a list of [http://en.wikipedia.org/wiki/UPnP_AV_MediaServers UPnP media servers] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Xbox360Media
。