How to activate the webcam using the terminal on Linux?

Windows Articles

How to install Redis on CentOS 8?

Hello, friends in this post, we will show you how to install Redis on CentOS 8 As we well...

How to enable and disable startup applications in Windows 10

Hello! Windows 10 is an attractive and very easy to use system. However, some criticism has come for being too "heavy". That...

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...

How to run the Linux Tail command in Windows 10.

Hi! The title of this post may seem incongruous, but it's not. In fact, for some time Microsoft has approached positions with...

How to compress large videos in Windows 10

Hello, how are you? Multimedia resources are definitely used in any system. Indeed, we live in the age of technology. That's why...
angeloma
angeloma
Senior Writer and partner

Hey, folks, in this pretty short post I’ll show you a pretty useful trick. In this post, you will learn how to activate the webcam using the terminal.

We all have a webcam, whether it’s professional or just to get the job done. And to use it you just need to use some specialized graphic programs like Cheese. However, using the terminal can be a good solution in many cases such as the remote desktop.

Activating the Webcam using the Terminal

Well, for this little tutorial, first you have to install VLC. I think this should not be a problem because VLC is the most popular media player there is. So it’s most likely already installed on your system.

In case, you can install it from the official repositories of your Linux distribution:

If you use Debian, Ubuntu, Linux Mint, ElementaryOS or any derivative:

:~$ sudo apt install vlc

In case you use OpenSUSE:

:~$ sudo zypper in vlc

For Fedora, RHEL 8, CentOS 8:

:~$ sudo dnf install vlc

VLC is a marvel and allows us to play almost any multimedia file. And we can even use it to use our webcam.

The first and only requirement you have to meet is to make sure your webcam is fully functional. If you have used them without problems, then this will work. If not, then you have to solve the problem and try again.

So, open a terminal and run the following command:

:~$ cvlc v4l2:///dev/video0

And just like that, a VLC screen will open with the image captured from your WebCam. That’s how simple it is.

Remember that if you have several webcams then you can change video0 for video1 and so on.

On the other hand, remember to close the process using CTRL + C because otherwise, you will not be able to use the webcam with another program.

In the last case, you can use a program like htop and kill the process manually using the PID.

Conclusion

It’s always a good idea to have these tricks handy, in case we ever need them. Anyway, Linux is a pretty customizable system has these many. Now, you know how to enable the webcam using the Terminal. It is a great trick.

So, share this post and join our Telegram Channel.

Source

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install Redis on CentOS 8?

Hello, friends in this post, we will show you how to install Redis on CentOS 8 As we well...

How to enable and disable startup applications in Windows 10

Hello! Windows 10 is an attractive and very easy to use system. However, some criticism has come for being too "heavy". That...

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...

How to run the Linux Tail command in Windows 10.

Hi! The title of this post may seem incongruous, but it's not. In fact, for some time Microsoft has approached positions with...

How to compress large videos in Windows 10

Hello, how are you? Multimedia resources are definitely used in any system. Indeed, we live in the age of technology. That's why...
x