How do you install motion in Linux using apt-get command?
Here is a tutorial to learn how to install motion using apt-get command.
Step 1: Open terminal with su access and enter the command as shown below:
apt-get install motion -y
Step 2: After completion, the install command exits and instructs the user to restart the running instances of motion if it is running already.
Result of the Command Execution shown below:
root@hiox:~ apt-get install motion -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libmono data tds2.0 cil libsmbclient libpolkit backend 1 0
libmono c5 1.0 cil libplist1 aspell en libjna java libxcb aux0 libsm dev
libatk1.0 0 jsvc libnet daemon perl libpcsclite1 libtalloc2 libjaxp1.3 java
gconf2 common libcdio10 libgtk2.0 common libdb je java hdparm
libmono npgsql2.0 cil libxfixes3 junit4 espeak libmono security2.0 cil
libgsf 1 common libmtp8 libmono addins gui0.2 cil libxcb atom1
libg15daemon client1 libnb apisupport1 java libmono wcf3.0 cil
hicolor icon theme libxcomposite1 libice dev liboro java libgail18
libarchive1 libmono peapi2.0 cil libntfs10 libappframework java libpth20
fakeroot libxrandr dev libmono system data1.0 cil ttf dejavu extra liblcms1
libnb javaparser java libhal storage1 libdb4.7 java libmono simd2.0 cil
libmono system2.0 cil libmono1.0 cil libexpat1 dev libcdio paranoia0
libgnome2 0 libiw dev libmono system ldap1.0 cil libxerces2 java libmono0
libcupsimage2 libiceutil33 gamin libgphoto2 port0 xfonts encodings debhelper
aspell usbmuxd libsensors4 libxdamage dev pkg config libgcj bc gcj 4.4 base
libxxf86dga1 libfile copy recursive perl libmono getoptions1.0 cil
libgudev 1.0 0 libgnomecanvas2 0 libmono cscompmgd8.0 cil libsamplerate0
libmono data1.0 cil libsnmp15 hunspell en us libmono sharpzip0.84 cil
libmono sqlite2.0 cil libmono ldap1.0 cil libpthread stubs0 libnunit2.4 cil
esound clients smbclient libjtidy java libbonobo2 common libjzlib java
libatk1.0 data libsgutils2 2 libprotobuf5 gnome mime data
libmono management2.0 cil libicu4j java x11 utils libboost system1.40.0
libmagickcore2 libfreemarker java libservlet2.4 java ttf dejavu core
libdb4.7 java gcj libxml2 utils rrdtool dnsutils libcommons beanutils java
libgnomeui 0 gvfs backends obex data server libyaml syck perl
libparted0debian1 libgluezilla libmono corlib2.0 cil libxfixes dev udisks
libimobiledevice0 g++ 4.4 junit update inetd icedtea netx cli common
libqt4 network libmono system web mvc1.0 cil libqt4 dbus libasm2 java
libxxf86vm1 libproxy0 libjack0 xterm libnspr4 dev default jdk doc
libxcb render util0 dev libboost program options1.40.0 libnm util1
libmono cairo2.0 cil libtagc0 libmono relaxng1.0 cil libgl1 mesa dri
libbonobo2 0 libtdb1 libdbi perl libmagickwand2 libgnomevfs2 common
libnb platform devel java x11proto xinerama dev libgl1 mesa glx
x11proto render dev libdate manip perl libxi dev munin node
liblog log4perl perl gconf2 java common dosfstools libmono i18n west2.0 cil
javahelp2 libwbclient0 librrd4 po debconf libgomp1 icedtea 6 jre cacao
notification daemon gcj 4.4 jre lib libpixman 1 dev libnspr4 0d libsqlite0
libdirectfb extra libswingx java libdotconf1.0 libmono microsoft7.0 cil
default jre headless libmono system messaging2.0 cil libhtml template perl
libnotify1 libcairo2 libmono system web1.0 cil libstartup notification0
libjs prototype libavahi glib1 gnome keyring subversion openvpn blacklist
policykit 1 libmono accessibility1.0 cil libcommons logging java
libmono webbrowser0.5 cil libmono posix2.0 cil mysql server core 5.1 jetty
xfonts utils g++ mono runtime libfontconfig1 dev mtools
libcanberra gtk module libcommons compress java libcanberra0 intltool debian
openjdk 6 jre lib libmono addins0.2 cil libgnome2.24 cil libthai data
libnss3 dev x11proto kb dev libswingworker java x11proto randr dev
libwavpack1 libqt4 opengl libsoup gnome2.4 1 libxinerama dev
libmono system runtime2.0 cil mono 2.0 devel gcc 4.4 metacity common
libgcj10 jruby1.1 libfuse2 librrds perl mono csharp shell liblzma1 libgamin0
libsnmp base libpcrecpp0 libqt4 sql sqlite libnss mdns librsvg2 common
libg15render1 libsvn1 libdatrie1 openjdk 6 jre headless xtrans dev
fontconfig libatk1.0 dev libwnck22 libportaudio2 libavahi common data
libsexy2 libavahi core6 libcue1 libxcb event1 libnet cidr perl libxfont1
libindicator0 samba common libgconf2 4 libffi5 libxres1 libgtkspell0
libmono i18n1.0 cil gettext ant libmono oracle1.0 cil xbitmaps
libpango1.0 common x11proto input dev libnb platform11 java
libmono messaging2.0 cil libgp11 0 default jdk libmono rabbitmq2.0 cil
libjsch java libsvn java libgcr0 libpixman 1 0 libjetty java doc
x11proto fixes dev libxaw7 libcups2 gcc libgdu0
libxml commons resolver1.1 java libpkcs11 helper1 libcobertura java
libgnome2 common libhal1 cvs default jre libjs scriptaculous
libmono winforms1.0 cil libmono db2 1.0 cil libdbusmenu glib1 ant optional
libqtcore4 libxinerama1 binfmt support libesd0 libmono system data2.0 cil
libgif4 libgnome vfs2.0 cil libcommons net java libresid builder0c2a
libmono2.0 cil libmono system ldap2.0 cil libxft2 speech dispatcher
libmono bytefx0.7.6.1 cil mysql client core 5.1 libmono data tds1.0 cil
libenchant1c2a fontconfig config libgnomevfs2 0 x11proto xext dev
espeak data mono gac libnm glib2 libsnmp session perl libxt dev
xulrunner 1.9.2 libmono sharpzip2.6 cil libcroco3 libmono getoptions2.0 cil
libboost thread1.40.0 tzdata java libmono data2.0 cil libevent 1.4 2
libxext dev libdbusmenu gtk1 radiusclient1 libglade2.0 cil
libmono npgsql1.0 cil libgsf 1 114 libice6 libmono ldap2.0 cil
libmono messaging rabbitmq2.0 cil libmono security1.0 cil libopenobex1
libspeexdsp1 libnet server perl lm sensors x11proto damage dev libthai0
libart2.0 cil python dbus powermgmt base libdbd mysql perl manpages libidl0
libntfs 3g75 libneon27 gnutls libmono peapi1.0 cil libglib2.0 cil libao2
mono 2.0 gac libglade2 0 libnotify dev libglib2.0 dev zlib1g dev liblzo2 2
libmono system1.0 cil policykit 1 gnome libxmu6 libcanberra gtk0
libvorbisfile3 libcairo2 dev libspeechd2 libqt4 sql esound common
monodoc base libxpm4 libflac8 libqt4 svg libgconf2.0 cil libnb java3 java
libservlet2.5 java libxrender1 openssl blacklist libmono sharpzip0.6 cil
libradius1 libmono cscompmgd7.0 cil libespeak1 libpango1.0 dev
libfreetype6 dev libshout3 fancontrol libatasmart4 build essential
libservlet2.3 java libmono sqlite1.0 cil libmono sharpzip2.84 cil libxau dev
dpkg dev x ttcidfont conf munin common libmpdclient2 libqt4 xml
libmono relaxng2.0 cil libiw30 libgs8 libmono microsoft build2.0 cil
libhunspell 1.2 0 libslf4j java libcommons daemon java libnfsidmap2 libtiff4
libfontenc1 libmono dev psfontmgr python gobject libjasper1 ntfsprogs
libswing layout java ttf dejavu libplrpc perl libusbmuxd1 libappindicator0
libregexp java libgnomeui common xz utils libmono cecil private cil
libmono corlib1.0 cil wwwconfig common libgnome keyring0 libdaemon0
libsocket6 perl libxtst6 libsidplay2 libc6 dev libqtgui4 liborbit2
libmono microsoft8.0 cil libg15 1 avahi daemon libzeroc ice33
libmono system web2.0 cil libxcomposite dev ghostscript libtag1c2a
librsvg2 2 libbonoboui2 0 libmono cairo1.0 cil libavahi client3
libwnck common x11 common libxcb render0 dev libxrender dev libnet snmp perl
libmpg123 0 libmad0 libmono accessibility2.0 cil libpolkit agent 1 0
ant optional gcj xulrunner 1.9.2 dev python support libgpgme11 libart 2.0 2
librpcsecgss3 libid3tag0 libfontconfig1 libavahi compat libdnssd1
ca certificates java libio multiplex perl html2text libcdio cdda0
libhamcrest java liblucene2 java libpango1.0 0 libsm6 libgvfscommon0
libmono i18n west1.0 cil libxft dev libpulse0 libx11 dev openjdk 6 doc
libxdamage1 libmono bytefx0.7.6.2 cil x11proto composite dev gvfs
linux libc dev dictionaries common libcommons collections3 java patch
manpages dev libbeansbinding java mono devel samba common bin libcelt0 0
libgcj common openvpn libqt4 sql mysql netcat traditional fuse utils
libxcb render0 libmono system messaging1.0 cil info libexif12 libgtk2.0 bin
libglu1 mesa libpaper utils libdbus 1 dev dbus x11 libxi6 libc dev bin
libgtk2.0 cil libxcb1 dev libgssglue1 openjdk 6 jdk libgtk2.0 dev
libmono posix1.0 cil libmetacity private0 libmail sendmail perl ant gcj
libbonoboui2 common libgstreamer0.10 0 libcommons digester java libaudio2
libxcursor1 libdirectfb dev binutils libjpeg62 dev libxt6 libxv1 portmap
libini4j java libjson glib 1.0 0 libdbus glib 1 dev libjetty java
openjdk 6 jre defoma libmono i18n2.0 cil libavahi common3
libsys hostname long perl libmpcdec3 libpam gnome keyring liblog4j1.2 java
libxcb render util0 libnb svnclientadapter java libmono oracle2.0 cil
libjline java mysql server 5.1 libxrandr2 gnome icon theme
libmono system runtime1.0 cil indicator application libnss3 1d
x11proto core dev javascript common ntfs 3g libsndfile1 libaspell15 libmng1
libgtk2.0 0 libbluetooth3 libnb ide12 java dvb apps libxdmcp dev
libpthread stubs0 dev libsysfs dev libxcursor dev gsfonts libnunit cil dev
libgnomecanvas2 common libgdiplus libmms0 libmono winforms2.0 cil libpaper1
libltdl7 mysql client 5.1 libmono cil dev libsoup2.4 1
libboost filesystem1.40.0 libio socket inet6 perl libstdc++6 4.4 dev
libgphoto2 2 mono gmcs libfaad2 libtag1 vanilla libaudiofile0 libpng12 dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
ffmpeg libavdevice52 libavfilter0 libdc1394 22 libpostproc51 libraw1394 11
libsdl1.2debian libsdl1.2debian alsa libswscale0
Suggested packages:
libraw1394 doc postgresql client
The following NEW packages will be installed:
ffmpeg libavdevice52 libavfilter0 libdc1394 22 libpostproc51 libraw1394 11
libsdl1.2debian libsdl1.2debian alsa libswscale0 motion
0 upgraded, 10 newly installed, 0 to remove and 76 not upgraded.
Need to get 1,360kB of archives.
After this operation, 3,858kB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid/main libraw1394 11 2.0.4 1ubuntu2 [45.5kB]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid/main libdc1394 22 2.1.2 2 [119kB]
Get:3 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libavdevice52 4:0.5.9 0ubuntu0.10.04.3 [61.4kB]
Get:4 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libavfilter0 4:0.5.9 0ubuntu0.10.04.3 [50.6kB]
Get:5 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libpostproc51 4:0.5.9 0ubuntu0.10.04.3 [126kB]
Get:6 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libsdl1.2debian alsa 1.2.14 4ubuntu1.1 [213kB]
Get:7 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libsdl1.2debian 1.2.14 4ubuntu1.1 [23.3kB]
Get:8 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libswscale0 4:0.5.9 0ubuntu0.10.04.3 [177kB]
Get:9 http://old releases.ubuntu.com/ubuntu/ lucid updates/main ffmpeg 4:0.5.9 0ubuntu0.10.04.3 [245kB]
Get:10 http://old releases.ubuntu.com/ubuntu/ lucid/universe motion 3.2.11 2ubuntu4 [299kB]
Preconfiguring packages ...
Fetched 1,360kB in 1s (702kB/s)
Selecting previously deselected package libraw1394 11.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 79477 files and directories currently installed.)
Unpacking libraw1394 11 (from .../libraw1394 11_2.0.4 1ubuntu2_amd64.deb) ...
Selecting previously deselected package libdc1394 22.
Unpacking libdc1394 22 (from .../libdc1394 22_2.1.2 2_amd64.deb) ...
Selecting previously deselected package libavdevice52.
Unpacking libavdevice52 (from .../libavdevice52_4%3a0.5.9 0ubuntu0.10.04.3_amd64.deb) ...
Selecting previously deselected package libavfilter0.
Unpacking libavfilter0 (from .../libavfilter0_4%3a0.5.9 0ubuntu0.10.04.3_amd64.deb) ...
Selecting previously deselected package libpostproc51.
Unpacking libpostproc51 (from .../libpostproc51_4%3a0.5.9 0ubuntu0.10.04.3_amd64.deb) ...
Selecting previously deselected package libsdl1.2debian alsa.
Unpacking libsdl1.2debian alsa (from .../libsdl1.2debian alsa_1.2.14 4ubuntu1.1_amd64.deb) ...
Selecting previously deselected package libsdl1.2debian.
Unpacking libsdl1.2debian (from .../libsdl1.2debian_1.2.14 4ubuntu1.1_amd64.deb) ...
Selecting previously deselected package libswscale0.
Unpacking libswscale0 (from .../libswscale0_4%3a0.5.9 0ubuntu0.10.04.3_amd64.deb) ...
Selecting previously deselected package ffmpeg.
Unpacking ffmpeg (from .../ffmpeg_4%3a0.5.9 0ubuntu0.10.04.3_amd64.deb) ...
Selecting previously deselected package motion.
Unpacking motion (from .../motion_3.2.11 2ubuntu4_amd64.deb) ...
Processing triggers for man db ...
Processing triggers for ureadahead ...
Setting up libraw1394 11 (2.0.4 1ubuntu2) ...
Setting up libdc1394 22 (2.1.2 2) ...
Setting up libavdevice52 (4:0.5.9 0ubuntu0.10.04.3) ...
Setting up libavfilter0 (4:0.5.9 0ubuntu0.10.04.3) ...
Setting up libpostproc51 (4:0.5.9 0ubuntu0.10.04.3) ...
Setting up libsdl1.2debian alsa (1.2.14 4ubuntu1.1) ...
Setting up libsdl1.2debian (1.2.14 4ubuntu1.1) ...
Setting up libswscale0 (4:0.5.9 0ubuntu0.10.04.3) ...
Setting up ffmpeg (4:0.5.9 0ubuntu0.10.04.3) ...
Setting up motion (3.2.11 2ubuntu4) ...
Adding group `motion' (GID 1000) ...
Done.
Adding system user `motion' (UID 119) ...
Adding new user `motion' (UID 119) with group `motion' ...
Not creating home directory `/home/motion'.
Adding user `motion' to group `video' ...
Adding user motion to group video
Done.
[33m*[39;49m Not starting motion daemon, disabled via /etc/default/motion
Processing triggers for libc bin ...
ldconfig deferred processing now taking place
root@hiox:~