Ubuntu, one of the most well-known Linux distros, used to play a login sound every time you login with your account. I don’t remember in what version did Ubuntu removed this sound but, you will no longer be welcomed by that sound in the recent version of Ubuntu. If you miss that sound and want to bring it back, here’s how.
Actually, Ubuntu doesn’t remove that login sound. The file of the sound (desktop-login.ogg) still exists under the “usr/share/sounds” directory. Ubuntu just doesn’t play the sound anymore like it used to be. Follow the steps below to bring the sound back.
- Open Startup Applications utility from Unity Dash or any launcher you use on your system.
- Click the Add button to add a new program. Type any word in the Name and Comment boxes. While in the Command box type the following command.
/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
You can use paplay command to play .ogg, .oga or .wav. The location file of “desktop-login.ogg” is under the “usr/share/sounds” with the full path of “/usr/share/sounds/ubuntu/stereo/desktop-login.ogg”. You can find so many sounds under the “usr/share/sounds/” and if you want it you can choose any sound to be played as the login sound.
You need to add paplay in the startup applications list in order to run it every time you login to your Ubuntu system.
paplay /usr/share/sounds/ubuntu/stereo/desktop-login.ogg
Now please logout from your current session and relogin with your account. You should get the login sound back.
Note: I use Ubuntu 16.04 LTS in this example
That’s not the login sound. That’s the sound you should get once you boot to the desktop. The login sound was a drumroll and should appear with the user login box, and that’s now disappeared with Gnome 3.