Here is How to Install motion in Ubuntu 18.04? by just copying and pasting the commands in the terminal. With the motion package, you get a V4L capture program supporting motion detection.
What is Apt-get or Apt Install?
So to install any file on Ubuntu you need to write commands like apt-get install or apt install package name. It is the command-line tool for handling packages which also works as a back-end to other tools for the users.
Advanced Package Tool, or APT, is free and open-source software that works with the core libraries to handle the system of installation and removal of all packages. However, it works with Ubuntu, Debian, and other Linux distros. Finally, it simplifies the process of managing by automating the retrieval, configuration, and installation of software packages on Unix-like computer systems.
About Motion package
Motion is a program that monitors the video signal from one or more cameras and is able to detect if there are any significant changes in the image. In other words, this package detects the motion. Motion is a command-line based tool which can be easy installed with this guide. It has no graphical user interface or GUI. You can set up everything either via the command line or via configuration files. The output from motion can be: – jpg/ppm image files – MPEG/mp4/swf/Flv/Mov/Ogg video sequences. Also, the motion has its own minimalistic web server. Finally, you can also access the webcam output from motion via a browser.
How To Install Motion in Ubuntu?
First, update your Ubuntu system and install the motion package with the following commands:
sudo apt update sudo apt install motion