The objective of this tutorial is to show the reader a quick-start method on how to test Webcam on Ubuntu 20.04 Focal Fossa.

In this tutorial you will learn:
  • How to test webcam
How to test webcam on Ubuntu 20.04 Focal Fossa
How to test webcam on Ubuntu 20.04 Focal Fossa

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed or upgraded Ubuntu 20.04 Focal Fossa
Software Cheese
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

How to test webcam on Ubuntu 20.04 step by step instructions

Ubuntu aims to provide out of the box support for peripheral audio or video devices. The chances are that the only action you need to make is to plugin your Video camera ( if not built-in camera ) into your Ubuntu Linux system and start using it.

SUBSCRIBE TO NEWSLETTER
Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


  1. Plugin in your Video camera ( if not built-in camera ) and enter the following command:
    $ dmesg | grep -i "Camera"
    [    6.656705] uvcvideo 1-1:1.0: Entity type for entity Camera 1 was not initialized!
    [    6.656744] input: UVC Camera (046d:0990) as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/input/input13
    
    From here you should see some clues whether webcam has been connected and recognised by the Ubuntu system. Other command you might use to list available Webcam cameras on your system are:
    $ ls -ltrh /dev/video*
    crw-rw----+ 1 root video 81, 1 Jan 16 09:27 /dev/video1
    crw-rw----+ 1 root video 81, 0 Jan 16 09:27 /dev/video0
    
    or
    $ v4l2-ctl --list-devices
    UVC Camera (046d:0990) (usb-0000:00:14.0-1):
            /dev/video0
            /dev/video1
    
  2. Next, install cheese application. Open up your terminal and enter:
    $ sudo apt cheese
    
  3. Start Cheese application by search for cheese withing Activities menu or by executing the following command:
    $ cheese
    
    Once the Cheese starts it will pick up your default webcam and start streaming video from your webcam.
FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.