Results 1 to 3 of 3

Thread: unusual question!

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Location
    Melbourne
    Posts
    2

    unusual question!

    Hello all,

    One of the first things that grabbed me about knoppix was the "initiating startup sequence" announcement that graced my system speakers when knoppix was booting.

    I did the HDD install with the "knoppix-installer" from ver 3.3, and chose the debian style intall. Now all happily installed, but that startup announcement is gone.

    So, how do I get this voice announcement back into to the debian bootup sequence?

    Thanks in advance.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Portland, OR USA
    Posts
    568
    You, sir, are a sick man.

    Why not copy the part of Mr. Knopper's fine scripts that plays the sounds, put it in a couple of new scripts, save them in /etc/init.d, and then symlink to them in /etc/rc5.d and /etc/rc6.d? <edit>(Get those names right)</edit>

    The shutdown sound is played by part of the /etc/init.d/xsession script, and the one that plays the startup sound is identical save for the name of the sound file it plays.

    So, (as root) copy the following to a script called "startupsnd" that reads:
    Code:
    #!/bin/bash
    # Startup/shutdown sound script
    # (C) Klaus Knopper Jun 2001
    # Play informational sound if soundcore module present
    # (checking /dev/sndstat is unreliable)
    OGGPLAY=/usr/bin/ogg123
    PLAY=/usr/bin/wavp
    [ -x "$PLAY" ] || PLAY=/usr/bin/play-sample
    [ -x "$PLAY" ] || PLAY=/usr/bin/play
    if [ -x "$OGGPLAY" -a -f /usr/share/sounds/startup.ogg ]; then
    case "$(lsmod)" in *sound*) { $OGGPLAY -q -p 64 /usr/share/sounds/startup.ogg >/dev/null 2>&1 & } ; sleep 7 ;; esac
    elif [ -f /usr/share/sounds/startup.wav -a -x "$PLAY" ]; then
    case "$(lsmod)" in *sound*) { $PLAY /usr/share/sounds/startup.wav >/dev/null 2>&1 & } ; sleep 7 ;; esac
    fi
    Save it in /etc/init.d and make it executable ("chmod +x startupsnd").

    Now copy the above to a script called "shutdownsnd," only change every instance of "startup.ogg" to "shutdown.ogg" and "startup.wav" to "shutdown.wav" -- then save it as /etc/init.d/shutdownsnd, and make it executable with chmod.

    Then (in KDE), fire up the SysV Init Editor, and drag/drop "startupsnd" to the top of runlevel 5, and "shutdownsnd" to the top of runlevel 6.

    Voilą.

  3. #3
    Member registered user
    Join Date
    Mar 2003
    Posts
    39
    Hi I would like to try this too. Unfortunately I followed these instructions to the letter and I found that the startup voice kicked in too early at approximately 70% of the way through the booting process. Is there a way to make sure it runs much later in the boot process, say for example at the exact point that X starts? Also I put the shutown sript at the top of the list in run level 6 as was suggested, but it doesn't run at all. (I did test it was working first).

    My guess is that this is trying to satrt up too late.

    Can anyone suggest a fix?

    GJ

Similar Threads

  1. Unusual install error question ??
    By gnukish in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 08-11-2005, 01:03 PM
  2. Unusual HD install using LILO - can this be done?
    By pestie in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 08-06-2005, 05:01 AM
  3. Unusual problem with Bastille. Knoppix works, Sarge not!
    By FelixDzerzhinsky in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 08-25-2004, 02:26 PM
  4. Unusual javascript in forums?
    By skryche in forum The Lounge
    Replies: 0
    Last Post: 11-27-2003, 05:47 PM
  5. Grub settings, quick question... really my last question :p
    By mark1221 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 11-01-2003, 10:32 PM

Posting Permissions

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


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem picture

Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem

$39.99



Samsung 16GB 2Rx4 PC4-2400 RDIMM DDR4-19200 ECC REG Registered Server Memory RAM picture

Samsung 16GB 2Rx4 PC4-2400 RDIMM DDR4-19200 ECC REG Registered Server Memory RAM

$20.99



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



Lot of 2 32GB DDR4 2666 PC4-21300 SODIMM RAM Modules Mixed Brand picture

Lot of 2 32GB DDR4 2666 PC4-21300 SODIMM RAM Modules Mixed Brand

$60.00



8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture

8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A

$12.00



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 128GB 2x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 128GB 2x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$143.98