<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://crancho.com/w/index.php?action=history&amp;feed=atom&amp;title=HouseRobot%3AInitialSetup</id>
	<title>HouseRobot:InitialSetup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://crancho.com/w/index.php?action=history&amp;feed=atom&amp;title=HouseRobot%3AInitialSetup"/>
	<link rel="alternate" type="text/html" href="https://crancho.com/w/index.php?title=HouseRobot:InitialSetup&amp;action=history"/>
	<updated>2026-05-02T05:44:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://crancho.com/w/index.php?title=HouseRobot:InitialSetup&amp;diff=843&amp;oldid=prev</id>
		<title>Ohayden at 03:36, 9 June 2009</title>
		<link rel="alternate" type="text/html" href="https://crancho.com/w/index.php?title=HouseRobot:InitialSetup&amp;diff=843&amp;oldid=prev"/>
		<updated>2009-06-09T03:36:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:HouseRobot|I]]&lt;br /&gt;
= TODO =&lt;br /&gt;
Remove bluetooth from kernel: http://www.nabble.com/Suppressing-bluetooth-td15523810.htm or simply mv /etc/init.d/bluetooth /etc/init.d/bluetooth.flc&lt;br /&gt;
&lt;br /&gt;
= Initial Setup Procedures =&lt;br /&gt;
== Hardware ==&lt;br /&gt;
*PWM 1A = Servo (Ground / Black wire on the outside facing away from Robostix and yellow wire closer to Robostix)&lt;br /&gt;
*PWM 1B = H-Bridge left motor&lt;br /&gt;
*PWM 1C = H-Bridge right motor &lt;br /&gt;
&lt;br /&gt;
*PWM 3C = Buzzer&lt;br /&gt;
&lt;br /&gt;
*AD 7 = Sonar (Ground wire on the outside facing away from Robostix and AN wire closer to Robostix)&lt;br /&gt;
&lt;br /&gt;
== Gumstix/Verdex Build Environment ==&lt;br /&gt;
This guide was adapted from: http://www.gumstix.net/Software/cat/Software-verdex-pro/111.html&lt;br /&gt;
&lt;br /&gt;
* Using VirtualBox, I installed a Debian (Standard system and no Desktop environment) for my build environment (100GB hd, hostname:robodev, shared folder named &amp;quot;share&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
=== Install Guess Additions and Add a Share ===&lt;br /&gt;
  su&lt;br /&gt;
  apt-get install build-essential linux-headers-`uname -r`&lt;br /&gt;
* On VirtualBox, click Devices-&amp;gt;Install Guess Additions&lt;br /&gt;
  mount /dev/cdrom /media/cdrom&lt;br /&gt;
  /media/cdrom/VBoxLinuxAdditions-x86.run&lt;br /&gt;
  mkdir /media/share&lt;br /&gt;
  mount -t vboxsf share /media/share&lt;br /&gt;
&lt;br /&gt;
=== Get Misc Tools ===&lt;br /&gt;
* Install screen to help with scrollback and reconnecting from anywhere&lt;br /&gt;
  apt-get install screen ssh&lt;br /&gt;
* Change options for ssh daemon&lt;br /&gt;
  vim /etc/ssh/sshd_config&lt;br /&gt;
* Find PermitRootLogin and set to no, as such:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PermitRootLogin no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Set options for screen&lt;br /&gt;
  &amp;lt;CTRL+D&amp;gt;&lt;br /&gt;
  vim ~/.screenrc&lt;br /&gt;
* Add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
startup_message off&lt;br /&gt;
defscrollback 3000&lt;br /&gt;
&amp;lt;/pre&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
=== Install Psyco for Faster Builds ===&lt;br /&gt;
  svn co http://codespeak.net/svn/psyco/dist/ psyco-dist&lt;br /&gt;
  cd psyco-dist&lt;br /&gt;
  su&lt;br /&gt;
  python setup.py install&lt;br /&gt;
&lt;br /&gt;
=== Setup Build Environment ===&lt;br /&gt;
* Install required packages for build environment&lt;br /&gt;
  apt-get install help2man gawk diffstat libncurses5-dev zlib1g-dev bison cvs flex texi2html autoconf python-dev python-pysqlite2 bitbake subversion&lt;br /&gt;
* Log out from root and back in as your &amp;lt;user account&amp;gt;&lt;br /&gt;
  &amp;lt;CTRL+D&amp;gt;&lt;br /&gt;
* The directory needs to be &amp;quot;gumstix&amp;quot;, otherwise you&amp;#039;ll have to modify .bashrc&lt;br /&gt;
  mkdir gumstix&lt;br /&gt;
  cd gumstix&lt;br /&gt;
* Do the initial checkout&lt;br /&gt;
  svn co https://gumstix.svn.sourceforge.net/svnroot/gumstix/trunk gumstix-oe&lt;br /&gt;
* Copy the environment variables&lt;br /&gt;
  cat gumstix-oe/extras/profile &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
* Logout and back in to reload .bashrc&lt;br /&gt;
  &amp;lt;CTRL+D&amp;gt;&lt;br /&gt;
* Once you log back in, su to root&lt;br /&gt;
  su&lt;br /&gt;
* Create and set permissions on the sources folder for the build to properly work&lt;br /&gt;
  mkdir /usr/share/sources&lt;br /&gt;
  chown &amp;lt;user account&amp;gt;:&amp;lt;user account&amp;gt; /usr/share/sources&lt;br /&gt;
  chmod 0775 /usr/share/sources&lt;br /&gt;
  chmod ug+s /usr/share/sources&lt;br /&gt;
* Log out of su and back to &amp;lt;user account&amp;gt;&lt;br /&gt;
  &amp;lt;CTRL+D&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Update dbus / gmp ===&lt;br /&gt;
* My initial build errored with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 .libs/assert.o:assert.c:(.text+0x4e2): first defined here&lt;br /&gt;
| collect2: ld returned 1 exit status&lt;br /&gt;
| make[2]: *** [libgmp.la] Error 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* To resolve the above issue, I did the following (based on:http://www.nabble.com/Build-error-with-latest-svn-buildroot-td21562122.html) :&lt;br /&gt;
  wget http://www.klc.net.nz/images/dbus.tar.gz&lt;br /&gt;
  wget http://www.klc.net.nz/images/gmp.tar.gz&lt;br /&gt;
  tar zxvf ./dbus.tar.gz -C ./gumstix/gumstix-oe/org.openembedded.snapshot/packages/&lt;br /&gt;
  tar zxvf ./gmp.tar.gz -C ./gumstix/gumstix-oe/org.openembedded.snapshot/packages/&lt;br /&gt;
* Added variables to for versions:&lt;br /&gt;
  vim gumstix/gumstix-oe/com.gumstix.collection/conf/machine/include/gumstix.inc&lt;br /&gt;
* Add the following at the end:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PREFERRED_VERSION_gmp = &amp;quot;4.2.2&amp;quot;&lt;br /&gt;
PREFERRED_VERSION_gmp-native = &amp;quot;4.2.2&amp;quot;&lt;br /&gt;
PREFERRED_VERSION_dbus = &amp;quot;1.2.1&amp;quot;&lt;br /&gt;
PREFERRED_VERSION_dbus-native = &amp;quot;1.2.1&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;*NOTE*&amp;#039;&amp;#039;&amp;#039; This part took about 8 to 9 hours to completely build everything.&lt;br /&gt;
* Kick off the first build&lt;br /&gt;
  bitbake gumstix-basic-image&lt;br /&gt;
&lt;br /&gt;
=== Fixes ===&lt;br /&gt;
* I was having issues with the robostix until I realized I needed to add it into the build.  I modified the ~/gumstix/gumstix-oe/com.gumstix.collection/conf/machine/gumstix-custom-verdex.conf and uncommented the robostix line, which the comments said I needed to comment out a few other lines.&lt;br /&gt;
&lt;br /&gt;
  vim ~/gumstix/gumstix-oe/com.gumstix.collection/conf/machine/gumstix-custom-verdex.conf&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# if you enable robostix you will need to disable both &amp;quot;lcd&amp;quot; and &amp;quot;touchscreen&amp;quot; features&lt;br /&gt;
#FLC - Enabled robostix&lt;br /&gt;
MACHINE_FEATURES  += &amp;quot;robostix&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#FLC#MACHINE_FEATURES  += &amp;quot;lcd&amp;quot;&lt;br /&gt;
#FLC#MACHINE_FEATURES  += &amp;quot;rgb16&amp;quot;&lt;br /&gt;
#MACHINE_FEATURES  += &amp;quot;rgb18&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#FLC#MACHINE_FEATURES  += &amp;quot;touchscreen&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Recompile===&lt;br /&gt;
* To have the conf changes take effect, I had to do a recompile as such:&lt;br /&gt;
  bitbake -c rebuild task-base-gumstix&lt;br /&gt;
  bitbake -c rebuild gumstix-basic-image&lt;br /&gt;
&lt;br /&gt;
===Compiling in Video Support===&lt;br /&gt;
To support the USB web cam I needed to add a few kernel modules:&lt;br /&gt;
  cd ~/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21&lt;br /&gt;
  cp .config .config.flc&lt;br /&gt;
  make ARCH=arm menuconfig&lt;br /&gt;
* The &amp;quot;make ARCH=arm menuconfig&amp;quot; will pop up the kernel config tool and now we need to make a few modifications as such:&lt;br /&gt;
* Make sure &amp;quot;Device Drivers-&amp;gt;USB support-&amp;gt;Support for Host-side USB&amp;quot; is set to &amp;lt;M&amp;gt; for module&lt;br /&gt;
* Make sure &amp;quot;Device Drivers-&amp;gt;USB support-&amp;gt;USB Gadget Support-&amp;gt;Support for USB Gadgets&amp;quot; is set to &amp;lt; &amp;gt; for excluded&lt;br /&gt;
* Make sure &amp;quot;Multimedia devices-&amp;gt;Video For Linux&amp;quot; is set to &amp;lt;M&amp;gt; for module&lt;br /&gt;
&amp;lt;strike&amp;gt;* Make sure &amp;quot;Multimedia devices-&amp;gt;Video Capture Adapters-&amp;gt;USB Logitech Quickcam Messenger&amp;quot; is set to &amp;lt;M&amp;gt; for module&amp;lt;/strike&amp;gt;&lt;br /&gt;
* Save the .config file&lt;br /&gt;
* Copy the newly generated .config over the old defconfig and compile the kernel, as such:&lt;br /&gt;
  cp .config /home/ohayden/gumstix/gumstix-oe/com.gumstix.collection/packages/linux/gumstix-kernel-2.6.21/gumstix-custom-verdex/defconfig&lt;br /&gt;
  bitbake -c rebuild gumstix-kernel&lt;br /&gt;
* Build the support for my 046d:08ad Logitech web cam, as such:&lt;br /&gt;
  bitbake gspcav1&lt;br /&gt;
* Build the jpg library used by motion:&lt;br /&gt;
  bitbake jpeg&lt;br /&gt;
* Build the jpg stream daemon called motion:&lt;br /&gt;
  bitbake motion&lt;br /&gt;
&lt;br /&gt;
===Re-Install via Serial===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; 192.168.0.142 = RoboDev (VBox VM)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; ttyUSB4 is wherever the Belkin USB to Serial adapter wanted to present it self&lt;br /&gt;
  mkdir /tmp/gum&lt;br /&gt;
  cd /tmp/gum&lt;br /&gt;
  scp ohayden@192.168.0.142:~/gumstix/gumstix-oe/extras/kermit-setup ./&lt;br /&gt;
  scp ohayden@192.168.0.142:~/gumstix/gumstix-oe/tmp/deploy/glibc/images/gumstix-custom-verdex/* ./&lt;br /&gt;
  kermit -l /dev/ttyUSB4&lt;br /&gt;
  take /tmp/gum/kermit-setup&lt;br /&gt;
  connect&lt;br /&gt;
* Power on gumstix and watch kermit terminal and as soon as you see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
U-Boot 1.2.0 (Dec 21 2007 - 13:37:16) - PXA270@600 MHz - 1578M&lt;br /&gt;
&lt;br /&gt;
*** Welcome to Gumstix ***&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
Flash: 32 MB&lt;br /&gt;
Using default environment&lt;br /&gt;
&lt;br /&gt;
Hit any key to stop autoboot:  2 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Press any key to abort the normal boot process and then do the following:&lt;br /&gt;
  loadb a2000000&lt;br /&gt;
* Press CTRL+\ and then &amp;quot;c&amp;quot;, then the following commands:&lt;br /&gt;
  cd /tmp/gum&lt;br /&gt;
  send gumstix-basic-image-gumstix-custom-verdex.jffs2&lt;br /&gt;
* You will now see an upload screen, which will take about 20 minutes to complete.  There will be an estimate time left on the screen.&lt;br /&gt;
* Once done transferring, run the following commands:&lt;br /&gt;
  connect&lt;br /&gt;
  protect on 1:0-1&lt;br /&gt;
  erase all&lt;br /&gt;
* It will now begin clearing and you&amp;#039;ll see this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Erase Flash Bank # 1 - Warning: 2 protected sectors will not be erased!&lt;br /&gt;
................................................................................................................................................................................................................................................................. done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run the following:&lt;br /&gt;
  cp.b a2000000 40000 ${filesize}&lt;br /&gt;
  loadb a2000000&lt;br /&gt;
* Press CTRL+\ and then &amp;quot;c&amp;quot;, then the following commands:&lt;br /&gt;
  send uImage-2.6.21-r1-gumstix-custom-verdex.bin&lt;br /&gt;
* You will now see an upload screen again, but this time the process will be completed much faster.  More commands:&lt;br /&gt;
  connect&lt;br /&gt;
  katinstall 100000&lt;br /&gt;
  katload 100000&lt;br /&gt;
  boot&lt;br /&gt;
* That&amp;#039;s it, all is done.  The first boot will take a bit longer to boot than subsequent boots.&lt;br /&gt;
&lt;br /&gt;
===Installing Video Support===&lt;br /&gt;
Copy the following packages to the robo and install with &amp;quot;ipkg install &amp;lt;package_name&amp;gt;&amp;quot;:&lt;br /&gt;
*Video 4 Linux Kernel Modules (v4l2-common.ko, v4l1-compat.ko, and videodev.ko will be installed in /lib/modules/2.6.21/kernel/drivers/media/video):&lt;br /&gt;
  ~/gumstix/gumstix-oe/tmp/deploy/glibc/ipk/gumstix-custom-verdex/kernel-module-v4l1-compat_2.6.21-r1_gumstix-custom-verdex.ipk&lt;br /&gt;
  ~/gumstix/gumstix-oe/tmp/deploy/glibc/ipk/gumstix-custom-verdex/kernel-module-v4l2-common_2.6.21-r1_gumstix-custom-verdex.ipk&lt;br /&gt;
  ~/gumstix/gumstix-oe/tmp/deploy/glibc/ipk/gumstix-custom-verdex/kernel-module-videodev_2.6.21-r1_gumstix-custom-verdex.ipk&lt;br /&gt;
*Web Cam (046d:08ad Logitech) Support Kernel Module (gspca.ko will be installed in /lib/modules/2.6.21/kernel/drivers/usb/media/):&lt;br /&gt;
  ~/gumstix/gumstix-oe/tmp/deploy/glibc/ipk/gumstix-custom-verdex/gspcav1_20070110-r2_gumstix-custom-verdex.ipk&lt;br /&gt;
*libjpeg62:&lt;br /&gt;
  ~/gumstix/gumstix-oe/tmp/deploy/glibc/ipk/armv5te/libjpeg62_6b-r7_armv5te.ipk&lt;br /&gt;
*Motion:&lt;br /&gt;
  ~/gumstix/gumstix-oe/tmp/deploy/glibc/ipk/armv5te/motion_3.2.6-r0_armv5te.ipk&lt;br /&gt;
&lt;br /&gt;
=== Speed Up Boot Up ===&lt;br /&gt;
  update-rc.d -f alsa-state remove&lt;br /&gt;
  update-rc.d -f bluetooth remove&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
* http://www.gumstix.net/Software/view/Build-system-overview/Hello-world-tutorial/111.html&lt;br /&gt;
&lt;br /&gt;
== Updating Gumstix/Verdex ==&lt;br /&gt;
=== Look Ma, No Serial! ===&lt;br /&gt;
This is based on this [http://www.gumstix.net/Software/view/Developer-how-to-s/Reflashing-from-a-linux-login-session/111.html article].  The current problem is that *after* you flash and reboot, you won&amp;#039;t have network access.  I need to figure out how to presetup the image so that flashing it will add my predefined network settings.&lt;br /&gt;
&lt;br /&gt;
  cd /tmp&lt;br /&gt;
  cp /usr/bin/flash_eraseall /tmp&lt;br /&gt;
  cp /usr/bin/flashcp /tmp&lt;br /&gt;
  cp /usr/bin/flash_unlock /tmp&lt;br /&gt;
  scp ohayden@192.168.0.142:~/gumstix/gumstix-oe/tmp/deploy/glibc/images/gumstix-custom-verdex/gumstix-basic-image-gumstix-custom-verdex.jffs2 ./&lt;br /&gt;
  scp ohayden@192.168.0.142:~/gumstix/gumstix-oe/tmp/deploy/glibc/images/gumstix-custom-verdex/uImage-2.6.21-r1-gumstix-custom-verdex.bin ./&lt;br /&gt;
  ./flash_eraseall -j /dev/mtd1&lt;br /&gt;
  ./flashcp -v gumstix-basic-image-gumstix-custom-verdex.jffs2 /dev/mtd1&lt;br /&gt;
  ./flashcp -v uImage-2.6.21-r1-gumstix-custom-verdex.bin /dev/mtd2&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s all there is to it.  It&amp;#039;s much faster than serial / kermit.  If it fails, then kermit would work to de-brick.  To verify the mtd devices, run &amp;quot;cat /proc/mtd&amp;quot;, which 0=Bootloader, 1=RootFS, 2=Kernel.&lt;br /&gt;
&lt;br /&gt;
== VERDEX Setup ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is old and should no longer be followed!&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strike&amp;gt;&lt;br /&gt;
SSH to the Gumstix and type:&lt;br /&gt;
 ipkg update&lt;br /&gt;
 ipkg install uisp&lt;br /&gt;
 ipkg install robostix-cmdline&lt;br /&gt;
 ipkg install robostix-module&lt;br /&gt;
&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== ROBOSTIX Setup ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is old and should no longer be followed!  This was for use with the command line bash script, which was replaced by the gcc program (roboctrl).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strike&amp;gt;&lt;br /&gt;
To Configure the robotix, type:&lt;br /&gt;
 uisp --wr_fuse_l=0xbf --wr_fuse_h=0xc2 --wr_fuse_e=0xff&lt;br /&gt;
 uisp --erase --upload if=i2c-Boot-m128-16MHz.hex&lt;br /&gt;
&lt;br /&gt;
Now with the i2c-Boot-m128-16MHz.hex loaded on the robostix, we can use the i2c-load to add the i2c-io.hex&lt;br /&gt;
 i2c-load --reset 0x0b write i2c-io.hex&lt;br /&gt;
&lt;br /&gt;
After i2c-io.hex is added, the red LED on the robositx will flash twice per second then pause then repeat flash. To test if all is okay, type:&lt;br /&gt;
 i2c-io 0x0b info&lt;br /&gt;
This will ouput the version info.  I had version: 2, minVersion: 1, SVN: 1588&lt;br /&gt;
&lt;br /&gt;
To Initialize PWM, I create a shell script called pwm_init.sh and is as follows:&lt;br /&gt;
 i2c-io 0x0b wr TCCR1A 0xAA&lt;br /&gt;
 i2c-io 0x0b wr TCCR1B 0x1A&lt;br /&gt;
 i2c-io 0x0b wr ICR1  40000&lt;br /&gt;
 i2c-io 0x0b wr TCNT1 0&lt;br /&gt;
 i2c-io 0x0b wr OCR1A 3000&lt;br /&gt;
 i2c-io 0x0b wr OCR1B 3000&lt;br /&gt;
 i2c-io 0x0b wr OCR1C 3000&lt;br /&gt;
 i2c-io 0x0b setdir b.5 out&lt;br /&gt;
 i2c-io 0x0b setdir b.6 out&lt;br /&gt;
 i2c-io 0x0b setdir b.7 out&lt;br /&gt;
&lt;br /&gt;
To move the servos LEFT:&lt;br /&gt;
 i2c-io 0x0b wr OCR1A 1050&lt;br /&gt;
To move the servos RIGHT:&lt;br /&gt;
 i2c-io 0x0b wr OCR1A 5000&lt;br /&gt;
&lt;br /&gt;
This will turn the Blue LED on: &lt;br /&gt;
 i2c-io 0x0b setdir g.3 out&lt;br /&gt;
 i2c-io 0x0b set g.3 0&lt;br /&gt;
And this will turn the Blue LED off: &lt;br /&gt;
 i2c-io 0x0b set g.3 1&lt;br /&gt;
&lt;br /&gt;
This will also turn the Blue LED on using the writereg command: &lt;br /&gt;
 i2c-io 0x0b writereg ddrg 0x18&lt;br /&gt;
 i2c-io 0x0b writereg portg 0&lt;br /&gt;
And this will turn the Blue LED off: &lt;br /&gt;
 i2c-io 0x0b writereg portg 0x08&lt;br /&gt;
&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration Files ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/motion.conf ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
############################################################&lt;br /&gt;
# Daemon&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Start in daemon (background) mode and release terminal (default: off)&lt;br /&gt;
daemon on&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Basic Setup Mode&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Start in Setup-Mode, daemon disabled. (default: off)&lt;br /&gt;
setup_mode off&lt;br /&gt;
&lt;br /&gt;
###########################################################&lt;br /&gt;
# Capture device options&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Videodevice to be used for capturing  (default /dev/video0)&lt;br /&gt;
# for FreeBSD default is /dev/bktr0&lt;br /&gt;
videodevice /dev/video0&lt;br /&gt;
&lt;br /&gt;
# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)&lt;br /&gt;
# This is ONLY used for FreeBSD. Leave it commented out for Linux&lt;br /&gt;
; tunerdevice /dev/tuner0&lt;br /&gt;
&lt;br /&gt;
# The video input to be used (default: 8)&lt;br /&gt;
# Should normally be set to 1 for video/TV cards, and 8 for USB cameras&lt;br /&gt;
input 8&lt;br /&gt;
&lt;br /&gt;
# The video norm to use (only for video capture and TV tuner cards)&lt;br /&gt;
# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)&lt;br /&gt;
norm 1&lt;br /&gt;
&lt;br /&gt;
# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)&lt;br /&gt;
frequency 0&lt;br /&gt;
&lt;br /&gt;
# Rotate image this number of degrees. The rotation affects all saved images as&lt;br /&gt;
# well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.&lt;br /&gt;
rotate 0&lt;br /&gt;
&lt;br /&gt;
# Image width (pixels). Valid range: Camera dependent, default: 352&lt;br /&gt;
width 320&lt;br /&gt;
&lt;br /&gt;
# Image height (pixels). Valid range: Camera dependent, default: 288&lt;br /&gt;
height 240&lt;br /&gt;
&lt;br /&gt;
# Maximum number of frames to be captured per second.&lt;br /&gt;
# Valid range: 2-100. Default: 100 (almost no limit).&lt;br /&gt;
framerate 4&lt;br /&gt;
&lt;br /&gt;
# URL to use if you are using a network camera, size will be autodetected (incl http://)&lt;br /&gt;
# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined&lt;br /&gt;
; netcam_url value&lt;br /&gt;
&lt;br /&gt;
# Username and password for network camera (only if required). Default: not defined&lt;br /&gt;
# Syntax is user:password&lt;br /&gt;
; netcam_userpass value&lt;br /&gt;
&lt;br /&gt;
# URL to use for a netcam proxy server, if required, e.g. &amp;quot;http://myproxy&amp;quot;.&lt;br /&gt;
# If a port number other than 80 is needed, use &amp;quot;http://myproxy:1234&amp;quot;.&lt;br /&gt;
# Default: not defined&lt;br /&gt;
; netcam_proxy value &lt;br /&gt;
&lt;br /&gt;
# Let motion regulate the brightness of a video device (default: off).&lt;br /&gt;
# The auto_brightness feature uses the brightness option as its target value.&lt;br /&gt;
# If brightness is zero auto_brightness will adjust to average brightness value 128.&lt;br /&gt;
# Only recommended for cameras without auto brightness&lt;br /&gt;
auto_brightness off&lt;br /&gt;
&lt;br /&gt;
# Set the initial brightness of a video device.&lt;br /&gt;
# If auto_brightness is enabled, this value defines the average brightness level&lt;br /&gt;
# which Motion will try and adjust to.&lt;br /&gt;
# Valid range 0-255, default 0 = disabled&lt;br /&gt;
brightness 0&lt;br /&gt;
&lt;br /&gt;
# Set the contrast of a video device.&lt;br /&gt;
# Valid range 0-255, default 0 = disabled&lt;br /&gt;
contrast 0&lt;br /&gt;
&lt;br /&gt;
# Set the saturation of a video device.&lt;br /&gt;
# Valid range 0-255, default 0 = disabled&lt;br /&gt;
saturation 0&lt;br /&gt;
&lt;br /&gt;
# Set the hue of a video device (NTSC feature).&lt;br /&gt;
# Valid range 0-255, default 0 = disabled&lt;br /&gt;
hue 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Round Robin (multiple inputs on same video device name)&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Number of frames to capture in each roundrobin step (default: 1)&lt;br /&gt;
roundrobin_frames 1&lt;br /&gt;
&lt;br /&gt;
# Number of frames to skip before each roundrobin step (default: 1)&lt;br /&gt;
roundrobin_skip 1&lt;br /&gt;
&lt;br /&gt;
# Try to filter out noise generated by roundrobin (default: off)&lt;br /&gt;
switchfilter off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Motion Detection Settings:&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Threshold for number of changed pixels in an image that&lt;br /&gt;
# triggers motion detection (default: 1500)&lt;br /&gt;
threshold 1500&lt;br /&gt;
&lt;br /&gt;
# Automatically tune the threshold down if possible (default: off)&lt;br /&gt;
threshold_tune off&lt;br /&gt;
&lt;br /&gt;
# Noise threshold for the motion detection (default: 32)&lt;br /&gt;
noise_level 32&lt;br /&gt;
&lt;br /&gt;
# Automatically tune the noise threshold (default: on)&lt;br /&gt;
noise_tune on&lt;br /&gt;
&lt;br /&gt;
# Enables motion to adjust its detection/noise level for very dark frames&lt;br /&gt;
# Don&amp;#039;t use this with noise_tune on. (default: off)&lt;br /&gt;
night_compensate off&lt;br /&gt;
&lt;br /&gt;
# Despeckle motion image using (e)rode or (d)ilate or (l)abel (Default: not defined)&lt;br /&gt;
# Recommended value is EedDl. Any combination (and number of) of E, e, d, and D is valid.&lt;br /&gt;
# (l)abeling must only be used once and the &amp;#039;l&amp;#039; must be the last letter.&lt;br /&gt;
# Comment out to disable&lt;br /&gt;
despeckle EedDl&lt;br /&gt;
&lt;br /&gt;
# PGM file to use as a sensitivity mask.&lt;br /&gt;
# Full path name to. (Default: not defined)&lt;br /&gt;
; mask_file value&lt;br /&gt;
&lt;br /&gt;
# Dynamically create a mask file during operation (default: 0)&lt;br /&gt;
# Adjust speed of mask changes from 0 (off) to 10 (fast)&lt;br /&gt;
smart_mask_speed 0&lt;br /&gt;
&lt;br /&gt;
# Ignore sudden massive light intensity changes given as a percentage of the picture&lt;br /&gt;
# area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled&lt;br /&gt;
lightswitch 0&lt;br /&gt;
&lt;br /&gt;
# Picture frames must contain motion at least the specified number of frames&lt;br /&gt;
# in a row before they are detected as true motion. At the default of 1, all&lt;br /&gt;
# motion is detected. Valid range: 1 to thousands, recommended 1-10&lt;br /&gt;
minimum_motion_frames 1&lt;br /&gt;
&lt;br /&gt;
# Specifies the number of pre-captured (buffered) pictures from before motion&lt;br /&gt;
# was detected that will be output at motion detection.&lt;br /&gt;
# Recommended range: 0 to 5 (default: 0)&lt;br /&gt;
# Do not use large values! Large values will cause Motion to skip video frames and&lt;br /&gt;
# cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead.&lt;br /&gt;
pre_capture 0&lt;br /&gt;
&lt;br /&gt;
# Number of frames to capture after motion is no longer detected (default: 0)&lt;br /&gt;
post_capture 0&lt;br /&gt;
&lt;br /&gt;
# Gap is the seconds of no motion detection that triggers the end of an event&lt;br /&gt;
# An event is defined as a series of motion images taken within a short timeframe.&lt;br /&gt;
# Recommended value is 60 seconds (Default). The value 0 is allowed and disables&lt;br /&gt;
# events causing all Motion to be written to one single mpeg file and no pre_capture.&lt;br /&gt;
gap 60&lt;br /&gt;
&lt;br /&gt;
# Minimum gap in seconds between the storing pictures while detecting motion.&lt;br /&gt;
# Default: 0 = as fast as possible (given by the camera framerate)&lt;br /&gt;
# Note: This option has nothing to do with the option &amp;#039;gap&amp;#039;&lt;br /&gt;
minimum_gap 0&lt;br /&gt;
&lt;br /&gt;
# Maximum length in seconds of an mpeg movie&lt;br /&gt;
# When value is exceeded a new mpeg file is created. (Default: 0 = infinite)&lt;br /&gt;
max_mpeg_time 0&lt;br /&gt;
&lt;br /&gt;
# Number of frames per second to capture when not detecting&lt;br /&gt;
# motion (saves CPU load) (Default: 0 = disabled)&lt;br /&gt;
low_cpu 0&lt;br /&gt;
&lt;br /&gt;
# Always save images even if there was no motion (default: off)&lt;br /&gt;
output_all off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Image File Output&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Output &amp;#039;normal&amp;#039; pictures when motion is detected (default: on)&lt;br /&gt;
# Valid values: on, off, first, best&lt;br /&gt;
# When set to &amp;#039;first&amp;#039;, only the first picture of an event is saved.&lt;br /&gt;
# Picture with most motion of an event is saved when set to &amp;#039;best&amp;#039;.&lt;br /&gt;
# Can be used as preview shot for the corresponding movie.&lt;br /&gt;
output_normal off&lt;br /&gt;
&lt;br /&gt;
# Output pictures with only the pixels moving object (ghost images) (default: off)&lt;br /&gt;
output_motion off&lt;br /&gt;
&lt;br /&gt;
# The quality (in percent) to be used by the jpeg compression (default: 75)&lt;br /&gt;
quality 75&lt;br /&gt;
&lt;br /&gt;
# Output ppm images instead of jpeg (default: off)&lt;br /&gt;
ppm off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Snapshots (Traditional Periodic Webcam File Output)&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Make automated snapshot every N seconds (default: 0 = disabled)&lt;br /&gt;
snapshot_interval 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Text Display&lt;br /&gt;
# %Y = year, %m = month, %d = date,&lt;br /&gt;
# %H = hour, %M = minute, %S = second, %T = HH:MM:SS,&lt;br /&gt;
# %v = event, %q = frame number, %t = thread (camera) number,&lt;br /&gt;
# %D = changed pixels, %N = noise level, \n = new line,&lt;br /&gt;
# %i and %J = width and height of motion area,&lt;br /&gt;
# %K and %L = X and Y coordinates of motion center&lt;br /&gt;
# %C = value defined by text_event - do not use with text_event!&lt;br /&gt;
# You can put quotation marks around the text to allow&lt;br /&gt;
# leading spaces&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Locate and draw a box around the moving object.&lt;br /&gt;
# Valid values: on, off and preview (default: off)&lt;br /&gt;
# Set to &amp;#039;preview&amp;#039; will only draw a box in preview_shot pictures.&lt;br /&gt;
locate off&lt;br /&gt;
&lt;br /&gt;
# Draws the timestamp using same options as C function strftime(3)&lt;br /&gt;
# Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock&lt;br /&gt;
# Text is placed in lower right corner&lt;br /&gt;
text_right %Y-%m-%d\n%T-%q&lt;br /&gt;
&lt;br /&gt;
# Draw a user defined text on the images using same options as C function strftime(3)&lt;br /&gt;
# Default: Not defined = no text&lt;br /&gt;
# Text is placed in lower left corner&lt;br /&gt;
; text_left CAMERA %t&lt;br /&gt;
&lt;br /&gt;
# Draw the number of changed pixed on the images (default: off)&lt;br /&gt;
# Will normally be set to off except when you setup and adjust the motion settings&lt;br /&gt;
# Text is placed in upper right corner&lt;br /&gt;
text_changes off&lt;br /&gt;
&lt;br /&gt;
# This option defines the value of the special event conversion specifier %C&lt;br /&gt;
# You can use any conversion specifier in this option except %C. Date and time&lt;br /&gt;
# values are from the timestamp of the first image in the current event.&lt;br /&gt;
# Default: %Y%m%d%H%M%S&lt;br /&gt;
# The idea is that %C can be used filenames and text_left/right for creating&lt;br /&gt;
# a unique identifier for each event.&lt;br /&gt;
text_event %Y%m%d%H%M%S&lt;br /&gt;
&lt;br /&gt;
# Draw characters at twice normal size on images. (default: off)&lt;br /&gt;
text_double off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Target Directories and filenames For Images And Films&lt;br /&gt;
# For the options snapshot_, jpeg_, mpeg_ and timelapse_filename&lt;br /&gt;
# you can use conversion specifiers&lt;br /&gt;
# %Y = year, %m = month, %d = date,&lt;br /&gt;
# %H = hour, %M = minute, %S = second,&lt;br /&gt;
# %v = event, %q = frame number, %t = thread (camera) number,&lt;br /&gt;
# %D = changed pixels, %N = noise level,&lt;br /&gt;
# %i and %J = width and height of motion area,&lt;br /&gt;
# %K and %L = X and Y coordinates of motion center&lt;br /&gt;
# %C = value defined by text_event&lt;br /&gt;
# Quotation marks round string are allowed.&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Target base directory for pictures and films&lt;br /&gt;
# Recommended to use absolute path. (Default: current working directory)&lt;br /&gt;
#FLC#target_dir /usr/local/apache2/htdocs/cam1&lt;br /&gt;
target_dir /var/www&lt;br /&gt;
&lt;br /&gt;
# File path for snapshots (jpeg or ppm) relative to target_dir&lt;br /&gt;
# Default: %v-%Y%m%d%H%M%S-snapshot&lt;br /&gt;
# Default value is equivalent to legacy oldlayout option&lt;br /&gt;
# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot&lt;br /&gt;
# File extension .jpg or .ppm is automatically added so do not include this.&lt;br /&gt;
# Note: A symbolic link called lastsnap.jpg created in the target_dir will always&lt;br /&gt;
# point to the latest snapshot, unless snapshot_filename is exactly &amp;#039;lastsnap&amp;#039;&lt;br /&gt;
#FLC#snapshot_filename %v-%Y%m%d%H%M%S-snapshot&lt;br /&gt;
snapshot_filename snapshot&lt;br /&gt;
&lt;br /&gt;
# File path for motion triggered images (jpeg or ppm) relative to target_dir&lt;br /&gt;
# Default: %v-%Y%m%d%H%M%S-%q&lt;br /&gt;
# Default value is equivalent to legacy oldlayout option&lt;br /&gt;
# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q&lt;br /&gt;
# File extension .jpg or .ppm is automatically added so do not include this&lt;br /&gt;
# Set to &amp;#039;preview&amp;#039; together with best-preview feature enables special naming&lt;br /&gt;
# convention for preview shots. See motion guide for details&lt;br /&gt;
#FLC#jpeg_filename %v-%Y%m%d%H%M%S-%q&lt;br /&gt;
jpeg_filename snapshot&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Live Webcam Server&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# The mini-http server listens to this port for requests (default: 0 = disabled)&lt;br /&gt;
webcam_port 8081&lt;br /&gt;
&lt;br /&gt;
# Quality of the jpeg images produced (default: 50)&lt;br /&gt;
webcam_quality 75&lt;br /&gt;
&lt;br /&gt;
# Output frames at 1 fps when no motion is detected and increase to the&lt;br /&gt;
# rate given by webcam_maxrate when motion is detected (default: off)&lt;br /&gt;
webcam_motion off&lt;br /&gt;
&lt;br /&gt;
# Maximum framerate for webcam streams (default: 1)&lt;br /&gt;
webcam_maxrate 4&lt;br /&gt;
&lt;br /&gt;
# Restrict webcam connections to localhost only (default: on)&lt;br /&gt;
webcam_localhost off&lt;br /&gt;
&lt;br /&gt;
# Limits the number of images per connection (default: 0 = unlimited)&lt;br /&gt;
# Number can be defined by multiplying actual webcam rate by desired number of seconds&lt;br /&gt;
# Actual webcam rate is the smallest of the numbers framerate and webcam_maxrate&lt;br /&gt;
webcam_limit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# HTTP Based Control&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# TCP/IP port for the http server to listen on (default: 0 = disabled)&lt;br /&gt;
control_port 8080&lt;br /&gt;
&lt;br /&gt;
# Restrict control connections to localhost only (default: on)&lt;br /&gt;
control_localhost off&lt;br /&gt;
&lt;br /&gt;
# Output for http server, select off to choose raw text plain (default: on)&lt;br /&gt;
control_html_output on&lt;br /&gt;
&lt;br /&gt;
# Authentication for the http based control. Syntax username:password&lt;br /&gt;
# Default: not defined (Disabled)&lt;br /&gt;
; control_authentication username:password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Tracking (Pan/Tilt)&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic)&lt;br /&gt;
# The generic type enables the definition of motion center and motion size to&lt;br /&gt;
# be used with the conversion specifiers for options like on_motion_detected&lt;br /&gt;
track_type 0&lt;br /&gt;
&lt;br /&gt;
# Enable auto tracking (default: off)&lt;br /&gt;
track_auto off&lt;br /&gt;
&lt;br /&gt;
# Serial port of motor (default: none)&lt;br /&gt;
; track_port value&lt;br /&gt;
&lt;br /&gt;
# Motor number for x-axis (default: -1)&lt;br /&gt;
track_motorx -1&lt;br /&gt;
&lt;br /&gt;
# Motor number for y-axis (default: -1)&lt;br /&gt;
track_motory -1&lt;br /&gt;
&lt;br /&gt;
# Maximum value on x-axis (default: 0)&lt;br /&gt;
track_maxx 0&lt;br /&gt;
&lt;br /&gt;
# Maximum value on y-axis (default: 0)&lt;br /&gt;
track_maxy 0&lt;br /&gt;
&lt;br /&gt;
# ID of an iomojo camera if used (default: 0)&lt;br /&gt;
track_iomojo_id 0&lt;br /&gt;
&lt;br /&gt;
# Angle in degrees the camera moves per step on the X-axis&lt;br /&gt;
# with auto-track (default: 10)&lt;br /&gt;
# Currently only used with pwc type cameras&lt;br /&gt;
track_step_angle_x 10&lt;br /&gt;
&lt;br /&gt;
# Angle in degrees the camera moves per step on the Y-axis&lt;br /&gt;
# with auto-track (default: 10)&lt;br /&gt;
# Currently only used with pwc type cameras&lt;br /&gt;
track_step_angle_y 10&lt;br /&gt;
&lt;br /&gt;
# Delay to wait for after tracking movement as number&lt;br /&gt;
# of picture frames (default: 10)&lt;br /&gt;
track_move_wait 10&lt;br /&gt;
&lt;br /&gt;
# Speed to set the motor to (default: 255)&lt;br /&gt;
track_speed 255&lt;br /&gt;
&lt;br /&gt;
# Number of steps to make (default: 40)&lt;br /&gt;
track_stepsize 40&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# External Commands, Warnings and Logging:&lt;br /&gt;
# You can use conversion specifiers for the on_xxxx commands&lt;br /&gt;
# %Y = year, %m = month, %d = date,&lt;br /&gt;
# %H = hour, %M = minute, %S = second,&lt;br /&gt;
# %v = event, %q = frame number, %t = thread (camera) number,&lt;br /&gt;
# %D = changed pixels, %N = noise level,&lt;br /&gt;
# %i and %J = width and height of motion area,&lt;br /&gt;
# %K and %L = X and Y coordinates of motion center&lt;br /&gt;
# %C = value defined by text_event&lt;br /&gt;
# %f = filename with full path&lt;br /&gt;
# %n = number indicating filetype&lt;br /&gt;
# Both %f and %n are only defined for on_picture_save,&lt;br /&gt;
# on_movie_start and on_movie_end&lt;br /&gt;
# Quotation marks round string are allowed.&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Do not sound beeps when detecting motion (default: on)&lt;br /&gt;
# Note: Motion never beeps when running in daemon mode.&lt;br /&gt;
quiet on&lt;br /&gt;
&lt;br /&gt;
# Command to be executed when an event starts. (default: none)&lt;br /&gt;
# An event starts at first motion detected after a period of no motion defined by gap &lt;br /&gt;
; on_event_start value&lt;br /&gt;
&lt;br /&gt;
# Command to be executed when an event ends after a period of no motion&lt;br /&gt;
# (default: none). The period of no motion is defined by option gap.&lt;br /&gt;
; on_event_end value&lt;br /&gt;
&lt;br /&gt;
# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)&lt;br /&gt;
# To give the filename as an argument to a command append it with %f&lt;br /&gt;
; on_picture_save value&lt;br /&gt;
&lt;br /&gt;
# Command to be executed when a motion frame is detected (default: none)&lt;br /&gt;
; on_motion_detected value&lt;br /&gt;
&lt;br /&gt;
# Command to be executed when a movie file (.mpg|.avi) is created. (default: none)&lt;br /&gt;
# To give the filename as an argument to a command append it with %f&lt;br /&gt;
; on_movie_start value&lt;br /&gt;
&lt;br /&gt;
# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)&lt;br /&gt;
# To give the filename as an argument to a command append it with %f&lt;br /&gt;
; on_movie_end value&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Database Options For MySQL&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Mysql database to log to (default: not defined)&lt;br /&gt;
; mysql_db value&lt;br /&gt;
&lt;br /&gt;
# The host on which the database is located (default: not defined)&lt;br /&gt;
; mysql_host value&lt;br /&gt;
&lt;br /&gt;
# User account name for MySQL database (default: not defined)&lt;br /&gt;
; mysql_user value&lt;br /&gt;
&lt;br /&gt;
# User password for MySQL database (default: not defined)&lt;br /&gt;
; mysql_password value&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Database Options For PostgreSQL&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# PostgreSQL database to log to (default: not defined)&lt;br /&gt;
; pgsql_db value&lt;br /&gt;
&lt;br /&gt;
# The host on which the database is located (default: not defined)&lt;br /&gt;
; pgsql_host value&lt;br /&gt;
&lt;br /&gt;
# User account name for PostgreSQL database (default: not defined)&lt;br /&gt;
; pgsql_user value&lt;br /&gt;
&lt;br /&gt;
# User password for PostgreSQL database (default: not defined)&lt;br /&gt;
; pgsql_password value&lt;br /&gt;
&lt;br /&gt;
# Port on which the PostgreSQL database is located (default: 5432)&lt;br /&gt;
; pgsql_port 5432&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Video Loopback Device (vloopback project)&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
# Output images to a video4linux loopback device&lt;br /&gt;
# The value &amp;#039;-&amp;#039; means next available (default: not defined)&lt;br /&gt;
; video_pipe value&lt;br /&gt;
&lt;br /&gt;
# Output motion images to a video4linux loopback device&lt;br /&gt;
# The value &amp;#039;-&amp;#039; means next available (default: not defined)&lt;br /&gt;
; motion_video_pipe value&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
##############################################################&lt;br /&gt;
# Thread config files - One for each camera.&lt;br /&gt;
# Except if only one camera - You only need this config file.&lt;br /&gt;
# If you have more than one camera you MUST define one thread&lt;br /&gt;
# config file for each camera in addition to this config file.&lt;br /&gt;
##############################################################&lt;br /&gt;
&lt;br /&gt;
# Remember: If you have more than one camera you must have one&lt;br /&gt;
# thread file for each camera. E.g. 2 cameras requires 3 files:&lt;br /&gt;
# This motion.conf file AND thread1.conf and thread2.conf.&lt;br /&gt;
# Only put the options that are unique to each camera in the&lt;br /&gt;
# thread config files. &lt;br /&gt;
; thread /usr/local/etc/thread1.conf&lt;br /&gt;
; thread /usr/local/etc/thread2.conf&lt;br /&gt;
; thread /usr/local/etc/thread3.conf&lt;br /&gt;
; thread /usr/local/etc/thread4.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== /etc/resolv.conf ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain crancho.com&lt;br /&gt;
search crancho.com&lt;br /&gt;
nameserver 192.168.0.5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
       address 192.168.0.202&lt;br /&gt;
       netmask 255.255.255.0&lt;br /&gt;
       gateway 192.168.0.5&lt;br /&gt;
&lt;br /&gt;
auto wlan0                                                     &lt;br /&gt;
iface wlan0 inet static                                        &lt;br /&gt;
        address 10.0.1.2                                       &lt;br /&gt;
        netmask 255.255.255.0                                  &lt;br /&gt;
        broadcast 10.0.1.255                                   &lt;br /&gt;
        pre-up /sbin/iwconfig wlan0 mode Ad-hoc essid hobo     &lt;br /&gt;
        /sbin/ifconfig wlan0 up                                &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto wlan0&lt;br /&gt;
iface wlan0 inet static&lt;br /&gt;
        address 192.168.0.203&lt;br /&gt;
        netmask 255.255.255.0&lt;br /&gt;
        gateway 192.168.0.5&lt;br /&gt;
        broadcast 192.168.0.255&lt;br /&gt;
        pre-up /sbin/iwconfig wlan0 key &amp;lt;key&amp;gt; key open essid orc txpower 100mW power on&lt;br /&gt;
        /sbin/ifconfig wlan0 up&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ohayden</name></author>
	</entry>
</feed>