vi /etc/apt/sources.list # first source
apt-get update apt-get install motion mc samba apache2 mysql-server phpmyadmin cp /etc/motion/motion.conf /etc/motion/motion.conf_backup mv /etc/samba/smb.conf /etc/samba/smb.conf_old
touch /etc/samba/smb.conf
# Global config [global] workgroup = techish.local netbios name = SPROCKET server string = File server map to guest = Bad User log file = /var/log/samba/log.%m max log size = 15 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = No local master = No dns proxy = No security = User # Shares[Tmp] path = /tmp read only = No [homes] path = /home/%u writable = yes browseable = no
http://www.techish.net/2012/07/18/basic-samba-setup-on-debian-squeeze/
smbpasswd -a miethek /etc/init.d/samba stop /etc/init.d/samba start
vi /etc/ motion/motion.conf
target_dir /home/motion width 1280 height 720 deamon mode on mysql config
http://www.lavrsen.dk/foswiki/bin/view/Motion/UsingDatabases
CREATE TABLE ‚security’ (‚camera’ int(11) default NULL, ‚filename’ varchar(80) NOT NULL default ”,’frame’ int(11) default NULL, ‚file_type’ int(11) default NULL,’time_stamp’ timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,’text_event’ varchar(40) NOT NULL default ’0000-00-00 00:00:00′,’event_time_stamp’ timestamp NOT NULL default ’0000-00-00 00:00:00′, ‚file_size’ varchar(36) NOT NULL default ’0′,KEY ‚time_stamp’ (‚time_stamp’),KEY ‚event_time_stamp’ (‚event_time_stamp’)) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/**** Motion browser ****/ wget http://www.lavrsen.dk/foswiki/pub/ Motion/MotionBrowser/motionbrowser.tar webcam_localhost off