Results 1 to 5 of 5

Thread: HOWTO: Webcam Surveillance on Screensaver Lock

  1. #1
    Join Date
    Feb 2007
    Location
    Slovenia
    Beans
    251
    Distro
    Ubuntu 10.10 Maverick Meerkat

    HOWTO: Webcam Surveillance on Screensaver Lock

    Goal
    The goal is to use your webcam to monitor activity in your room (or wherever you want to point it to), but with a twist. The monitoring needs to start and stop automatically. To do this we will rely on the screensaver. We will start monitoring when the session is locked (either automatically when the screensaver starts or when the user locks the screen manually).

    Requirements
    Assuming we are using one of the recent Ubuntu versions, we will require two additional things:
    • Webcam surveillance software: motion
    • My Perl script which detect when the screen is locked (see attachments)


    Installation
    1. Install motion using the Ubuntu Software Center. Find it using the search box. (Alternatively you may apt-get it)
    2. Press Alt+F2 and type:
      Code:
      gksudo cp -Rp /etc/motion ~/.motion; gksudo chown -R `whoami` ~/.motion; gksudo chmod a+w /tmp/motion
      Explanation: We need this to run motion without root privileges.
    3. Download the attached archive (src-mon.tar.gz) to your home folder.
    4. Go to your home folder (Places --> Home Folder), right click the archive (src-mon.tar.gz) and select Extract Here.
    5. Make sure the script starts automatically after login:
      System --> Preferences --> Startup Applications --> Add
      Name: Idle Webcam Monitor (can be whatever you want)
      Command: perl ~/.motion/src-mon.pl
      Comment: Leave empty or write whatever you like.
    6. Log out and log back in.


    Usage
    1. Lock your screen or wait for the screensaver to fire up.
    2. When the screensaver is active you have 30 seconds to leave your room before the webcam starts monitoring it.
    3. After you come back you again have 30 seconds to unlock the screensaver. Any motion longer than 30 seconds prior to unlocking will be recorded.
    4. Look into /tmp/motion too see what was going on while you were away.
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2010
    Beans
    6

    Re: HOWTO: Webcam Surveillance on Screensaver Lock

    Excellent idea!
    Wish it worked.. The motion package is turned on every time I log in without turning off. I need to "sudo /etc/init.d/motion stop" it manually every time.
    Any idea what it is I'm doing wrong?

  3. #3
    Join Date
    Jun 2010
    Location
    Ann Arbor, Michigan, USA
    Beans
    1,421

    Re: HOWTO: Webcam Surveillance on Screensaver Lock

    Sweet idea. But can you set it to limit the amount of disk space it uses?
    Steam: ubuntugamer( Add me ) | Gaming: Left 4 Dead 2, Metro Last Light, Assassin's Creed 4, Forced

  4. #4
    Join Date
    Aug 2010
    Beans
    6

    Re: HOWTO: Webcam Surveillance on Screensaver Lock

    Dlambert, you had no problem getting it to work properly?

  5. #5
    Join Date
    Jun 2012
    Beans
    1

    Re: HOWTO: Webcam Surveillance on Screensaver Lock

    Motion is amazing and worked like a charm with me (I was scared when I left some worker people all alone in my house)

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
  •