Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: autoplay files on USB?, play mp3 from usb< Next Oldest | Next Newest >
Stine Offline

Group: Members
Posts: 7
Joined: Feb. 2006
Posted: April 22 2008,04:14 QUOTE

any way to make DSL autyoplay mp3s from a usb when I insert it?

automount and then play?

im a wicked noob! sorry....
Back to top
Profile PM 
lucky13 Offline

Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: April 22 2008,12:27 QUOTE

You *could* try to script that but I can think of too many things that can go wrong if you were to do that. Autoplay is a (really bad) Windows default setting I've always changed so I have more control over my system. A better idea might be to set up a script or alias that mounts the device and also launches whatever media player to play files from whichever directory. You could add something like this to your .bashrc:

alias mountandplay='mount /mnt/sda1 && xmms -play /mnt/sda1/mp3/playlist.m3u'

If you have no other mount* executables in your $PATH, you'd only need to type mounta and then tab to complete it and then enter. I would also set up an alias to stop and umount the device (alias unmountandplay='killall xmms && umount /mnt/sda1'). Good idea to check mtab and make sure your device is unmounted before removing.

"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
1 replies since April 22 2008,04:14 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Quick Reply: autoplay files on USB?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code