Link to home
Start Free TrialLog in
Avatar of deepslalli
deepslalliFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of thetmanvn
thetmanvn
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deepslalli

ASKER

Fantastic response and very clear to understand - worked like a dream!!