We have previously seen how to change Ubuntu startup sound under Ubuntu 11.10 Oneiric Ocelot, you can check it here. In this tutorial we will see another method for adding a custom login sound under Ubuntu 11.10 Oneiric Ocelot. We will help you play an MP3 file or any other audio format supported by MPlayer at system startup. Before we start, let's firstly install the "mplayer" package with this command:

sudo apt-get install mplayer

Now follow these instructions:

1. Disabling Default Login Sound

Under Ubuntu 11.10, the login sound applet is hidden by default in the Startup Applications" window. You can display it by using these two commands:

cd /usr/share/gnome/autostart/

sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' libcanberra-login-sound.desktop

Open now the power menu located at the top panel and select "Startup Applications":

Check off now this option:

GNOME Login Sound

2. Enabling A Custom Login Sound

In the same window (Startup Applications), click Add, then enter the following details:

Name: Custom Login Sound

Command:  mplayer /path/to/file.mp3

Replcae /path/to/file.mp3 with the full path to your audio file (click the Browse button and open your audio file to get its full path), then click Add:

Restart now your computer to test the selected sound file. I have tested this tip on Ubuntu 12.04 Precise Pangolin and it seems not working.


Post a Comment