0 Members and 1 Guest are viewing this topic.
# /etc/ushare.conf# Edit this file with 'dpkg-reconfigure ushare'# Configuration file for uShare# uShare UPnP Friendly Name (default is 'uShare').USHARE_NAME=Marks-PC# Interface to listen to (default is eth0).# Ex : USHARE_IFACE=eth1USHARE_IFACE=eth0# Port to listen to (default is random from IANA Dynamic Ports range)# Ex : USHARE_PORT=49200USHARE_PORT=49201# Port to listen for Telnet connections# Ex : USHARE_TELNET_PORT=1337USHARE_TELNET_PORT=1338# Directories to be shared (space or CSV list).ushare -x# Ex: USHARE_DIR=/dir1,/dir2USHARE_DIR=/home/mark/Music,/home/mark/Videos# 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 intoushare -x# 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 behaviourUSHARE_OVERRIDE_ICONV_ERR=yes# Enable Web interface (yes/no)USHARE_ENABLE_WEB=no# Enable Telnet control interface (yes/no)USHARE_ENABLE_TELNET=no# Use XboX 360 compatibility mode (yes/no)USHARE_ENABLE_XBOX=yes# Use DLNA profile (yes/no)ushare -x# This is needed for PlayStation3 to work (among other devices)USHARE_ENABLE_DLNA=no
sudo /etc/init.d/ushare stop
ushare -x
/etc/ushare.conf: 6: Laptop: not found
[email protected]:~$ sudo apt-get install ushareReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages were automatically installed and are no longer required: linux-headers-2.6.35-22 linux-headers-2.6.35-22-genericUse 'apt-get autoremove' to remove them.The following NEW packages will be installed ushare0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.Need to get 0B/51.6kB of archives.After this operation, 238kB of additional disk space will be used.Preconfiguring packages .../etc/ushare.conf: 6: Laptop: not foundushare failed to preconfigure with exit status 127.Selecting previously deselected package ushare.(Reading database ... 160522 files and directories currently installed.)Unpacking ushare (from .../ushare_1.1a-0ubuntu5_i386.deb) ...Processing triggers for man-db ...Processing triggers for ureadahead ...Setting up ushare (1.1a-0ubuntu5) .../etc/ushare.conf: 6: Laptop: not founddpkg: error processing ushare (--configure): subprocess installed post-installation script returned error exit status 127Errors were encountered while processing: ushareE: Sub-process /usr/bin/dpkg returned an error code (1)[email protected]:~$ sudo dpkg-reconfigure ushare/usr/sbin/dpkg-reconfigure: ushare is broken or not fully installed.
sudo apt-get install ushare
gedit /etc/ushare.conf
sudo apt-get remove --purge ushare
Seemed to install ok that time.[[email protected]:~$ sudo apt-get remove --purge ushareReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages were automatically installed and are no longer required: linux-headers-2.6.35-22 linux-headers-2.6.35-22-genericUse 'apt-get autoremove' to remove them.The following packages will be REMOVED ushare*0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.1 not fully installed or removed.After this operation, 238kB disk space will be freed.Do you want to continue [Y/n]? y(Reading database ... 160536 files and directories currently installed.)Removing ushare ... * Stopping uShare UPnP A/V & DLNA Media Server: ushare [ OK ] Purging configuration files for ushare ...Processing triggers for ureadahead ...Processing triggers for man-db ...[email protected]:~$ sudo apt-get install ushareReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages were automatically installed and are no longer required: linux-headers-2.6.35-22 linux-headers-2.6.35-22-genericUse 'apt-get autoremove' to remove them.The following NEW packages will be installed ushare0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.Need to get 0B/51.6kB of archives.After this operation, 238kB of additional disk space will be used.Preconfiguring packages ...Selecting previously deselected package ushare.(Reading database ... 160521 files and directories currently installed.)Unpacking ushare (from .../ushare_1.1a-0ubuntu5_i386.deb) ...Processing triggers for man-db ...Processing triggers for ureadahead ...Setting up ushare (1.1a-0ubuntu5) ... * Starting uShare UPnP A/V & DLNA Media Server: ushare ]
ifconfig
[email protected]:~$ ifconfigeth0 Link encap:Ethernet HWaddr 00:15:c5:43:37:d6 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:112 errors:0 dropped:0 overruns:0 frame:0 TX packets:112 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:18340 (18.3 KB) TX bytes:18340 (18.3 KB)wlan0 Link encap:Ethernet HWaddr 00:18:de:0d:4e:ba inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::218:deff:fe0d:4eba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27851 errors:0 dropped:0 overruns:0 frame:0 TX packets:26097 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:26654896 (26.6 MB) TX bytes:5966737 (5.9 MB)
[email protected]:~$ sudo /etc/init.d/ushare stop * Stopping uShare UPnP A/V & DLNA Media Server: ushare [ OK ] [email protected]:~$ ushare -xInterface wlan0 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.0.6:49153Sending UPnP advertisement for device ...Listening for control point connections ...Building Metadata List ...Looking for files in content directory : /home/celticbiker/PicturesFound 142 files and subdirectories.
# /etc/ushare.conf# Edit this file with 'dpkg-reconfigure ushare'# Configuration file for uShare# uShare UPnP Friendly Name (default is 'uShare').USHARE_NAME=Celticbiker# Interface to listen to (default is eth0).# Ex : USHARE_IFACE=eth1USHARE_IFACE=wlan0# Port to listen to (default is random from IANA Dynamic Ports range)# Ex : USHARE_PORT=49200USHARE_PORT=49201# Port to listen for Telnet connections# Ex : USHARE_TELNET_PORT=1337USHARE_TELNET_PORT=# Directories to be shared (space or CSV list).# Ex: USHARE_DIR=/dir1,/dir2USHARE_DIR=/home/celticbiker/Pictures# 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 behaviourUSHARE_OVERRIDE_ICONV_ERR=yes# Enable Web interface (yes/no)USHARE_ENABLE_WEB=no# Enable Telnet control interface (yes/no)USHARE_ENABLE_TELNET=no# Use XboX 360 compatibility mode (yes/no)USHARE_ENABLE_XBOX=yes# Use DLNA profile (yes/no)ushare -x# This is needed for PlayStation3 to work (among other devices)USHARE_ENABLE_DLNA=no