Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to serve up a whole directory or multi directory tree of music or movies via vlc so other computers can look at it at random, the way GameShark's Media Player does with the PS2? I like this idea better than sharing the actual directories, if this option is possible.
It shounds like you want uShare. Many distributions have it in their repositories. On Fedora, for example:
yum install ushare
The configuration is trivial... In /etc/ushare.conf, set the shared directories. For example:
USHARE_DIR=/Music,/E-Books/Audio
Start the server, and you can now use almost any streaming UPnP AV client to play any selections that have been shared.
Wow, that looks nice. Can I auto-share the subdirectories that are beneath the top, or do I have to select them? I have a ton of directories full of mp3's.
You just need to specify the top directory/directories; all the subdirectories will be available as well.
Ok, that seems to work!
So how do you get videolan-client to connect as a client to this? Or maybe Xine? I searched for solutions online and apparently no Linux or Windows program is actually "listed" to work with it!
This Wikipedia article lists a number of UPnP clients, including several on Windows. On Linux, you can use any non-UPnP client (like Xine, VLC, Amarok, etc.) with the djmount UPnP AV client.
This Wikipedia article lists a number of UPnP clients, including several on Windows. On Linux, you can use any non-UPnP client (like Xine, VLC, Amarok, etc.) with the djmount UPnP AV client.
Ah well, djmount doesn't seem to interface with ushare. Both programs are running now but there's no indication of any ushare in djmount's mounted directory. They simply don't communicate with each other.
Sorry I wasted your time, it's simply not possible to do this yet, I'll come back in about a year when this technology is more mature.
You certainly don't need to shutdown your firewall. If you have a firewall, in the /etc/ushare.conf, set:
USHARE_PORT=49200
Then allow your firewall to pass that port to whomever you want (your subnet or the world). For example, with IPTABLES to allow access from subnet 192.168.1.0:
As to why you are not seeing the server with the firewall down, does your distribution include Avahi (the zeroconf service)? Many distributions include this now (for example it is installed and started automatically on Fedora). If not, you need to install and start the avahi-daemon. On Fedora, assuming you removed it:
yum -y install avahi-daemon
chkconfig avahi-daemon on
service avahi-daemon start
You certainly don't need to shutdown your firewall. If you have a firewall, in the /etc/ushare.conf, set:
USHARE_PORT=49200
Then allow your firewall to pass that port to whomever you want (your subnet or the world). For example, with IPTABLES to allow access from subnet 192.168.1.0:
As to why you are not seeing the server with the firewall down, does your distribution include Avahi (the zeroconf service)? Many distributions include this now (for example it is installed and started automatically on Fedora). If not, you need to install and start the avahi-daemon. On Fedora, assuming you removed it:
yum -y install avahi-daemon
chkconfig avahi-daemon on
service avahi-daemon start
Wow, okay, THAT all worked!
djmount now sees my ushare and I can even see uShare in the mount area. Local vlc can see the mount point.
Now for the last piece of the puzzle... how does a remote vlc connect to that?
The mount point area just looks like files to any non-UPnP application. You can pretend that the files are just local as far as they are concerned. The streaming will be "behind the scenes" and on-demand - if VLC or mplayer or Xine, whatever opens a "file" in the streaming mount point, as it accesses the data djmount and uShare will stream it real-time.
Standalone streaming client devices will also be able to see the media server and access the data. I use it with the client on the Nokia N800, for example, and it works great.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.