Results 1 to 4 of 4

Thread: HOWTO: Disable the login sound using the command line

  1. #1
    Join Date
    Aug 2005
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    HOWTO: Disable the login sound using the command line

    I wanted to disable the Ubuntu login sound over the command line because my only access to the machine in question was over ssh. Here's how to do it, in the same way the GUI does it, so that it can be re-enabled using the GUI if necessary. Simply enter the following single command.

    These instructions were tested on Ubuntu 10.10.

    To disable login sound:
    Code:
    echo -e '\n[Desktop Entry]\nType=Application\nName=GNOME Login Sound\nComment=Plays a sound whenever you log in\nExec=/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"\nOnlyShowIn=GNOME;\nAutostartCondition=GNOME /desktop/gnome/sound/event_sounds\nX-GNOME-Autostart-Phase=Application\nX-GNOME-Provides=login-sound\nX-GNOME-Autostart-enabled=false' > ~/.config/autostart/libcanberra-login-sound.desktop
    To renable:
    Code:
    rm ~/.config/autostart/libcanberra-login-sound.desktop
    HOWTO: Watch digital TV (Freeview) - http://ubuntuforums.org/showthread.php?t=421110

  2. #2
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,467
    Distro
    Ubuntu Mate

    Wink Re: HOWTO: Disable the login sound using the command line

    Thanks for this.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  3. #3
    Join Date
    Mar 2010
    Location
    Sacramento, CA
    Beans
    226
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: HOWTO: Disable the login sound using the command line

    Thanks for this easy to do removal A++ write up
    http://colorblinddesigns.com

  4. #4
    Join Date
    Jan 2012
    Beans
    13

    Re: HOWTO: Disable the login sound using the command line

    I <3 1 liners.

    Many thanks for this.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •