Webcam
Open a terminal window.
Type in the following command:
sudo apt-get install cheese
Run Cheese. Cheese should automatically detect your webcam and display live video stream.
To record video or take a snapshot, click either on photo or video and select Take a Photo or Start recording.