If like me, you like to have the Ubuntu login sound activated, here are a few simple steps to achieve just that.
This is for Ubuntu 15.04, 15.10 and 16.04!. (For Ubuntu (Mate) 14.04 see below)
Open Control Center > Personal > Startup Applications and then click on "Add" and add the following 3 items in order:
Gnome Login Sound
Play a sound at login
Once you have done that, simply click on "Save" and restart your PC with your speakers and sound level switched to "On" and see if it works.
I have done the above on Ubuntu Mate 15.04 and it works no problem!.
For Ubuntu (Mate) 14.04, use the following command:
/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
If the above doesn't work for you, try the following command:
/usr/bin/canberra-gtk-play -f /usr/share/sounds/ubuntu/stereo/desktop-login.ogg
Restart after adding the command!.
MAKE SURE THAT YOU DON'T HAVE ANY EXTRA SPACES BEFORE OR AFTER THE COMMAND WHEN YOU PASTE IT OTHERWISE IT WON'T WORK!.
Check the beginning and the end of the command:
If you are still having problems with your sound, try installing the following packages if not already installed (Open a terminal with: Ctrl + Alt + t):
sudo apt-get install libsox-fmt-all sox paman
Paman is the Pulse Audio manager and Sox is the "Swiss Army Knife" of sound settings apparently!.