

a good and an open source room booking system
MRBS
http://mrbs.sourceforge.net/
this guide is from http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat
There are a couple of different ways to install FFMpeg and the required libraries. We are showing both ways here.
Install the additional repo
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Update repository
yum -y update
Install all necessary packages
yum install SDL-devel a52dec a52dec-devel alsa-lib-devel faac faac-devel faad2 faad2-devel yum install freetype-devel giflib gsm gsm-devel imlib2 imlib2-devel lame lame-devel libICE-devel libSM-devel libX11-devel yum install libXau-devel libXdmcp-devel libXext-devel libXrandr-devel libXrender-devel libXt-devel yum install libid3tag libogg-devel libvorbis-devel mesa-libGL-devel mesa-libGLU-devel xorg-x11-proto-devel xvidcore xvidcore-devel zlib-devel yum install amrnb-devel amrwb-devel yum install libtheora libtheora-devel yum install glibc gcc gcc-c++ autoconf automake libtool yum install subversion yum install ncurses-devel yum install libdc1394 libdc1394-devel yum install yasm nasm
Install the essential codecs from FFmepg
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
bunzip2 all-20071007.tar.bz2; tar xvf all-20071007.tar
mkdir /usr/local/lib/codecs/
mkdir /usr/local/lib64/codecs/
cp all-20071007/* /usr/local/lib/codecs/
cp all-20071007/* /usr/local/lib64/codecs/
chmod -R 755 /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib64/codecs/
Grab FFmpeg
svn checkout -r 20525 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
Grab the x264 library
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20091031-2245.tar.bz2
bunzip2 x264-snapshot-20091031-2245.tar.bz2; tar xvf x264-snapshot-20091031-2245.tar
Make sure x264 has not been installed
yum erase x264*
Compile x264
cd x264 ./configure --enable-shared --prefix=/usr make make install
Compile FFmpeg (the configure options have to be on one line)
cd ffmpeg ./configure --enable-gpl --enable-nonfree --enable-postproc --enable-libfaad --enable-avfilter --enable-pthreads \ --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay \ --enable-libtheora --enable-libvorbis --disable-ffplay --enable-shared --enable-avfilter-lavf --arch=x86_64 make make install
(The –arch=x86_64 option should only be used if you are on a 64Bit System!)
Edit ld.so.conf
vi /etc/ld.so.conf
add this new line
/usr/local/lib
Activate the shared libraries
ldconfig
That’s it. This should give you a full functional FFMpeg installation for Razuna. Test it now with;
ffmpeg
This should give you the following back (yours might vary a bit);
FFmpeg version SVN-r20525, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-libfaad --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay --enable-libamr-nb --enable-libamr-wb --enable-libtheora --enable-libvorbis --disable-ffplay --enable-shared libavutil 50. 4. 0 / 50. 4. 0 libavcodec 52.39. 0 / 52.39. 0 libavformat 52.39. 2 / 52.39. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1. 8. 0 / 1. 8. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0
(your output might vary a bit)
Try to convert a movie with;
ffmpeg -i movie.mov -vcodec libx264 -vpre hq -acodec libfaac movie.mp4
Please follow the below steps one by one to install FFMpeg on CentOS/RedHat 5.x. successfully.
Getting Started
razuna:$ razuna:$ mkdir -p ./tmp/ffmpeg-packages razuna:$ cd ./tmp/ffmpeg-packages
Installing a52
razuna:$ wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
razuna:$ tar -zxf a52dec-0.7.4.tar.gz
razuna:$ cd a52dec-0.7.4
razuna:$ ./configure --enable-shared=PKGS
razuna:$ make && make install
razuna:$ cd ..
Installing FAAD2
razuna:$ wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz
razuna:$ tar zxf faad2-2.6.1.tar.gz
razuna:$ cd faad2
razuna:$ autoreconf -vif
razuna:$ ./configure --disable-drm --disable-mpeg4ip
razuna:$ make && make install
razuna:$ cd ..
Installing FAAC
razuna:$ wget http://downloads.sourceforge.net/faac/faac-1.26.tar.gz
razuna:$ tar zxfv faac-1.26.tar.gz
razuna:$ cd faac
razuna:$ ./bootstrap
razuna:$ ./configure --disable-mp4v2
razuna:$ make && make install
razuna:$ cd ..
Installing LAME
razuna:$ wget http://superb-east.dl.sourceforge.net/sourceforge/lame/lame-3.98b8.tar.gz
razuna:$ tar zxfv lame-3.98b8.tar.gz
razuna:$ cd lame-3.98b8
razuna:$ ./configure
razuna:$ make && make install
razuna:$ cd ..
Installing yasm
YASM is a modular assembler, it is required by the x264 package.
razuna:$ wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
razuna:$ tar zfvx yasm-0.7.0.tar.gz
razuna:$ cd yasm-0.7.0
razuna:$ ./configure
razuna:$ make && make install
razuna:$ cd ..
Installing x264
razuna:$ git clone git://git.videolan.org/x264.git
razuna:$ cd x264
razuna:$ ./configure --enable-shared --prefix=/usr && make && sudo make install
Installing Xvid
razuna:$ wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz razuna:$ tar zxfv xvidcore-1.2.1.tar.gz razuna:$ cd xvidcore-1.2.1/build/generic razuna:$ ./configure razuna:$ make && make install razuna:$ cd ../../..
Installing FFmpeg
For FFMPEG, you will need to get the latest out of SVN. FFMPEG doesn’t ever make releases. To do so, run:
(the configure options have to be on one line)
razuna:$ svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
razuna:$ cd ffmpeg
razuna:$ ./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc \
--enable-libfaad --enable-avfilter --enable-pthreads --enable-libxvid \
--enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay
razuna:$ make
razuna:$ make install
to hide user in MAC OS X
create the account in System Pref. or by command line
========
sudo dscl . create /Users/$USERNAME
sudo dscl . create /Users/$USERNAME PrimaryGroupID 0
sudo dscl . create /Users/$USERNAME UniqueID 0
sudo dscl . create /Users/$USERNAME UserShell /bin/bash
sudo dscl . passwd /Users/$USERNAME $PASSWORD
sudo dscl . append /Groups/admin GroupMembership $USERNAME
Replace $USERNAME and $PASSWORD with the username and password you want to use.
===============
The new account will be created as a root-level account. If you like, change the PrimaryGroupID and UniqueID to something else.
to see the UID of users
====
dscl . list /Users UniqueID
====
set their UID to be less than 500
to change the UID
====
dscl . -change /Users/will UniqueID 501 1000
====
above command changes UID from 501 to 1000 for user “will”
following command will hide all such users from login window (system pref. accounts window)
====
sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool TRUE
====
to hide an account manually use this command
====
sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add ‘account1’
====
after hiding the users there can be “others” appearing in the login window. to remove this use this command
====
sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE
====
you can use above commands in reverse to show the users in System Prefs. e.g.
command below will show the hidden users in System Prefs and Login windows
====
sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool FALSE
====
As VMPS implementation is now a thing of past on most routers specially Cisco, an open source software based solution is available for those who still need Dynamic VLANs in their network. Information is available at URL below:
http://freenac.net/
Wireshark under MAC uses X-11 to run and on BSD-flavored systems, such as OS X, libpcap opens a BPF device to do a capture. You’d need to make the BPF devices on your system readable by you in order to capture (you could also run Wireshark as root, but that’s overkill, and runs a rather large chunk of code as root).
You could do
sudo chown {your account name} /dev/bpf*
to do that, but that would have to be done after every reboot. To do that automatically, you could install the ChmodBPF startup item from recent versions of libpcap on your system in /Library/StartupItems and edit the commands in the StartService() shell function in ChmodBPF/ChmodBPF to do the appropriate chown and possibly chmod commands.
# search for users with forwarding address set
su – zimbra
zmprov sa -v zimbraPrefMailForwardingAddress=* | grep -e “uid” -e “zimbraPrefMailForwardingAddress”
output will be
uid: user1
zimbraPrefMailForwardingAddress: mail@myforwardaddress.com
uid: user2
zimbraPrefMailForwardingAddress: mai2l@myforwardaddress.com
# Zimbra Directory Schema which can be helful to find the correct syntax to use in zimbra provisioning commands is available at:
http://wiki.zimbra.com/wiki/5.0.11_Directory_Schema
a good guide is here
http://commons.oreilly.com/wiki/index.php/SpamAssassin/SpamAssassin_Rules
#to block combination of words in incoming email’s body
body __LOCAL_PASSWORD1 /\bWAB\b/i
body __LOCAL_PASSWORD2 /\bWestern Academy of Beijing\b/i
body __LOCAL_PASSWORD3 /\bpassword\b/i
meta LOCAL_MULTIPLE_PASS1 (__LOCAL_PASSWORD1 && __LOCAL_PASSWORD3)
score LOCAL_MULTIPLE_PASS1 200
meta LOCAL_MULTIPLE_PASS2 (__LOCAL_PASSWORD2 && __LOCAL_PASSWORD3)
score LOCAL_MULTIPLE_PASS2 200
#to block or notify as spam if a word is present in an incoming email
body LOCAL_PASSWORD /\bpassword\b/i
score LOCAL_PASSWORD 35
describe NO_PASSWORD This rule informs the email recipient that email might be \
spam
#to block emails to certain email addresses
header LOCAL_DISTLIST ALL =~ /^(?:to|cc|):.*itstaff\@wab\.edu/im
describe LOCAL_DISTLIST sent from or to friend@public.com
score LOCAL_DISTLIST 500
Releasing mails from quarantine
Using amavis-release
The utility amavisd-release (amavisd-new-2.3.3 or later) tells the amavisd daemon to fetch a mail from a local quarantine, and send it to MTA through its regular channels ($notify_method), bypassing re-checking.
amavisd-release is included in the amavisd source tarball (which in turn is included in the source rpm), but unfortunately OpenPKG does not install it by default. To manually extract it do the following (this assumes your host distribution has ‘rpm’ installed, but OpenPKG-internal tools should work as well):
$ cp amavisd-.src.rpm /tmp
$ cd /tmp
$ rpm2cpio amavisd-.src.rpm | cpio -idmv
$ tar xzf amavisd-new-.tar.gz
$ cp amavisd-/amavisd-release /kolab/sbin/
$ chown kolab:kolab /kolab/sbin/amavisd-release
By default it connects to socket /var/amavis/amavisd.sock, on which amavisd should be listening for AM.PDP protocol, but one can use inet socket instead of a Unix socket if there is a need to run amavisd-release from a remote host.
In the amavisd.conf.template the following should be added:
# $unix_socketname = “$MYHOME/amavisd.sock”; # listen on Unix socket
$unix_socketname = “/kolab/var/amavisd/amavisd see this site.sock”; # listen on Unix socket
# alternatively (less common):
# $inet_socket_port = [10024, 9998]; # listen on listed inet tcp ports
# apply policy bank AM.PDP-SOCK on a Unix socket:
# (note that this precludes the use of old amavis-milter
# helper program (with sendmail) on the same socket)
$interface_policy{‘SOCK’} = ‘AM.PDP-SOCK’;
# apply policy bank AM.PDP-INET to some inet tcp socket, e.g. tcp port 9998:
$interface_policy{‘9998’} = ‘AM.PDP-INET’;
$policy_bank{‘AM.PDP-SOCK’} = {
protocol => ‘AM.PDP’, # select Amavis policy delegation protocol
auth_required_release => 0, # don’t require secret_id for amavisd-release
};
$policy_bank{‘AM.PDP-INET’} = {
protocol => ‘AM.PDP’, # select Amavis policy delegation protocol
inet_acl => [qw( 127.0.0.1 [::1] )], # restrict access to these IP addresses
# auth_required_release => 0, # don’t require secret_id for amavisd-release
};
Setting of $auth_required_release decides whether the requestor needs to specify secret_id in addition to mail_id to authorize a mail release. The secret_id is stored in SQL table msgs when logging to SQL is enabled, otherwise this information is not accessible.
Note that turning off $auth_required_release check is safe as long as access to the socket is restricted, like with file protections on a Unix socket, or restricted with inet_acl to specific IP addresses. Enabling or disabling $auth_required_release is a management / setup decision and convenience.
To release a mail message an exact quarantine location should be specified as an argument to amavisd-release, e.g.:
$ amavisd-release /kolab/var/amavisd/virusmails/spam-UM3XM3XDbN52.gz
The amavisd-release utility also accepts mail_id from STDIN if releasing more than one message in one go is more convenient:
$ amavisd-release –
/kolab/var/amavisd/virusmails/spam-UM3XM3XDbN52.gz
/kolab/var/amavisd/virusmails/spam-gnwKVFKiuey3.gz
/kolab/var/amavisd/virusmails/spam-Xpkj9mLLBHTR.gz
# allow local networks
header LOCAL_RCVD Received =~ /from.*\(.*\[10\.\d+\.\d+\.\d+\]\)/
describe LOCAL_RCVD Received from a local machine
score LOCAL_RCVD -5000
# allow local networks and specific email address
header LOCAL_RCVD Received =~ /from \S+\.example\.com\s+\(\S+\.example\.com\s+\[192\.168\..*\s+by\s+mandark\.labs\.example\.com/
describe LOCAL_RCVD Received from a local machine
score LOCAL_RCVD -50
#restart apache server on Apple
sudo /usr/sbin/apachectl restart
#restart amavis
sudo /bin/launchctl unload /System/Library/LaunchDaemons/org.amavis.amavisd.plist
sudo /bin/launchctl load /System/Library/LaunchDaemons/org.amavis.amavisd.plist
# postfix
sudo postfix reload
or if you want master to reload
sudo /bin/launchctl unload /System/Library/LaunchDaemons/org.postfix.master.plist
sudo /bin/launchctl load /System/Library/LaunchDaemons/org.postfix.master.plist
deprecated error level issues after installation of the dotproject site
Under PHP 5.x, assigning a return value by reference is the default behavior. Updating the php.ini file will not solve the problem as dotproject overrides the php.ini settings internally. To resolve this issue edit the base.php file. It is located in the root directory for dodproject. Find the line:
error_reporting(E_ALL & ~E_NOTICE);
replace it with
error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR_E_CORE_ERROR);
No need to restart.
also add these lines in index.php of your site and phpinfo.php to remove any existing deprecated errors being reported
error_reporting(E_ALL & !E_DEPRECATED);
error_reporting(E_ALL & ~E_DEPRECATED);
error_reporting(E_ALL ^ E_DEPRECATED);