bigbluebutton 自动安装脚本, 文档乱码

复制windows字体到bigbluebutton文档转换服务器的指定目录解决文件转化乱码问题
C:\Windows\Fonts\* -> /usr/share/fonts/windows

#!/bin/sh
#
# ubuntu-14.04.1-server-amd64
#

# Step 1: Update your server
#echo "deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse" | tee -a /etc/apt/sources.list
apt-get update
apt-get dist-upgrade

# Step 2: Install key for BigBlueButton
wget http://ubuntu.bigbluebutton.org/bigbluebutton.asc -O- | apt-key add -
echo "deb http://ubuntu.bigbluebutton.org/trusty-090/ bigbluebutton-trusty main" | tee /etc/apt/sources.list.d/bigbluebutton.list
apt-get update

# Step 3: Install ffmpeg
apt-get install build-essential git-core checkinstall yasm texi2html libvorbis-dev libx11-dev libvpx-dev libxfixes-dev zlib1g-dev pkg-config netcat
FFMPEG_VERSION=2.3.3
cd /usr/local/src
if [ ! -d "/usr/local/src/ffmpeg-${FFMPEG_VERSION}" ]; then
  wget "http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2"
  tar -xjf "ffmpeg-${FFMPEG_VERSION}.tar.bz2"
fi
cd "ffmpeg-${FFMPEG_VERSION}"
./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx
make
checkinstall --pkgname=ffmpeg --pkgversion="5:${FFMPEG_VERSION}" --backup=no --deldoc=yes --default
ffmpeg -version

# Step 4: Install BigBlueButton
apt-get update
apt-get install bigbluebutton

# Step 5: Install API Demos
apt-get install bbb-demo

# Step 6: Enable WebRTC audio
bbb-conf --enablewebrtc

# Step 7: Do a Clean Restart
bbb-conf --clean
bbb-conf --check

iptables 端口转发

物理机:
Wan : xxx.xxx.xxx.xxx
Lan : 192.168.122.1

虚拟机:
Lan : 192.168.122.2

物理机 iptables :

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2222 -j DNAT --to-destination 192.168.122.2:22
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.122.2
iptables -t nat -A POSTROUTING -d 192.168.122.2 -p tcp -j SNAT --to-source 192.168.122.1

Nginx 试用 HTTPS

一、#openssl req -new -nodes -keyout server.key -out server.csr

二、用 server.csr 去申请 SSL 证书(免费的SSL证书服务商http://www.startssl.com)

三、将SSL证书服务商提供的密文保存至 server.crt

四、将 server.key 和 server.crt 文件上传至 nginx/conf 目录

五、配置 nginx 配置文件

a)强制从 HTTP 跳转至 HTTPS

    server {
        listen       80;
        server_name  ssl.nt00.com;
        rewrite ^/(.*)$ https://ssl.nt00.com/$1;
    }

b)配置 HTTPS

    server {
        listen       443;
        server_name  ssl.nt00.com;
        root   /www/ssl.nt00.com;

        ssl                  on;
        ssl_certificate      server.crt;
        ssl_certificate_key  server.key;

        ssl_session_timeout  5m;

        ssl_protocols  SSLv2 SSLv3 TLSv1;
        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers   on;

        location / {
            index  index.html index.php;
        }
        location ~ \.php($|/) {
            fastcgi_pass            unix:/tmp/php-fpm.socket;
            fastcgi_split_path_info ^(.+\.php)(.*)$;
            include                 fastcgi.conf;
        }
    }