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: Want to automatically boot media player.< Next Oldest | Next Newest >
steveo21 Offline





Group: Members
Posts: 1
Joined: April 2006
Posted: April 07 2006,14:43 QUOTE

Hi guys

Im new to DSL, just wondering how can i automatically boot a media player, for example "M Player" as soon as DSL loads?

And if so can it automatically play a media file e.g mpeg, wav.?

Thanks for any help
Steven
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 07 2006,15:33 QUOTE

put something like this in .xinitrc, just before the windowmanager:
mplayer /path/to/filename.mpg &

Since it will start to load before the window manager does, it might be better to put it in a script with a pause, though:
Code Sample
#!/bin/sh
sleep 3
exec mplayer /path/to/filename.mpg
and start the script from xinitrc, with "&" at the end of the script command.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
newOldUser Offline





Group: Members
Posts: 241
Joined: Oct. 2004
Posted: April 08 2006,13:54 QUOTE

You might be able to  use the built in mpg321 player. I like to have this run at startup. I put it in the .xinitrc file in the /home/dsl directory:

mpg321 -q -g 50 -o oss ~/torvalds-says-linux.mp3 &

My favorite mp3 to put on new linux users machines and have played at startup is from this site:  Linus pronounces Linux


--------------
======== Note =========
The DSL Forum Search default is 'OR'
If you search for "cat dog" you will get all "cat" posts and all "dog" posts.
If you search for "cat AND dog" you will only find results that contain BOTH "cat" and "dog"
Add '*' for wildcards, " cat* and dog* "
Back to top
Profile PM 
2 replies since April 07 2006,14:43 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Want to automatically boot media player.

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