You are not logged in.
Pages: 1
Hey guys,
Trying to figure out how to start a song in the background before I login.
I'm running E17.
What I'm trying to do is to start to play a song in the background and still be able to login too.
Why you say, is because when I boot up my pc in the mornings I usually make a coffee so while I'm making a coffee I would like to listen to a song.
I have tried to put "mplayer ~/Music/whateversong.mp3" in /etc/rc.local which works but I have to wait for the song to finish before I can login.
I'm not using any login manager.
Any ideas
Last edited by wokko (2012-06-17 05:14:12)
Offline
mplayer ~/Music/whateversong.mp3 &"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I would go with a custom daemon in /etc/rc.d and call it from /etc/rc.conf. I usually use mplayer, but something even more light weight like ffplay or aplay or ogg123 would be good for this.
However, you shouldn't need to, because Linux doesn't thrive on regular shutdowns/bootups? See, what you really need is use your webcam as a motion sensor and get your computer to start playing music when it first sees you moving around in the morning ;-).
Offline
Thanks guy,
That was quick, I'll give both a try and see how I go.
Edit: Tried both both work good.
Thanks guys
Last edited by wokko (2012-06-17 05:13:22)
Offline
Pages: 1