Open console and enter:
chcon -t httpd_sys_rw_content_t /home/our_site.com/ -R
chcon -t httpd_sys_rw_content_t /home/our_site.com/ -R
# update database size
zmlocalconfig -e ldap_db_maxsize=67108864
# update log size
zmlocalconfig -e ldap_accesslog_maxsize=536870912
# allow time for zmconfigd to apply new setting (as suggested by Quanah)
sleep 90
# stop slapd
ldap stop
# change to database directory
cd /opt/zimbra/data/ldap/mdb/db
# backup database
/opt/zimbra/libexec/zmslapcat /opt/zimbra/data/ldap/mdb/db
# move to .old
mv data.mdb data.mdb.old
# recreate database with new size and restore from backup
/opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -l /opt/zimbra/data/ldap/mdb/db/ldap.bak
# start slapd
ldap start
# archive original
gzip data.mdb.old
#!/bin/bash
### google DNS ip ######
ip="8.8.8.8"
ping $ip -c 1 > /dev/null
#### 192.168.0.1 - local ip of wifi router #########
if [ $? -ne 0 ]
then
wget -q http://login:pass@192.168.0.1/Tools/reboot.xgi &>/dev/null
fi
#!/bin/sh
# get all users list of mydomain.com
/opt/zimbra/bin/zmprov -l gaa mydomain.com > /opt/zimbra/scripts/users_mailbox.txt
# add users to mail list all@mydomain.com
for mbox in `cat /opt/zimbra/scripts/users_mailbox.txt`
do
echo "$mbox";
/opt/zimbra/bin/zmprov -l adlm all@maydomain.com $mbox
done
cvlc --daemon rtsp://EXTERNAL_IP_OF_SHOP_ROUTER:20554/live1.sdp --rtsp-user=login_for_your_ip_cam --rtsp-pwd=pass_for_your_ip_cam --sout "#transcode{vcodec=FLV1,vb=2048,fps=25,scale=1,acodec=mp4a,deinterlace}:std{access=http{mime=video/x-flv},dst=0.0.0.0:8026/stream.flv}" --loop --color -I dummy
<p>My IPcam</p>
<script type="text/javascript" src="mediaplayer/swfobject.js"></script>
<div id="cam3">My IPcam</div>
<script type="text/javascript">
var so = new SWFObject('mediaplayer/player.swf','mpl','480','270','8');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','file=http://IP_OF_YOUR_SERVER_WHERE_VLC_IS_RUNNING:8026/stream.flv');
so.write('cam3');
</script>
#!/bin/bash
current_date=`date +"%Y%m%d"`
output_file_name="$current_date.avi"
### JPG folder. Path of folder where your camera sends shaphots ###
directory="FOLDER_WITH_SNAPSHOTS"
### VIDEO folder where video files will be stored. My example /var/home/data/camera/video ###
save_directory="/var/home/data/camera/video"
########## Generating video file ###########
mencoder "mf://$directory/shop$current_date*.jpg" -vf scale=640:-11 -oac copy -ovc lavc -lavcopts vcodec=msmpeg4:vbitrate=2000 -ffourcc MP43 -fps 24 -o "$save_directory/$output_file_name"
#### deleting jpg files and logs ######
rm -f $directory/shop$current_date*.jpg
rm -f $directory/*.log
#### if time of file more then 31 days, delete it###############
find /var/home/data/camera/video/ -atime +31|xargs rm -f