Results 1 to 7 of 7

Thread: making headless server beep on restart

  1. #1
    Join Date
    Aug 2006
    Location
    Nashville, TN.
    Beans
    95
    Distro
    Ubuntu 14.04 Trusty Tahr

    making headless server beep on restart

    I have a headless 12.04LTS server that runs in my closet. When I do system changes and I need to restart sometimes I would like to know that it has finished restarting.

    I was reading an older post where users could turn on a beep in a version 7.10 server. I tried what was suggected in this article and it does not work with 12.04LTS. I did install beep and checked the /etc/modprobe/blacklist.conf file to uncomment the pcspkr blacklist and I could manually type beep in the command line and I could hear the server speaker beep. Ideally I would like to have the speaker 'beep' when rc has finished.

    Has anyone every done this with 12.04LTS server addition?

  2. #2
    Join Date
    Jan 2010
    Location
    Portugal
    Beans
    160
    Distro
    Ubuntu Development Release

    Re: making headless server beep on restart

    Hello!

    Add that beep command in the end of /etc/rc.local file, right before "exit 0"

    Regards!
    Javali
    Administração e Desenvolvimento de Sistemas Informáticos, Lda.
    Open Source Systems / SugarCRM / Alfresco / Drupal / Openbravo
    http://www.javali.pt info at javali.pt

  3. #3
    Join Date
    Jun 2006
    Location
    Antarctica
    Beans
    500
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: making headless server beep on restart

    Personally I've never managed to get 'beep' to work on Ubuntu. Something to do with the underlying sound system ? I thought the beep command used the internal speaker of the PC...

  4. #4
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    Re: making headless server beep on restart

    Why stop with a single beep??

    http://ubuntuforums.org/showthread.php?t=1157670

  5. #5
    Join Date
    Jun 2011
    Beans
    334

    Re: making headless server beep on restart

    The beep command doesn't work on my computers, maybe a sound system thing? But mplayer does. If you want you could install mplayer and have it play a short sound clip every time the machine boots. Putting the followint in /etc/rc.local should do the trick

    mplayer /path/to/sound.wav

  6. #6
    Join Date
    Aug 2006
    Location
    Nashville, TN.
    Beans
    95
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: making headless server beep on restart

    Currently I am not using a IPCop box or a Smoothwall box. But i have in the past. Both of these firewall programs create a beep tone emitted by the system speaker to indicate completion of the start up sequence.

    (HughSerrano, your suggestion of the end of rc.local did not work. Sorry.)

    I did some reading of the beep man file. I have now created a /etc/rcbeep.sh file. I have given it executable permissions. This file contians:
    Code:
    #!/bin/bash
    beep -l 300 -f 329.6 -n -l 300 -f 370 -n -l 300 -f 523.2
    This produces three tones when I type (in a command line)
    Code:
    rcbeep.sh
    Now the question is where in the start up sequence do I insert a line calling the rcbeep.sh file?

  7. #7
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    Re: making headless server beep on restart

    either in rc 5 i think or in cron like

    Code:
    @reboot /path/to/beep.sh

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
  •