This simple tutorial will show you how to enable Startup (login desktop) sound which is disabled by default Ubuntu 12.04 precise.
1.Click Control Gear then click Startup Applications…

2.In the Startup Applications Preferences window ,click Add to add an entry

3.Then fill below lines as Command
/usr/bin/canberra-gtk-play --id="desktop-login" --description="play login sound"
For Name and Comment,you can fill in whatever you want

4.You are done,logout then login,you will listen the startup sound
Note:If the above steps do not work for you.
you can try replace the command in step 3 with
/usr/bin/paplay /usr/share/sounds/ubuntu/stereo/desktop-login.ogg
Or add the “–volume” option to the command in step 3,eg:
/usr/bin/canberra-gtk-play --id="desktop-login" --description="play login sound" --volume=10
typed in command line / ending login.ogg. got my startup sound back. no problem.
Pingback: Ubuntu: Activando el sonido de inicio de sesión
Pingback: Habilitar el sonido de inicio en Ubuntu | InfoL1nux