You are not logged in.

#1 2011-03-27 17:14:00

Slurp
Member
From: Madrid, Spain
Registered: 2008-09-02
Posts: 124

Ushare wrong interface

Hi.

I'm trying to set ushare on my laptop so I can watch movies on TV through my PS3. I've followed the wiki on that but when running it as a daemon it doesn't complay but my PS3 finds nothing. I tried to run Ushare normally and Ushare looks for eth0 interface and finds it down, even though it is up and running... Any hint?

# /etc/ushare.conf
# Configuration file for uShare

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=

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

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/home/pablo/Vídeos/Películas

# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=

# Enable Web interface (yes/no)
USHARE_ENABLE_WEB=

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

# Use XboX 360 compatibility mode (yes/no)
USHARE_ENABLE_XBOX=                                                                                                                                                        
                                                                                                                                                                           
# Use DLNA profile (yes/no)                                                                                                                                                
# This is needed for PlayStation3 to work (among other devices)                                                                                                            
#USHARE_ENABLE_DLNA=yes                                                                                                                                                    
USHARE_ENABLE_DLNA=yes 
$ ushare -v
Interface eth0 is down.                                                                                                                                                    
Recheck uShare's configuration and try again !  
(...)

Last edited by Slurp (2011-03-27 17:16:39)


Stop the world, I get off...

Offline

#2 2011-03-27 20:35:08

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Ushare wrong interface

I've just tried with my Xbox and although ushare _does_ tell me that eth0 is down, it still works...

I haven't set anything in ushare.conf (no USHARE_IFACE or USHARE_DIR) and ran it with "ushare -v -xc /mnt/disk/vids/" (the "x" is for "Xbox".)

I have no solution for your PS3 but it looks like the problem might not be related to the "eth0 is down" message... I'd try to serve a directory that has no "í" in its name, just in case.

Offline

#3 2011-03-28 16:46:53

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,229
Website

Re: Ushare wrong interface

Did you add a broadcast-route to your /etc/rc.conf? If you don't, chances are your server doesn't announce its presence on the network appropriately. It's in the wiki-page I started I while ago: https://wiki.archlinux.org/index.php/Streaming_media

Offline

#4 2011-03-29 22:36:04

Slurp
Member
From: Madrid, Spain
Registered: 2008-09-02
Posts: 124

Re: Ushare wrong interface

Hey guys, thank you very much for your time.

I tried with a directory without "í" and with this rc.conf with the same result

#
# /etc/rc.conf - Main Configuration for Arch Linux
#                                                                                                                                                                          
                                                                                                                                                                           
# -----------------------------------------------------------------------                                                                                                  
# LOCALIZATION                                                                                                                                                             
# -----------------------------------------------------------------------                                                                                                  
#                                                                                                                                                                          
# LOCALE: available languages can be listed with the 'locale -a' command                                                                                                   
# DAEMON_LOCALE: Set the locale during daemon startup and during the boot                                                                                                  
#   process. If set to 'no', the C locale will be used.                                                                                                                    
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result                                                                                                  
#   in the hardware clock being left untouched (useful for virtualization)                                                                                                 
# TIMEZONE: timezones are found in /usr/share/zoneinfo                                                                                                                     
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps                                                                                                                      
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)                                                                                               
# CONSOLEMAP: found in /usr/share/kbd/consoletrans                                                                                                                         
# USECOLOR: use ANSI color sequences in startup messages                                                                                                                   
#                                                                                                                                                                          
LOCALE="es_ES.UTF-8"                                                                                                                                                       
DAEMON_LOCALE="no"                                                                                                                                                         
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Madrid"
KEYMAP="es"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(acpi_cpufreq cpufreq_ondemand cpufreq_powersave iwl3945 !pcspkr !snd_pcsp !usblp)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="pablerkas"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
INTERFACES=(!eth0 !wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
#gateway="default gw 192.168.1.1"
ROUTES=(!gateway multicast)
gateway=""
multicast="-net 239.0.0.0 netmask 255.0.0.0 eth0"
 
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng dbus @networkmanager @preload @alsa @crond @openntpd @mysqld !network !netfs)

Last edited by Slurp (2011-03-29 22:39:29)


Stop the world, I get off...

Offline

#5 2011-03-31 09:29:04

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,229
Website

Re: Ushare wrong interface

This is not correct imho:
INTERFACES=(!eth0 !wlan0)
ROUTES=(!gateway multicast)
multicast="-net 239.0.0.0 netmask 255.0.0.0 eth0"

Your eth0 is not used, but you do make a route to it?

Offline

#6 2011-06-07 11:18:53

PIMPinator
Member
From: Queensland, Australia
Registered: 2010-03-14
Posts: 85

Re: Ushare wrong interface

That multicast line is completely wrong AFAIK. It gives errors upon starting the network daemon.

Offline

#7 2011-06-07 20:39:38

feNNec
Member
Registered: 2010-09-11
Posts: 34

Re: Ushare wrong interface

Slurp wrote:

Hi.

I'm trying to set ushare on my laptop so I can watch movies on TV through my PS3. I've followed the wiki on that but when running it as a daemon it doesn't complay but my PS3 finds nothing. I tried to run Ushare normally and Ushare looks for eth0 interface and finds it down, even though it is up and running... Any hint?

# /etc/ushare.conf
# Configuration file for uShare

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=

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

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/home/pablo/Vídeos/Películas

# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=

# Enable Web interface (yes/no)
USHARE_ENABLE_WEB=

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

# Use XboX 360 compatibility mode (yes/no)
USHARE_ENABLE_XBOX=                                                                                                                                                        
                                                                                                                                                                           
# Use DLNA profile (yes/no)                                                                                                                                                
# This is needed for PlayStation3 to work (among other devices)                                                                                                            
#USHARE_ENABLE_DLNA=yes                                                                                                                                                    
USHARE_ENABLE_DLNA=yes 
$ ushare -v
Interface eth0 is down.                                                                                                                                                    
Recheck uShare's configuration and try again !  
(...)

I'm using ushare by starting it as root and I don't this message

Offline

#8 2011-06-08 14:21:03

PIMPinator
Member
From: Queensland, Australia
Registered: 2010-03-14
Posts: 85

Re: Ushare wrong interface

zenlord wrote:

This is not correct imho:
INTERFACES=(!eth0 !wlan0)
ROUTES=(!gateway multicast)
multicast="-net 239.0.0.0 netmask 255.0.0.0 eth0"

Your eth0 is not used, but you do make a route to it?

Actually I just noticed, other than the multicast line being wrong, you appear to not be using the standard network daemon, so you shouldn't need the multicast line anyway.

Offline

Board footer

Powered by FluxBB