Navigation

My Notes

Welcome to my blog. This is my latest post.

Use Linux/Desktop as a baby rocker

This lazy Ubuntu geek used his desktop the correct way - as a baby rocker. Here's how it works. The CD drive is attached to the cradle, and opens and closes periodically, thus rocking the cradle.

What you need:

  1. Desktop running Linux. The CD drive must work.
  2. This shell script baby_rocker.sh
    while [1 = 1] do      
    
        #eject cdrom
        eject
    
        #pull cdrom tray back in      
        eject -t
    
    done
    
  3. Run the script from the terminal.

Posted by Arul on 2009-10-22

All Posts