Pages

Sunday, April 23, 2017

Openmeeting in CentOS


OpenMeetings is open source software which is used for presenting, online training, web conferencing, collaborative white board drawing and document editing and user desktop sharing. The product is developed a group of open source components, like (ImageMagick, GhostScript, SWFTools, JODConverter ,FFMpeg and OpenOffice or Libre Office) and main functionality on this product is OpenLaszlo RIA framework and Red5 media server.

## Install Required Packages..

yum install wget gcc-c++ unzip zlib-devel libjpeg-devel freetype-devel giflib-devel ghostscript ImageMagick sox libreoffice libreoffice-headless tomcat-native

## Install and Configure MyQL database to store data

yum install mysql-server

# mysql -u root -p
mysql> CREATE DATABASE openmeetings DEFAULT CHARACTER SET 'utf8';
mysql> CREATE USER 'openmeetings'@'localhost' IDENTIFIED BY 'openmeetings';
mysql> GRANT ALL PRIVILEGES ON openmeetings.* TO 'openmeetings'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit

## Install Swift Tools to support utilities for working with Adobe Flash files (SWF files)

# wget http://www.swftools.org/swftools-0.9.2.tar.gz
# tar -xzvf swftools-0.9.2.tar.gz
# cd swftools-0.9.2
# ./configure --libdir=/usr/lib --bindir=/usr/bin
# make
# make install
rm -f /usr/local/share/swftools/swfs/default_viewer.swf -o -L /usr/local/share/swftools/swfs/default_viewer.swf

## ##  Java Version checking and Update to 1.8 and also set home directory

 cd /opt
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz"
tar -zxvf jdk-8u121-linux-x64.tar.gz 
alternatives --install /usr/bin/java java /opt/jdk1.8.0_121/bin/java 2
alternatives --config java
java -version
alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_121/bin/jar 2
alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_121/bin/javac 2
alternatives --set jar /opt/jdk1.8.0_121/bin/jar
alternatives --set javac /opt/jdk1.8.0_121/bin/javac
java -version
export JAVA_HOME=/opt/jdk1.8.0_121
export JRE_HOME=/opt/jdk1.8.0_121/jre
vi /etc/bashrc 
printenv 


 ## Java MySQL connector

wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.41.tar.gz
tar -zxvf mysql-connector-java-5.1.41.tar.gz 

## Dowload openmeeting and put JAVA jar file to specific location

mkdir /openmeetings
cd /openmeetings
wget http://apache.petsads.us/openmeetings/3.0.2/bin/apache-openmeetings-3.0.2.tar.gz
tar -xzvf apache-openmeetings-3.0.2.tar.gz

cd /opt/mysql-connector-java-5.0.8
cp mysql-connector-java-5.0.8-bin.jar /openmeetings/webapps/openmeetings/WEB-INF/lib


## Install ffmpeg for audio video stream

cd /opt
wget http://ffmpeg.org/releases/ffmpeg-1.1.1.tar.gz
./configure --libdir=/usr/lib --bindir=/usr/bin --enable-libmp3lame --disable-yasm
make
make install

##  lame Installation for “LAME Ain’t an MP3 Encoder”

cd /opt
wget http://kaz.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
tar -xzvf lame-3.99.5.tar.gz
 ./configure --libdir=/usr/lib --bindir=/usr/bin
make
make install

## Connect with MySQL database 
cd /openmeetings/webapps/openmeetings/WEB-INF/classes/META-INF
cp persistence.xml persistence.xml.bk.live
cp mysql_persistence.xml persistence.xml

Assign your mysql username and its password to configuration file. Make your you need to add your database username and password instead of us.

# vi persistence.xml
                                        , Url=jdbc:mysql://localhost:3306/openmeetings?autoReconnect=true&useUnicode=true&createDatabaseIfNotExist=true&cha$
                                        , MaxActive=100
                                        , MaxWait=10000
                                        , TestOnBorrow=true
                                        , poolPreparedStatements=true
                                        , Username=openmeetings
                                        , Password=openmeetings" />

## Start Red5 server.
cd /openmeetings
./red5.sh

### Install script to start server Automatically...

vi /etc/init.d/red5 
########################
#vi /etc/init.d/red5
#!/bin/sh -e
#
# Startup script for Red5
export RED5_HOME=/openmeetings/
start_red5="$RED5_HOME/red5.sh"
stop_red5="$RED5_HOME/red5-shutdown.sh"

start() {
echo -n "Starting Red5: " 
${start_red5} &
echo "done."
}
stop() {
echo -n "Shutting down Red5: " 
${stop_red5}
echo "done."
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 10
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
esac
exit 0

##===================

chmod +x /etc/init.d/red5
service red5 stop
chkconfig red5 on
service red5 start


###### Complete installation from web browser...

 http://serverip:5080/openmeetings/install 

This is welcome page and this step Just follow the instruction carefully and click NEXT button.

Give username password email address for next time login.

Set everything default (if no specific requirement) and also no need to set application paths

 

############# Enjoy #################################################








Monday, April 17, 2017

control windows internet traffic by specific application


We can see which service/application using how much internet / intranet traffic and also can control windows those traffic by a software "NetLimiter". You can also see total report/statistics for an individual user.

Download NetLimiter https://www.netlimiter.com/releases/nl4/4-0-28-0
and install as usual way..


Open NetLimiter--

Click -> Stats -> to see total statistic

Click -> DL Limit and UL Limit -> to limit any specific applications Download and Upload Limit



Saturday, April 15, 2017

Zimbra Admin Panel Black not showing




IF zimbra Admin Panel not work/blank-page then check bellow three steps.

https://zimbra.tayabkhan.com:7071/zimbraAdmin/

1) check all services
su - zimbra
zmcontrol status

If any service stop, then up accordingly

2) Check https certificate (either date expired or not) from browser
if expired then


/opt/zimbra/bin/zmcertmgr createca -new

/opt/zimbra/bin/zmcertmgr createcrt -new -days 365

/opt/zimbra/bin/zmcertmgr deploycrt self

/opt/zimbra/bin/zmcertmgr deployca

----------------------

Also Check:
zmmailbox -z -m admin@tyabkhan.com gaf
zmprov fc all

zmprov ms `zmhostname` +zimbraServiceEnabled service
zmprov ms `zmhostname` +zimbraServiceEnabled zimbra
zmprov ms `zmhostname` +zimbraServiceEnabled zimbraAdmin
zmprov ms `zmhostname` +zimbraServiceEnabled zimlet
zmcontrol restart


3) Finally refresh /opt/zimbra/jetty/webapps/zimbraAdmin directory

Goto a new fresh same version Zimbra server and copy zimbraAdmin directory and past to faulty server.

cd /opt/zimbra/jetty/webapps/
tar -czvf zmadmin.tar.gz zimbraAdmin/
cp zmadmin.tar.gz and put faulty server and nutar by removing old directory

Saturday, April 1, 2017

MikroTik mac discovery / login disable


Go to Tools -> MAC Server
Click on the WinBox Interfaces Tab
By default this is set to all
You can add specific interfaces, and disable the all entry

OR using CLI, use the following command

/tool mac-server
add disabled=yes interface=all
/tool mac-server ping
set enabled=no

OR, can control by Firewall

/ip firewall filter
add action=drop chain=input comment="Block mikrotik discovery" disabled=no dst-port=5678 protocol=udp
add action=drop chain=input comment="DROP ALL WINBOX REQUEST By MAC Address" disabled=no dst-port=20561 protocol=udp
add action=drop chain=input comment="DROP ALL WINBOX REQUEST EXCEPT FROM MY PC" disabled=no dst-port=8291 protocol=tcp src-address=!192.168.2.6