You are not logged in.

#1 2012-06-17 03:41:43

wokko
Member
From: Vic AU
Registered: 2010-05-08
Posts: 38

[Solved] Boot sound

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

#2 2012-06-17 03:45:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: [Solved] Boot sound

mplayer ~/Music/whateversong.mp3 &

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-06-17 04:17:03

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [Solved] Boot sound

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

#4 2012-06-17 04:41:48

wokko
Member
From: Vic AU
Registered: 2010-05-08
Posts: 38

Re: [Solved] Boot sound

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

Board footer

Powered by FluxBB