个人工具
登录
查看“UbuntuHelp:Xbox360Media”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Xbox360Media”的源代码
来自Ubuntu中文
←
UbuntuHelp:Xbox360Media
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Xbox360Media}} {{Languages|UbuntuHelp:Xbox360Media}} == Introduction == 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 will 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/MP••••••••3 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. === Installation of uShare === There are several ways of installing uShare. ==== From the Ubuntu repositories ==== uShare is available from the Ubuntu repositories, so you can simply [[UbuntuHelp:apt:ushare|install it from there]]. After the successful installation of the program, you can proceed at step 2, [[UbuntuHelp:Xbox360Media#Configuration|the configuration]]. ==== 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> === Configuration === ==== Basic Configuration ==== There is a tool integrated to automatically create a configuration file. To run it, open a terminal and execute <pre><nowiki> $ sudo dpkg-reconfigure ushare </nowiki></pre> In a first step, enter the of your media server. Then choose the network-interface to be used by uShare. In the third step, you can enter the paths of the directories you want to share with your Xbox 360. If you have more than one directory you want to share, separate them with a ",". The program will then restart the uShare service. ==== Advanced Configuration ==== For advanced configuration of uShare, open and edit '''/etc/ushare.conf''' (root access required). '''In order to enable the Xbox360 support, this step is necessary!''' Here's an example of how a configuration file can look like: <pre><nowiki> USHARE_NAME=Ubuntu_Media_Server USHARE_IFACE=eth0 USHARE_PORT=49200 USHARE_TELNET_PORT=1337 USHARE_DIR=/media1,/media2,/media3 USHARE_OVERRIDE_ICONV_ERR= USHARE_ENABLE_WEB=yes USHARE_ENABLE_TELNET=no USHARE_ENABLE_XBOX=yes USHARE_ENABLE_DLNA=no </nowiki></pre> All the lines are explained in the file on your computer by default. It's important that USHARE_ENABLE_DLNA is set to no, otherwise your Xbox 360 will see the share but won't be able to connect. === Usage === To start the program, just run <pre><nowiki> $ sudo service ushare start </nowiki></pre> If you want to start it by default after booting, execute <pre><nowiki> $ update-rc.d ushare defaults </nowiki></pre> on a terminal. ==== Webinterface ==== To easily manage the shared folders, there is a web-interface you can use. In order to do that, make sure that ''USHARE_ENABLE_WEB'' is enabled in the configuration file. You can now enter the web-interface by opening a browser and typing "http://localhost:49200/web/ushare.html" in the address bar. Remember that you have to change the port according to the value you set in the configuration. You are also able to access the web-interface from another computer by simply replacing "localhost" with the computer's IP-address. ==== Telnet ==== If you set ''USHARE_ENABLE_TELNET'' to ''yes'', you will be able to access the uShare-server with a Telnet-client. Remember to set the port for the Telnet-server in ''USHARE_TELNET_PORT''. Once connected, you are able to use the following commands on the server: {|border="1" cellspacing="0" | '''Command''' || '''Description''' |- | kill || Terminates the uShare server |- | exit || Exits the interface |- | help || Shows help information |- | echod || Echoes all arguments, but with each argument in a new line… DEBUG |- | echo || Echoes all arguments |} === Allowing connections through a firewall === If you are 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 === You can follow [https://help.ubuntu.com/9.10/add-applications/C/removing.html this guide] to remove uShare from your computer. == External Links == * [http://ubuntuforums.org/showthread.php?t=794489 HOWTO: Stream music to your Xbox 360] * [http://en.wikipedia.org/wiki/UPnP_AV_MediaServers A list of UPnP media servers] * [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] * [http://buffalo.nas-central.org/wiki/Ushare_-_UPnP_Media_Server_for_Linux Ushare - UPnP Media Server for Linux] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Xbox360Media
。