Shell Script To Record Terminal Desktop Sessions Under Linux or Unix Like Operating Systems

Posted on in Categories Desktop last updated December 12, 2012

A simple shell script wrapper to record current terminal session of a linux or unix desktop. This script act as a wrapper to recordMyDesktop command which produces a file that contains a video and audio recording of a linux desktop session. The default behavior of recording is to mark areas that have changed (through libxdamage) and update the frame. This wrapper gets current window name and remove window decoration.

How do I use this script?

  1. Open a terminal.
  2. Open Tab.
  3. Run script as:
  4. ./script.sh foo.ogv

  5. Switch to tab # 1 and run your command.
  6. When done switch back to tab #2 and press CTRL + C to save recording to foo.ogv.
  7. To run foo.ogv type:
  8. gnome-open foo.ogv
    OR
    mplayer foo.ogv

8 comment

  1. /usr/bin/xwininfo: error: -id requires argument
    /usr/bin/xwininfo: error: -id requires argument
    /usr/bin/xwininfo: error: -id requires argument
    /usr/bin/xwininfo: error: -id requires argument
    –width must be larger than 0.
    –height must be larger than 0.

Leave a Comment