[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Login music in console



To stack the deck just before that ogg123 command put: amixer -D hw set 
Master 92% unmute That makes sure the sound card will work if the sound 
card is able to do so.On Sat, 27 Oct 2012, Dr Beco wrote:

> On Sat, Oct 27, 2012 at 11:22 AM, Nate Bargmann <n0nb@n0nb.us> wrote:
> > ogg123, perhaps?
> >
> >> Should I put it on ~/.profile? It would be better if the music play
> >> only once per turn on, not every successfull login.
> >
> > As I understand it, if Bash is your default shell and ~/.bash_profile
> > exists, ~/.profile will not be read, although one could source
> > ~/.profile from ~/.bash_profile.  If ~/.bash_profile doesn't exist, then
> > ~./profile will be read.  Someone will likely chime in if I got that
> > wrong.
> >
> > Otherwise, if you only want it to play at system start rather than at
> > each login, you could call the player from /etc/rc.local.  Just include
> > the command line above the 'exit 0' line.  :-)
> >
> > - Nate >>
> >
> 
> Thanks Nate, Hugo & Jude,
> 
> I solved by putting this command:
> 
> ogg123 -q /usr/share/sounds/KDE-Sys-Log-In-Long.ogg &
> 
> in /etc/rc.local
> 
> Cheers,
> Beco
> 
> 
> 
> 

---------------------------------------------------------------------------
jude <jdashiel@shellworld.net>
Adobe fiend for failing to Flash



Reply to: