Ubuntu18.04にOpenMeetingsをインストールする


```shell;
sudo apt update
sudo apt upgrade -y
```

```shell;openjdk-11-jdkのインストール
sudo apt install -y openjdk-11-jdk openjdk-11-jdk-headless
```
```shell;libreoffice
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt update
sudo apt install -y libreoffice
```

```shell;imagemagick
sudo apt install -y imagemagick libjpeg62 zlib1g-dev
```

```shell
sudo sed -ie 's/<policy domain="coder" rights="none" pattern="PS" \/>/<!-- <policy domain="coder" rights="none" pattern="PS" \/> -->/g' /etc/ImageMagick-6/policy.xml
sudo sed -ie 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<!-- <policy domain="coder" rights="none" pattern="PDF" \/> -->/g' /etc/ImageMagick-6/policy.xml
```

```shell
sudo apt install -y sox
```

```shell
sudo apt install -y autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev nasm libx264-dev cmake mercurial libopus-dev curl git vlc unzip make build-essential nmap
```

```shell;ffmpeg
sudo apt install -y ffmpeg
```

```shell;mariadb
sudo apt install -y mariadb-server
sudo /etc/init.d/mysql start
sudo mysqladmin -u root password new-password
```
```sql
sudo mysql -u root -p
CREATE DATABASE open504 DEFAULT CHARACTER SET 'utf8';
GRANT ALL PRIVILEGES ON open504.* TO 'hola'@'localhost' IDENTIFIED BY '1a2B3c4D' WITH GRANT OPTION;
quit
```

```sh;kurento-dev.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83
sudo echo deb [arch=amd64] http://ubuntu.openvidu.io/6.10.0 bionic kms6 | sudo tee  /etc/apt/sources.list.d/kurento-dev.list
sudo echo deb [arch=amd64] http://mirror.yandex.ru/ubuntu/ bionic main restricted | sudo tee -a /etc/apt/sources.list.d/kurento-dev.list
sudo echo deb [arch=amd64] http://mirror.yandex.ru/ubuntu/ bionic universe | sudo tee -a /etc/apt/sources.list.d/kurento-dev.list
```

```sh
sudo apt update
sudo apt install -y kurento-media-server
sudo /etc/init.d/kurento-media-server start
```

```shell;kurento-media-server
sudo sed -ie 's/^DAEMON_USER="kurento"/DAEMON_USER="nobody"/g' /etc/default/kurento-media-server
```

```sh
cd ~/

curl -skO https://ftp.riken.jp/net/apache/openmeetings/5.0.0-M4/bin/apache-openmeetings-5.0.0-M4.tar.gz
tar zxvf apache-openmeetings-5.0.0-M4.tar.gz 
sudo mv apache-openmeetings-5.0.0-M4 /opt/open504
sudo mkdir -p /opt/open504/webapps/openmeetings/data/streams/{1,2,3,4,5,6,7,8,9,10,11,12,13,14}
sudo mkdir -p /opt/open504/webapps/openmeetings/data/streams/hibernate
sudo chmod -R 750 /opt/open504/webapps/openmeetings/data/streams
sudo chown -R nobody /opt/open504

curl -skO https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.19/mysql-connector-java-8.0.19.jar
sudo mv ~/mysql-connector-java-8.0.19.jar /opt/open504/webapps/openmeetings/WEB-INF/lib/

curl -skO https://cwiki.apache.org/confluence/download/attachments/27838216/tomcat3
sudo mv tomcat3 /etc/init.d/
sudo chmod +x /etc/init.d/tomcat3
sudo /etc/init.d/mysql start
sudo /etc/init.d/tomcat3 start
```
![om01.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/fa246a22-3d8c-0759-574d-ae6903c08669.png)
![om02.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/8c635cba-0100-fd20-ec3b-8e8a570872a1.png)
![om03.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/99008cb1-7033-ac3a-b815-472b14989994.png)
![om04.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/186044fa-af19-a42b-b4a2-dfeff2397828.png)
![om05.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/eb3062f9-6572-e645-3fc9-395257ef5ed3.png)
![om06.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/176209d8-6c6e-60ee-b9a1-95c6ce9f6886.png)
![om14.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/e747bd4b-8945-4ca0-2e03-cb5dbfd9b6f1.png)
![om08.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/5f62d6c3-22dc-4a08-0f91-18c111692dbb.png)
![om09.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/0a66b713-d226-4864-45e9-d3e54accfd15.png)
![om10.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/05d104c6-dbcb-d75d-dd92-eed52207a3d9.png)
![om11.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/7c60fda3-1d44-cf1d-c665-ad7614f56c9a.png)
![om12.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/c0ad17c4-841e-3e99-9da9-72dcb0350cec.png)
![om13.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/122908/1b60a2db-f2da-660b-eeb5-45764213f0ed.png)

```shell
sudo /etc/init.d/tomcat3 restart
```