link: http://ushare.geexbox.org/
At first you need to be sure that you have setup a multicast route for UPnP messages. If you don't but have a default route attributed, then this later will be used. Otherwise, simply declare a new route for UPnP multicasts (for example using eth0 interface) :
route add -net 239.0.0.0 netmask 255.0.0.0 eth0uShare runs from the console only. It supports the usual --help option which displays usage and option information.
Options: -n, --name=NAME Set UPnP Friendly Name (default is 'uShare') -i, --interface=IFACE Use IFACE Network Interface (default is 'eth0') -f, --cfg=FILE Config file to be used -p, --port=PORT Forces the HTTP server to run on PORT -q, --telnet-port=PORT Forces the TELNET server to run on PORT -c, --content=DIR Share the content of DIR directory (default is './') -w, --no-web Disable the control web page (enabled by default) -t, --no-telnet Disable the TELNET control (enabled by default) -o, --override-iconv-err If iconv fails parsing name, still add to media contents (hoping the renderer can handle it) -v, --verbose Set verbose display. -x, --xbox Use XboX 360 compliant profile -d, --dlna Use DLNA compliant profile (PlayStation3 needs this) -D, --daemon Run as a daemon. -V, --version Display the version of uShare and exit -h, --help Display this helpuShare expects at least one directory argument (-c argument), specifying where multimedia files are stored. You should probably also use the -i option to specify which interface uShare should listen on.
ushare -c /shares ushare -c /shares1 --content=/shares2You can also perform remote control of uShare UPnP Media Server through its web interface. This let you define new content locations at runtime or update the currently shared one in case the filesystem has changed.
Just go to :
http://ip_address:port/web/ushare.htmlSee the manual page for more details :
man ushareInstalando uShare
sudo apt-get install ushare
sudo dpkg-reconfigure ushare
sudo gedit /etc/ushare.conf
# /etc/ushare.conf
# Edit this file with 'dpkg-reconfigure ushare'
# Configuration file for uShare
# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=server_uShare
# 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=49200
# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=1337
# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/home/Data/Music,/home/Data/Pictures,/home/Data/Video
# 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)
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
E por fim:
sudo route add -net 239.0.0.0 netmask 255.0.0.0 eth0
sudo /etc/init.d/ushare restart
Também pode-se utilizar do site: http://localhost:49200/web/ushare.html
Postar um comentário