Motion is mainly distributed as source files that you must compile yourself. There is also an RPM made on Fedora Core 3. And Debian packages are available for selected versions.
The short overview of the steps to install Motion from sources.
- Preparation: Motion uses a number of shared libraries that must be installed on your computer before you can build Motion. The needed shared libraries depends on the features you wish to use. Features network camera, ffmpeg, MySQL and PostgreSQL needs specific shared libraries installed. See preparation section for more information.
- Download the motion source files (distributed as tar'ed and compressed files). Place the file in a place of your own choice.
Installation on Debian based distributions
Motion can be found in the repositories of several debian based distributions such as Ubuntu etc.
Open up a terminal window and type:
sudo apt-get install motion
The debian packages install the Motion config file in
/etc/motion/motion.conf
which is the correct location when Motion runs as a daeson under a system user. If you want to run Motion under your own username you need to copy the config file to our Home folder so that the master copy won’t be affected. Open a terminal and copy the configuration file to your Home folder with following commands:
mkdir .motion
(Note: This will create a hidden folder
.motion
in your Home directory.)
sudo cp /etc/motion/motion.conf ~/.motion/motion.conf
(Note: This command will copy the original motion configuration file to its location.)
Now can open the configuration file for editing. Change directory to the location of the motion.conf and run
sudo nano motion.conf
After you you have done so, start motion in the terminal simply by typing:
sudo motion