- Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- Re: Linux + xbox360, настройка медиацентра.
- From linux to xbox
Linux + xbox360, настройка медиацентра.
Не так давно перешел на Linux.Понадобился медиацентр для microsoft xbox 360.Но, естественно, я не знаю как это реализовать, т.к. не имею навыков системного администрирования.Ранее я тут читал, что консоль хекали, эксплоит даже позволял ставить Линукс на неё.По этому, я думаю, давным-давно есть такая программа, в которой можно с ходу разобраться.не важно, графический ли у нее интерфейс или консольный, главное чтоб можно было лить пикчи, музыку и видео.Если это можно сделать простыми сетевыми свойствами операционки, то так даже лучше, только опишите, пожалуйста, как это сделать. Порылся в Гугле, нашёл хов_то:
Однако трудности с переводом у меня.
В общем вооружен маршрутизатором, стоящем на интерфейсе eth0.Иметь коннект ко внешке на консоли, во время нахождения в домашней сети не обязателен. Условимся, что адрес ПК у меня 192.168.0.5, а адрес консоли — 192.168.0.6 .Шлюз — 192.168.1.1 .Это я к тому, что если придется настраивать сетевые параметры.
П.С.:Варианты танцов с бубном вокруг wine, с последующим запуском виндовых программ типа tversity, прошу не предлагать.
Re: Linux + xbox360, настройка медиацентра.
UPD: перечитал тот how-to, с гугл-переводчиком, решил скачать прогу ushare, которую надо настроить, выбрав интерфейс сетевой, и папку разшаривания.Но при конфигурировании исходников выдает ошибку:
Checking for libixml . Error, can’t find libixml !
У меня нет большого работы в Linux-системах, как можно исправить эту ошибку?
Re: Linux + xbox360, настройка медиацентра.
Re: Linux + xbox360, настройка медиацентра.
Да, действительно. спасибо.Я туториал не внимательно читал, там тоже говорилось про libupnp :).
Re: Linux + xbox360, настройка медиацентра.
Ну как оно? Получилось настроить. Мне интересно, потому что у меня тоже есть xbox 360, правда, сцука сломался пару месяцев назад как назло за несколько дней до появления резидента пятого :)))
Re: Linux + xbox360, настройка медиацентра.
Щас мучился с настройкой ushare, там надо было библиотеки скопипастить в другую директорию:
ln -s /usr/local/lib/libixml.so.2 /lib/libixml.so.2 ln -s /usr/local/lib/libthreadutil.so.2 /lib/libthreadutil.so.2 ln -s /usr/local/lib/libupnp.so.2 /lib/libupnp.so.2 ln -s /usr/local/lib/libupnp.so.3 /lib/libupnp.so.3
Работоспособность пока не проверял, сижу бокс прогреваю, ибо тоже как месяц грею, реболл надо делать.Как включу-скажу, заработало или нет.Однако сразу задам вопрос:
Как убить процесс ushare чтобы заново его включить?Я пробовал: ps aux | grep ushare на что получил айди процесса.Попробовал его убить, но он продолжает висеть, а при попытке повторного запуска пишет следующие:
Interface eth0 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: Адрес уже используется
Причём тут вообще bind?Это вроде DNS-сервер для юникс систем.Я даже книгу по нему читал. В общем не понимаю. И почему пишет что интерфейс eth0 в дауне? В общем пошёл пока проверять. результы отпишу.
Re: Linux + xbox360, настройка медиацентра.
Re: Linux + xbox360, настройка медиацентра.
Re: Linux + xbox360, настройка медиацентра.
По какому мануалу производится настройка?
Re: Linux + xbox360, настройка медиацентра.
А зачем его собирать из исходников-то o_O?
> aptitude search ushare
p cpushare — client and server for the CPUShare distributed computing platform
Какой у тебя дистр?
Re: Linux + xbox360, настройка медиацентра.
Спасибо за ссылку, но там в основном рассказывается про аргументы, настройку и описание программы.А мой usharе не корректоно работает.
anton_jugatsu , у меня нету aptitude, у меня на slackware дистр.
Re: Linux + xbox360, настройка медиацентра.
К какому интерфейсу подключена консоль (в смысле приставка)?
Скорее всего она подключена не к eth0.
надо как-то вот так:
ushare -n Galactica -c _расшариваемая директория_ -x -i eth1
Re: Linux + xbox360, настройка медиацентра.
Браузером открывается web-интерфейс?
Re: Linux + xbox360, настройка медиацентра.
Re: Linux + xbox360, настройка медиацентра.
Нет, на тот порт браузер ошибку выдает.А на порт «49200» (тот что указан в конфиге ushare) идет бесконечное ожидание.
Re: Linux + xbox360, настройка медиацентра.
Ну чё там? Получается?
ps aux | grep ushare
Процесс висит? Как ты его запускал, как демона (-D) или сервер?
Отогрел приставку? Как отогреешь — надо будет смотреть видит xbox шару или нет.
Всё таки мне, мне кажется, загвоздка в том, что консоль подклбчена не к eth0, поскольку, как написано в мануале, если стартовать ushare без преффикса -i ethX, то он будет смотреть eth0.
Re: Linux + xbox360, настройка медиацентра.
Да, точно. невнимательно посмотрел в конфиг — там 49200 порт, да это неважно щас, в принципе.
Чё-то вот здесть похожее нашёл. Ща сегундочку.
Re: Linux + xbox360, настройка медиацентра.
У тебя не открывается web-интерфейс из-за этого:
# Enable Web interface (yes/no) ENABLE_WEB=no
Попробуй перезагрузить и консоль и слаку, кк здесь советуют http://sidux.com/PNphpBB2-viewtopic-t-14882.html
Там и рабочий конфиг есть. Сверь со своим.
Re: Linux + xbox360, настройка медиацентра.
Иксбокс включен.шару не видит.Даже компа не видит, только сеть.Сделал в общем скриншоты.Вот первый запуск ushare:
По тупости я его отменил и пошли ошибки bind. Вот собственно ошибка:
В первый раз я когда запускал, я запускал не как демон, а просто ввел «ushare» и пошло поехало.
Re: Linux + xbox360, настройка медиацентра.
Нет, веб интерфейс с истинным параметром тоже не запускался.ок, щас перезагружусь.Попробую еще запустить.
Re: Linux + xbox360, настройка медиацентра.
Попробуй ushare -t -w -x -f /etc/ushare.conf
Чё говори /etc/rc.d/ushare stop — это к вопросу о том, как остановить его.
Re: Linux + xbox360, настройка медиацентра.
Слушай, а ведь правда, ссылку, что ты дал парой постов выше, у чела тоже трабла с биндом была, вылечилась ребутом.У меня ushare после ребута тоже запустился.Потмо включил иксбокс, вписал: ushare -t -w -x -f /usr/local/etc/ushare.conf
И о чудо, бокс видит шару!Это уже что-то!Но почемуто когда пытается дальше к ней подключится, выдает ошибку и просит проверить подключение.Файлы так же не видит естественно.Но название шары видно, т.е. Ushare определяет он:)Вот что вывел консоль:
# ushare -t -w -x -f /usr/local/etc/ushare.conf Interface eth0 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. Initializing UPnP subsystem . Starting in XboX 360 compliant profile . UPnP MediaServer listening on 192.168.1.3:49201 Sending UPnP advertisement for device . Listening for control point connections . Building Metadata List . Looking for files in content directory : /mnt/win_c/music/ Found 406 files and subdirectories.
Дальше курсор остался в фоновом режиме, т.е. не вернулся в консоль.
Re: Linux + xbox360, настройка медиацентра.
Всё. Я понял ошибку.Я просто щас 2 процесса загрузил одновременно и они конфликтовали.Запустил один «ushare -t -w -x -f /usr/local/etc/ushare.conf» и иксбокс играет мне песенки! Млиа, мэн спасибо, выручил реально 🙂 Осталось только в /etc/rc.d прописать, чтобы автоматом запускался.Только я не знаю как.Когда mysql ставил, там демон копировался, оставалось лишь права кинуть и всё.А тут нету дефона, т.е. остановить через /etc/rc.d/ushare stop нельзя. Ну да ладно, и то хлеб:) Процессы кстати убиваюцо отлично щас:)
Искрене желаю выздоровления твоей коробке 🙂
Re: Linux + xbox360, настройка медиацентра.
Попробуй для начала расшарить не весь win_c, а, допустим, недольшую директорию с видео.
Re: Linux + xbox360, настройка медиацентра.
Огась, вот на музыку сделал, там 400 метров всего.Видео на данный момент нету, только пара клипов но они в разрешении .flv, коробка такой не читает, а если переименовать то кодеки дадут о себе знать 🙂 Но я уверен, что видео тоже работает 🙂
Re: Linux + xbox360, настройка медиацентра.
Вот и здорово! Поздравляю! А не подскажешь как можно реанимировать консоль. Она у меня уже второй раз, собака, ломается 🙁 Первый раз посылал парню из москвы — он делал, а теперь опять эти сраные три огня. Как отогревать?
По повобу демона:
# Copyright 2007 Sean Potter
# Distributed under the terms of the GNU General Public License, v2 or later
ebegin «Starting uShare with XBox 360 Support»
start-stop-daemon —start —background —pidfile /var/run/ushare.pid —make-pidfile —exec /usr/bin/ushare — -i eth0 -x -c /шара -n $HOSTNAME
ebegin «Stopping uShare with XBox 360 Support»
Источник
From linux to xbox
The future of this project
I realize there have not been any substantial changes to xow in over a year now. This is partly due to the lack of free time for me as a university student. I thought about the numerous feature requests and long-standing bugs and finally decided to abandon the concept of a user mode driver. While it certainly proved a point it also demonstrated how quickly you reach the boundaries of integration with other parts of the operating system (audio, battery reporting, etc.). I have been working on a new kernel driver for the last couple of months and it already works pretty well. It is currently USB-only and support for the wireless dongle will be added later on. It has audio functionality, battery reporting and support for the chatpad. If you would like to give it a try you can head over to the Discord server. Feedback is much appreciated!
xow is a Linux user mode driver for the Xbox One wireless dongle. It communicates with the dongle via libusb and provides joystick input through the uinput kernel module. The input mapping is based on existing kernel drivers like xpad.
The Xbox One wireless dongle requires a proprietary firmware to operate. The firmware is included with the Xbox — Net — 7/11/2017 12:00:00 AM — 1.0.46.1 driver available from Microsoft Update Catalog. The package is automatically downloaded and extracted during the build process due to Microsoft’s Terms of Use, which strictly disallow the distribution of the firmware. By using xow, you accept Microsoft’s license terms for their driver package.
xow supports both versions of the wireless dongle (slim and bulky one) and the Surface Book 2’s built-in adapter. The following Xbox One controllers are currently compatible with the driver:
Model number | Year | Additional information | Status |
---|---|---|---|
1537 | 2013 | Original controller | Working |
1697 | 2015 | Audio jack | Working |
1698 | 2015 | Elite controller | Working |
1708 | 2016 | Bluetooth connectivity | Working |
1797 | 2019 | Elite controller series 2 | Working |
1914 | 2020 | Share button and USB-C | Untested |
- EmuELEC (starting with version 3.3)
- GamerOS (starting with version 13)
- Steam Link (starting with build 747)
Feel free to package xow for any Linux distribution or hardware you like, as long as you do not publish any prebuilt executables. The build process embeds a copy of Microsoft’s proprietary firmware into the binary, prohibiting any type of distribution. Any issues regarding the packaging should be reported to the respective maintainers.
- Linux (kernel 4.5 or newer)
- curl (for proprietary driver download)
- cabextract (for firmware extraction)
- libusb (libusb-1.0-0-dev for Debian)
- systemd (version 232 or newer)
Clone the repository (necessary for version tagging to work):
Build xow using the following command:
NOTE: Please use BUILD=DEBUG when asked for your debug logs.
Install xow as a systemd unit (runs xow at boot time) and start the service:
NOTE: Running xow manually is strongly discouraged. A reboot might be required for xow to work correctly.
Make sure to completely uninstall xow before updating:
You can enable the dongle’s pairing mode by sending the SIGUSR1 signal to xow:
NOTE: Signals are only handled after a dongle has been plugged in. The default behavior for SIGUSR1 is to terminate the process.
- InputException : No such file or directory
- The /dev/uinput device has to be available. The uinput kernel module needs to be loaded.
- InputException : Permission denied
- The permissions for /dev/uinput have to allow read and write access. The udev rules need to be installed and any conflicts with existing rules have to be resolved.
- Mt76Exception : Failed to load firmware
- Another driver might have already loaded the dongle’s firmware. The dongle needs to be unplugged to reset its internal memory, followed by a restart of xow’s systemd service.
- LIBUSB_ERROR_TIMEOUT
- See the USB incompatibilities section.
- LIBUSB_ERROR_BUSY or LIBUSB_ERROR_NO_DEVICE
- Only a single program can communicate with the dongle at once. Any existing drivers that might interfere with xow need to be disabled. This includes running multiple instances of xow.
- LIBUSB_ERROR_ACCESS
- The permissions for the dongle’s USB device have to be set correctly. This is also handled by the udev rules.
Using an outdated version of libusb can cause various issues. Make sure to update libusb to the latest version.
The controller only remembers the last device it was connected to. It will not automatically establish a connection to the dongle if it was previously plugged into a USB port or paired via bluetooth, even if the same computer was used.
- Certain games do not detect wireless controllers
- Enable the compatibility mode in the service configuration, reload the systemd daemon and restart the service. Controllers connected to the dongle will appear as Xbox 360 controllers.
- Buttons/triggers/sticks are mapped incorrectly
- Try the options listed on this page to remap your inputs.
- Input from the sticks is jumping around
- Try the options listed on this page to set your deadzones.
Some USB controllers are known to cause issues with xow. Plugging your dongle into a USB port that uses an ASMedia controller will lead to problems. Most Intel USB controllers work well with xow. Power management issues can arise when using a USB 3 controller. These can lead to timeouts of the USB communication. The use of a USB hub can mitigate these problems.
In case of any other problems, please open an issue with all the relevant details (dongle version, controller version, logs, captures, etc.).
NOTE: Please refrain from creating issues concerning input remapping, deadzones or game compatibility as these topics are outside the scope of this project.
The dongle’s wireless chip (MT76xx) handles the WLAN connection with individual controllers. The packet format follows Microsoft’s undisclosed GIP (Game Input Protocol) specification. Most of the reverse engineering was done by capturing the communication between the dongle and a Windows PC using Wireshark . As no datasheets for this chip are publicly available, I have used datasheets of similar wireless radios for assistance. Special thanks to the authors of OpenWrt’s mt76 kernel driver. It would have been impossible for me to create this driver without mt76 ‘s source code. If anyone has a greater understanding of the GIP or the weird quirks I had to add to make the driver work, please contact me.
Источник