e

Bodhi start up sound

Experience Level: Beginner and up

Prerequisites: None

One of the things you may notice after installing Bodhi is the lack of a login sound, which is in line with Bodhi's philosphy of minimalism. However, to add a login sound is relatively easy and here are the steps to do so.

  1. Find, create or download a short song or sound you wish to hear after logging into Bodhi. Ogg audio format is preferred for the purposes of this guide although wav files can also be played, so if the sound is not in ogg or wav format convert it to ogg. See the note on audio conversion below.

  2. Store the sound on your hard drive somewhere and rename it desktop-login.ogg if it is in ogg format, or desktop-login.wav if it is in wav format. The location I will be using in this guide will be /home/username/Music/System, where username is your username.

    Note that beforehand I created the directories /home/username/Music and /home/username/Music/System. If you prefer a different location, use that location's path in the discussion that follows.

  3. In Bodhi's menu choose Settings and then All —>Apps —>Personal Application Launchers. Click the Add button, and the Desktop Entry Editor will open. Under the Basic tab fill in the Name field with Bodhi Login Sound and in the Application field for an ogg file add:
    canberra-gtk-play --file="/home/username/Music/System/desktop-login.ogg"

    If the file is instead a wav file add:

    aplay "/home/username/Music/System/desktop-login.wav"

    Click Apply and then Close.

You may have to reboot before Bodhi Login Sound appears in the Personal Application Launcher. Please make sure that it does, before proceeding.

  1. Now again in Bodhi's menu choose Settings and then All —>Apps —>Startup Applications. In the Startup Applications window, change the tab from System to Applications, click Bodhi Login Sound and then the Add button, Apply and then Close.

Reboot and enjoy. :-P

If an Application Run Error appears upon reboot, indicating that Enlightenment was unable to run the canberra-gtk-play application, don't panic. Just install it via Terminal:

sudo apt-get install --no-install-recommends gnome-session-canberra

General Notes

  1. It should be noted that after completing the steps above, that Bodhi Login Sound will be added to Bodhi's menu under Applications —>Other. Clicking this entry will of course play the Login sound. However, you may wish to move the entry to Applications —>System or remove it from view completely.

    Open the file Bodhi_Login_Sound.desktop located at /home/username/.local/share/applications in your text editor of choice. If you wish Bodhi Login Sound to be shown under Systems in the menu add the line
    Categories=System;

    and if you wish to remove Bodhi Login Sound from showing in the menu change the line

    NoDisplay=false

    to

    NoDisplay=true



  2. It should also be noted that the method outlined above is intented for a single user system, if you want the Bodhi Login Sound to be available to all users of your system then first delete the entry from enlightenments startup menu. In order to do so using the GUI NoDisplay has to be set to false in the file Bodhi_Login_Sound.desktop. Assuming this is so then from Bodhi's menu go to All —>Apps —>Startup Application. In the Startup Application window, change the tab from System to Applications, click Bodhi Login Sound and then Remove, Apply and then Close. Now open the file Bodhi_Login_Sound.desktop located at /home/username/.local/share/applications in your text edit and if using an ogg audio file change the line
    Exec=canberra-gtk-play --file="/home/username/Music/System/desktop-login.ogg" 

    to

    Exec=canberra-gtk-play --id="desktop-login"

    And if using a wav file, change the line

    Exec=aplay "/home/username/Music/System/desktop-login.wav"

    to

    Exec=aplay "/usr/share/sounds/desktop-login.wav"

    Next open a terminal and run the commands below:

    sudo cp /home/username/Music/System/desktop-login.ogg /usr/share/sounds/desktop-login.ogg
    sudo mv /home/username/.local/share/applications/Bodhi_Login_Sound.desktop /usr/share/applications/Bodhi_Login_Sound.desktop

    Finally add the sound to enlightenment's starup by repeating step 4 above. Note every user who wishes a startup sound will have to add the sound to startup while logged into their account. Now reboot and enjoy.

Audio Notes

  1. While this guide has only covered using ogg or wav files as login sounds, it should be noted that other file formats can be used such as mp3 or flac. However, to do so requires having a command line tool that can play such a file and of course changing the command one uses in step 3 above. Such tools are not installed by default in Bodhi, but there are many such applications to choose from. Search on the internet, look through Synaptic or ask on the forums if you need such an application.

  2. My advice is to stick with ogg files and convert any other file format to ogg if you plan on using it as a login sound. Linux also has many tools to convert audio formats, command line tools are probably the most popular. Again google is your friend ;-)

    People new to linux though may prefer a GUI program for audio conversion, Gnome Sound Converter or gnormalize are two good choices. Both are available in the repos.

  3. To edit an audio file, for example to extract part of a song for use as a login sound see audio editor. I have always used Audacity.

User Feedback

bodhi_start_up_sound
Did you find this article helpful?
Yes, right on the money!
 
93%(14)
Somewhat. Needs work.
0%(0)
Not really
0%(0)
Not at all.
 
7%(1)

If you would like to comment or make further suggestions, please leave a note on our Comments page (you will have to Create an Account if you haven't already).

 
sound_at_startup.txt · Last modified: 2013/01/31 19:03 by shep · [Old revisions]


© Copyright Bodhi Linux 2012. All Rights Reserved - Hosted by vaultnetworks