Page 1 of 1

How to add a Shutdown sound to Ubuntu 12.04 and up !

PostPosted: Tue May 14, 2013 10:01 pm
by JOHNNYG
Here is an easy way to add a Shutdown sound to Ubuntu 12.04 and up ! (for now ! ) :ugeek:

Install this :downthere
Code: Select all
sudo apt-get install music123


Code: Select all
sudo gedit /etc/init.d/K99shutdownsound.sh

add this :downthere to that ! and save
#!/bin/sh
## play shutdown sound
/usr/bin/music123 /path/to/your/shutdown.file

make it executable !
Code: Select all
sudo chmod +x /etc/init.d/K99shutdownsound.sh

now link this
Code: Select all
sudo ln -s /etc/init.d/K99shutdownsound.sh /etc/rc0.d/K99shutdownsound.sh

and this
Code: Select all
sudo ln -s /etc/init.d/K99shutdownsound.sh /etc/rc6.d/K99shutdownsound.sh


And now you have a shutdown sound. Just make sure you're not going to play a 5 minute mp3 file, since the system won't halt until it finishes streaming the file. This will play .wav .ogg .oga mp3. mp4 ! maybe more ! This will play only at shutdown, not log out !

Re: How to add a logout sound to Ubuntu 12.04 and up !

PostPosted: Tue May 14, 2013 10:23 pm
by ryanvade
No, No. Don't leave. PLEASE!!!!

:lol: Nice.

Re: How to add a logout sound to Ubuntu 12.04 and up !

PostPosted: Tue May 14, 2013 10:29 pm
by Micro
For now? Please do explain, I am quite interested...

Re: How to add a logout sound to Ubuntu 12.04 and up !

PostPosted: Wed May 15, 2013 2:29 am
by JOHNNYG
Micro wrote:For now? Please do explain, I am quite interested...

Well as we all know, all to well, Canonical has a tendency to be self-mutilating ! and changes there subsystems at a whim ! so what may work on these next few releases may be null and void on there following releases ! :evil: :roll: :ugeek: