On Thu, 2009-02-19 at 12:47 -0800, Shane W wrote: > Hey all, > > Does anyone have a Freevo solution where I can connect an > External hard drive, USB key whatever and Freevo would be > able to navigate it. The automount stuff is easily enough > done but the issue I run into is Freevo has the idea of > audio_items and video_items where the directory would be > linked in. On a foreign drive though, we don't know in > advance what will be on it, music movies, pictures etc. Is > there any setting whereby Freevo will just launch the > appropriate playback method and not care where the > directory is categorized?
I have solved this the following way:
1) Install the usbmount program
2) In /etc/udev/usbmount.rules (might vary on your distro), insert:
-- snip --
# Rules for USBmount
KERNEL=="sd*", BUS=="usb", ACTION=="add", RUN
+="/usr/share/usbmount/usbmount add"
KERNEL=="ub*", BUS=="usb", ACTION=="add", RUN
+="/usr/share/usbmount/usbmount add"
KERNEL=="sd*", ACTION=="remove", RUN
+="/usr/share/usbmount/usbmount remove"
KERNEL=="ub*", ACTION=="remove", RUN
+="/usr/share/usbmount/usbmount remove"
-- snip --
3) Restart udev
4) Make sure you have in /etc/usbmount/usbmount.conf: FILESYSTEMS="ext2
ext3 vfat" to allow fat partitions to work AND:
MOUNTOPTIONS="sync,noexec,nodev,noatime,ro" to mount al devices
read-only, or data loss could happen, since you won't be able to unmount
devices cleanly with freevo
5) Then you can add in your freevo's local_conf.py on the
Video/Music/Images section something like: ('External
Storage','/var/run/usbmount/')
Then if you plug in your usb key, a new folder should show up
in /var/run/usbmount/, and if you go to Video/Music/Images on your
freevo system and select External Storage on them you will see the usb
key and files.
Hope this helps.
Cheers,
Benedikt
>
> Shane
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Freevo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-users
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
_______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users
