Hey I am trying to create startup and log-off sounds for Ubuntu 13.04. I have two mp3 files. I have sox and was wondering if I could create a .sh file (make it executable) and make it point to play a set .mp3. What I'm trying to do here is basically set up my Linux Box to be a mock up of HAL9000. With "Good morning Dave" and "Daisy... Daisy..." when it logs off. Any help would be appreciated.
If You just want to have Your .mp3 played after logging in the easiest way is probably to put line like this to You 'Startup Applications' (you can find it in Bash).
But before that You will need to have mplayer installed. To do so type this in the terminal:
. If You would like to have few .mp3 files played one after another You will probably need to create .sh file with lines similar to this presented before, make it executable and put exact path to this .sh file to 'Sturtup Applications'.
More info about mplayer here: http://docs.slackware.com/howtos:software:mplayer .
I've noticed that with MPlayer You can easily use playlists. To do that just create text file and in every new line paste a path to Your .mp3 file. Example below - let's say it's /home/tom/Music/StartupPlaylist.txt.
After doing that Your one-line-script should look similar to this below.