installation openmeetings 3.x on centos 7

Upload: mario-escalante

Post on 02-Jun-2018

230 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    1/23

    Installation of Apache OpenMeetings 3.x.x

    on CentOS 7

    This tutorial it is bassed on a fresh installa- tion of

    CentOS-7.0-1406-x86_64-no!e"i#e.iso

    It is tested with positive result.We will use the Apache's binary version:

    OpenMeetings .!. stable

    that is to say should suppress his co"pilation.

    It is done step by step.

    #$-%-&!#

    (tarting...

    #)At first place "odify (elinu* level security for the installation.

    sudo gedit +etc+selinu*+config

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    2/23

    $ag 1

    ,"odify:

    (I/012enfo%cing

    ...to

    (I/012pe%!issi#e

    When finish the installation you can bac3 to enforcing level.

    &'

    --------- (p)ate Ope%ati#e S*ste! --------

    0pdate operative syste":

    yu" update -y

    ...and reboot for 3ernel changes:

    reboot

    3'

    Install gedit and wget 4both are already installed in the distro but...):

    sudo yu" -y install gedit wget

    4'

    ----------- A++ ,epos ------------

    $" / ,e!i

    wget http:++epel."irror.nucleus.be+beta+$+*5676+epel-release-$-#.noarch.rp"

    wget http:++rp"s.fa"illecollet.co"+enterprise+re"i-release-$.rp"

    sudo rp" -0vh re"i-release-$8.rp" epel-release-$8.rp"

    nable 9e"i:

    http://epel.mirror.nucleus.be/beta/7/x86_64/epel-release-7-1.noarch.rpmhttp://rpms.famillecollet.com/enterprise/remi-release-7.rpmhttp://rpms.famillecollet.com/enterprise/remi-release-7.rpmhttp://epel.mirror.nucleus.be/beta/7/x86_64/epel-release-7-1.noarch.rpm
  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    3/23

    $ag &

    gedit +etc+yu".repos.d+re"i.repo

    ...and "odify to:

    enabled2#

    l,epo

    rp" --i"port https:++www.elrepo.org+9M-;;-

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    4/23

    $ag 3

    6'

    -------- "i%eOffice or OpenOffice ------

    ibreOffice it is installed already in the distro. Dut if you use a different iso installation:

    yu" -y install libreoffice Is need it to convert upload files.

    7'

    -------- O%acle a#a 1.7 --------

    Oracle Eava #.$ it is necessary to OpenMeetings wor3s.

    OpenEava #.$ it is installed alreadyF but is not o3 for installing OpenMeeting.

    Ice)tea-e9that is a browser ava pluginF is already installed and can help for roo" recordingsand share des3top fro" Gonference 9oo" in OpenMeetings.

    WellF should install Oracle Eava #.$.

    lease visit:

    http:++www.oracle.co"+technetwor3+ava+avase+downloads+d3$-downloads-#55!&6!.ht"l

    ...clic on:

    Ag%ee an) p%occe)

    ...clic on:

    Accept "icense Ag%ee!ent

    ...and download the file called:

    :)-7267-lin2x-x64.%p!

    lace where the file was downloadedF for e*a"ple:

    cd +ho"e+you7user

    ...and install it:

    rp" -0vh d3-$u6$-linu*-*6.rp"

    update-alternatives --install +usr+bin+ava ava +usr+ava+d3#.$.!76$+re+bin+ava &!!!!

    update-alternatives --install +usr+bin+ar ar +usr+ava+d3#.$.!76$+bin+ar &!!!!

    http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    5/23

    $ag 4

    update-alternatives --install +usr+bin+avac avac +usr+ava+d3#.$.!76$+bin+avac &!!!!

    update-alternatives --install +usr+bin+avaws avaws +usr+ava+d3#.$.!76$+re+bin+avaws &!!!!

    ...now you "ust choose between OpenEava and Oracle Eava to wor3 with. Type the nu"ber & afterrun this co""and:

    update-alternatives --config ava

    ...so we select Oracle Eava.

    The ne*t co""ands will give only one option each. Then is not what to choose:

    update-alternatives --config avaws

    update-alternatives --config avac

    8'

    -------- Installation Ma%ia+; )ataase se%#e% --------

    MariaHD is the new database server.

    We install it:

    yu" install -y "ariadb "ariadb-server

    ...and starting "ariadb:

    syste"ctl start "ariadb.service

    ;ive a password to "ariadb root ad"in:

    "yslad"in -u root password ne-passo%)

    Ma3e a database for OpenMeetings:

    "ysl -u root -p

    ...will as3 for the root password we does ust now:

    G9AT HATADA( open!H@A0T GJA9AGT9 (T 'utf5'K

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    6/23

    $ag 5

    ...now do a new user with a new password:

    G9AT 0(9 'hola'L'localhost' IH/TI@IH D= '#&>6'K

    ...and give privileges to this user on the open! database:

    ;9A/T A 9II;( O/ open!.8 TO 'hola'L'localhost' WITJ ;9A/T OTIO/K

    @0(J 9II;(K

    uit

    open! ............. na"e of the database hola ............. user for that database

    #&>6 ............... password of that user

    To startF restart and stop "ariadb:

    syste"ctl start "ariadb.service

    syste"ctl restart "ariadb.service

    syste"ctl stop "ariadb.service

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    7/23

    $ag 6

    cd +opt

    wget http:++www.swftools.org+swftools-&!#-!-!%-#!!$.tar.gB

    tar *Bvf swftools-&!#-!-!%-#!!$.tar.gB

    cd +opt+swftools-&!#-!-!%-#!!$

    .+configure --libdir2+usr+lib --bindir2+usr+bin

    "a3e"a3e install

    cd +opt

    1&'

    --------Co!pile an) installation of ff!peg9 la!e9 *as! an) x&64--------

    To co"pile and install ff"pegF la"eF yas" and *&6F i "ade "y own "i*ture between thesetwo web pages:

    https:++trac.ff"peg.org+wi3i+Go"pilation;uide+Gentos

    http:++wi3i.raBuna.co"+display+ecp+@@MpegCInstallationConCGentO(CandC9edJat

    @f"peg will wor3 with the video.

    (tarting...

    lease copy and past as it isF do not any change.

    "3dir N+ff"peg7sources

    cd N+ff"peg7sources

    (hould install so"e pac3age and libraries: 4In only one line)

    yu" install -y glibc alsa-lib-devel faac faac-devel faad& faad&-devel gs" gs"-devel i"lib& i"lib&-devella"e-devel libogg libvorbis vorbis-tools Blibtheora theora-tools libvp*-devel

    @irst will download all the pac3ages we need to co"pile. In shell as root:

    http://www.swftools.org/swftools-2013-04-09-1007.tar.gzhttps://trac.ffmpeg.org/wiki/CompilationGuide/Centoshttp://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHathttp://www.swftools.org/swftools-2013-04-09-1007.tar.gzhttps://trac.ffmpeg.org/wiki/CompilationGuide/Centoshttp://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat
  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    8/23

    $ag 7

    curl - -O http:++downloads.sourceforge.net+proect+la"e+la"e+.%%+la"e-.%%.>.tar.gB

    git clone --depth # git:++git.code.sf.net+p+opencore-a"r+fd3-aac

    curl -O http:++downloads.*iph.org+releases+opus+opus-#.#.tar.gB

    wget http:++downloads.*vid.org+downloads+*vidcore-#..&.tar.gB

    wget http:++downloads.*iph.org+releases+ogg+libogg-#..#.tar.gB

    wget http:++downloads.*iph.org+releases+vorbis+libvorbis-#...tar.gB

    wget http:++downloads.*iph.org+releases+theora+libtheora-#.#.#.tar.gB

    wget http:++www.tortall.net+proects+yas"+releases+yas"-#.&.!.tar.gB

    git clone http:++git.chro"iu".org+web"+libvp*.git

    git clone git:++git.videolan.org+*&6.git

    git clone git:++source.ff"peg.org+ff"peg.git

    ...once all these pac3ages-files are downloaded start the co"pilation...please be connected Internet.

    1' ---- li!p3la!e ----

    cd N+ff"peg7sources

    tar *Bvf la"e-.%%.>.tar.gB

    cd la"e-.%%.>

    4In only one line)

    .+configure --prefi*2PJOM+ff"peg7build --bindir2PJOM+bin --disable-shared --enable-nas"

    "a3e

    "a3e install

    "a3e distclean

    &' ---- lif)_aac ----

    http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gzhttp://downloads.xiph.org/releases/opus/opus-1.1.tar.gzhttp://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gzhttp://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gzhttp://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gzhttp://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gzhttp://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gzhttp://git.chromium.org/webm/libvpx.githttp://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gzhttp://downloads.xiph.org/releases/opus/opus-1.1.tar.gzhttp://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gzhttp://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gzhttp://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gzhttp://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gzhttp://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gzhttp://git.chromium.org/webm/libvpx.git
  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    9/23

    $ag 8

    cd N+ff"peg7sources

    cd fd3-aac

    autoreconf -fiv

    .+configure --prefi*2PJOM+ff"peg7build --disable-shared

    "a3e

    "a3e install

    "a3e distclean

    3' ---- liop2s ----

    cd N+ff"peg7sources

    tar *Bvf opus-#.#.tar.gB

    cd opus-#.#

    .+configure --prefi*2PJOM+ff"peg7build --disable-shared

    "a3e

    "a3e install

    "a3e distclean

    4' ---- Install x#i) ----

    cd N+ff"peg7sources

    tar *Bvf *vidcore-#..&.tar.gB

    cd *vidcore+build+generic

    .+configure --prefi*2PJOM+ff"peg7build

    "a3e

    "a3e install

    5' ---- Install "iOgg ----

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    10/23

    $ag .#.&.ar

    cp "ysl-connector-ava->.#.&.ar +opt+red>!+webapps+open"eetings+WD-I/@+lib

    and do to noo)*owner of OpenMeetings:

    chown -9 nobody +opt+red>!

    16'

    -------- Config2%ation of OpenMeetings fo% Ma%ia+; --------

    Will configure OpenMeetings to connect with MariaHD:

    cd +opt+red>!+webapps+open"eetings+WD-I/@+classes+MTA-I/@

    "v persistence.*"l persistence.*"l-ori

    "v "ysl7persistence.*"l persistence.*"l

    cd +opt

    sudo gedit +opt+red>!+webapps+open"eetings+WD-I/@+classes+MTA-I/@+persistence.*"l

    ...and "odify line 5#:

    0rl2dbc:"ysl:++localhost:!6+open"eetingsS.......

    to

    0rl2dbc:"ysl:++localhost:!6+open!S....

    ...open! is the database na"e we gives when install MariaHD and build it.

    Modify also lines 86and 87respectively:

    http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.32/mysql-connector-java-5.1.32.jarhttp://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.32/mysql-connector-java-5.1.32.jarhttp://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.32/mysql-connector-java-5.1.32.jarhttp://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.32/mysql-connector-java-5.1.32.jar
  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    15/23

    $ag 14

    F 0serna"e2rootF assword2 +Q

    ...to

    F 0serna"e2holaF assword2#&>6 +Q

    ...holais the user na"e we gives when install MariaHD for open303database.

    ... #&>6is the password for holauser.

    If you choose any other database na"eF user na"e or password here is where to change.

    rotect the access to this file:

    ch"od 6! +opt+red>!+webapps+open"eetings+WD-I/@+classes+MTA-I/@+persistence.*"l

    17'

    ---- Sc%ipt to la2nch %e)5-OpenMeetings ----

    Duild a script to start and stop red>-OpenMeetingsF that weRll call %e)5

    sudo gedit +etc+init.d+red>

    ...copy and past the te*t fro" here:

    ??+bin+sh -e

    ?? (tartup script for 9ed>e*port 9H>7JOM2+opt+red>!start7red>2P9H>7JOM+red>.sh startstop7red>2P9H>7JOM+red>-shutdown.sh stopstart4) U echo -n (tarting 9ed>: PUstart7red>V

    echo done.Vstop4) U

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    16/23

    $ag 15

    echo -n (hutting down 9ed>: PUstop7red>V echo done.V

    case P# in start) start KK stop) stop KK restart) stop sleep #!

    start KK 8) echo 0sage: P! UstartXstopXrestartVesace*it !

    ...to here.

    If you "ade the installation in any other pathF can "odify the line:

    9H>7JOM2+opt+red>!

    ...to

    9H>7JOM2+your-installation-path

    ;ive per"ission of e*ecution to the script:

    ch"od C* +etc+init.d+red>

    18'

    9estart "ariadb:

    syste"ctl restart "ariadb.service

    ...and start red>-OpenMeetings:

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    17/23

    $ag 16

    +etc+init.d+red> start

    ...wait so"es longs seconds and later go with browser to:

    http:++localhost:>!5!+open"eetings+install

    ...there will have to appear a page si"ilar to this one:

    ..clic3 extbuttonin the foot page and this other page will appear:

    http://localhost:5080/openmeetings/installhttp://localhost:5080/openmeetings/install
  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    18/23

    $ag 17

    ...here we have to introduce necessarylyF to be able to continueF the following:

    0serna"e 2 a-na!e...This user na"e will have ad"inistrator rights.

    0serpass 2 a-passo%),.for the previous user

    Mail 2 e!ail-a)%ess...of the previous user.

    0ser Ti"e Yone 2 (elect your geographyc situation

    /a"e 2 exa!ple-open!eetings ...group na"e to choose

    After finish the co"plet installation weRll configure the rest.

    ...clic3 "ast and this other page will appear:

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    19/23

    $ag 18

    ,clic3 inishand will start to fill the database tables:

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    20/23

    $ag 1!5!+open"eetings

    9e"e"ber open in the server these three ports:

    1

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    22/23

    $ag &1

    ...introduce the path for files conversionF audio and video:

    Glic3 on: sftools_path ...and to up right in al2etype: +usr+bin

    Glic3 on: i!age!agic_path ...and to up right in al2etype: +usr+bin

    Glic3 on: sox_path ...and to up right in al2etype: +usr+bin

    Glic3 on: ff!peg_path ...and to up right in al2etype: +usr+local+bin

    Glic3 on: office.path ...and to up right in al2etype: +usr+lib6+libreoffice

    Glic3 on: :o).path ...and to up right in al2etype: +opt+odconverter-core-.!-beta-+lib

    9e"e"ber to do the nu"ber on picture to save each change.

    To stop red>-OpenMeetings: +etc+init.d+red> stop

    lash $la*e%it was installed in the beginning. OpenMeetings even need it for roo"s.

    And that is all.

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

  • 8/10/2019 Installation OpenMeetings 3.x on Centos 7

    23/23

    If you have so"e doubt or uestionF please e*pose it in Apache OpenMeetings foru"s:

    http:++open"eetings.apache.org+"ail-lists.ht"l

    Than3 you

    Alvaro Dustos

    http://openmeetings.apache.org/mail-lists.htmlhttp://openmeetings.apache.org/mail-lists.html