?
Solved

Need to get Fedora/Linux Media Server using uShare working with Xbox 360

Posted on 2009-05-10
2
Medium Priority
?
1,230 Views
Last Modified: 2013-12-06
Guys,

I have Fedora 10 installed on my laptop. I am planning to install it on my Home PC but I thought I would test uShare on my laptop first.

I have installed uShare and configured the sudo gedit /etc/ushare.conf  file.


http://www.liamm.com/tech/how-toxbox-360-media-server-in-linux

So it looks like this;

# /etc/ushare.conf
# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=VIDEOSERVER

# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=eth0

# Port to listen to
USHARE_PORT=49153

# Port to listen for Telnet connections
USHARE_TELNET_PORT=1337

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/home/user/xbox360

# Use to override what happens when iconv fails to parse a file name.
USHARE_OVERRIDE_ICONV_ERR=yes

# Enable Web interface (yes/no)
ENABLE_WEB=yes

# Enable Telnet control interface (yes/no)
ENABLE_TELNET=no

# Use XboX 360 compatibility mode (yes/no)
ENABLE_XBOX=yes

# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
ENABLE_DLNA=yes

When I use the command sudo /etc/init.d/ushare start
i should get * Starting uShare UPnP A/V & DLNA Media Server: ushare
...done.
instead I get 'starting share ... ok' - not sure if that is just the same outcome.

Ok, the next steps are to do this http://your.servers.ip.address:49153/web/ushare.html - done that and it works.

This is where it gets a bit strange;

When I try to edit this file ; sudo gedit /etc/init.d/ushare
I am supposed to do this

Find the following lines

start-stop-daemon --start --quiet --background --oknodo \
--make-pidfile --pidfile $PIDFILE \
--exec $DAEMON -- $USHARE_OPTIONS

And change them to

start-stop-daemon --start --quiet --background --oknodo \
--make-pidfile --pidfile $PIDFILE \
--exec $DAEMON -- $USHARE_OPTIONS --xbox

However, in my file I can't find any of these lines.

Mine looks like this ;

#!/bin/sh
#
# ushare            This shell script takes care of starting and stopping ushare.
#
# chkconfig: - 75 25
# description:      uShare UPnP A/V Media Server.
#

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

OPTIONS=""
prog=ushare
DESC="UPnP A/V Media Server"

[ -r "/etc/ushare.conf" ] && . /etc/ushare.conf
# abort if no shared directory is defined
[ -z "$USHARE_DIR" ] && exit 0


start() {
      echo -n $"Starting $prog: "
      daemon --user ushare $prog -d -D
      RETVAL=$?
      echo
      [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
      echo -n $"Stopping $prog: "
      killproc $prog
      RETVAL=$?
      echo
      [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog /var/run/ircd.pid
}

reload() {
      echo -n $"Reloading $prog: "
      killproc $prog -HUP
      RETVAL=$?
      echo
}

# See how we were called.
case "$1" in
  start)
      start
      ;;
  stop)
      stop
      ;;
  status)
      status $prog
      RETVAL=$?
      ;;
  restart)
      stop
      start
      ;;
  condrestart)
      if [ -f /var/lock/subsys/$prog ]; then
        stop
        start
      fi
      ;;
  reload)
      reload
      ;;
  *)
      echo $"Usage: $prog {start|stop|restart|condrestart|reload|status"
      exit 1
esac

exit $RETVAL

When I start my Xbox 360, it does not show my Laptop.

Sorry for the long post but I though I would put as much info in as I can.

If you need the step by step guide to this here it is
http://www.liamm.com/tech/how-toxbox-360-media-server-in-linux

Thank you for your help
0
Comment
Question by:deepslalli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
thetmanvn earned 2000 total points
ID: 24349254
Hi, deepslalli

There's difference because the tutorial you did is for Ubuntu, and you are Fedora so the init script has little difference.

You add --xbox after -d -D as below and test it

start() {
      echo -n $"Starting $prog: "
      daemon --user ushare $prog -d -D --xbox
      RETVAL=$?
      echo
      [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}
0
 

Author Closing Comment

by:deepslalli
ID: 31623703
Fantastic response and very clear to understand - worked like a dream!!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 5 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question