Ubuntu12.04搭建BigBlueButton
1.原地址
http://code.google.com/p/bigbluebutton/wiki/InstallationUbuntu
1.换源
$sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
$sudo vim /etc/apt/sources.list
deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
$sudo rm -rf /var/lib/apt/lists/*
$sudo apt-get update
2.设置语言
$sudo apt-get install language-pack-en
$sudo update-locale LANG=en_US.UTF-8
$ cat /etc/default/locale
LANG="en_US.UTF-8
3.获取密钥,添加源
$wget http://ubuntu.bigbluebutton.org/bigbluebutton.asc -O- | sudo apt-key add - $sudo vim /etc/apt/sources.list
加入
deb http://ubuntu.bigbluebutton.org/lucid_dev_081/ bigbluebutton-lucid main deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
更新
$sudo apt-get update $sudo apt-get dist-upgrade
4.安装liboffice
$wget http://bigbluebutton.googlecode.com/files/openoffice.org_1.0.4_all.deb $sudo dpkg -i openoffice.org_1.0.4_all.deb $sudo apt-get install python-software-properties $sudo apt-add-repository ppa:libreoffice/libreoffice-4-0 $sudo apt-get update $sudo apt-get install libreoffice-common $sudo apt-get install libreoffice
5.安装ruby
下载地址
先apt-get安装,再卸载,再dpkg安装
$sudo apt-get install ruby
$sudo aptitude purge ruby
$sudo dpkg -i ruby1.9.2_1.9.2-p290-1_amd64.deb
再执行:
$sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.2 500 \
--slave /usr/bin/ri ri /usr/bin/ri1.9.2 \
--slave /usr/bin/irb irb /usr/bin/irb1.9.2 \
--slave /usr/bin/erb erb /usr/bin/erb1.9.2 \
--slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.2
$sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.2 500
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553)
$ gem -v
1.3.7
PS:安装时候会报错,安装缺少组件
PS:安装libffi5
添加源
deb http://cz.archive.ubuntu.com/ubuntu lucid main
$sudoapt-get update
$sudoapt-get -f install
$sudoapt-get install libffi5
再执行
$ sudo gem install hello Successfully installed hello-0.0.1 1 gem installed Installing ri documentation for hello-0.0.1... Installing RDoc documentation for hello-0.0.1...
6.安装ffmpeg
$sudo vim install-ffmpeg.sh
sudo apt-get install build-essential git-core checkinstall yasm texi2html libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev pkg-config
LIBVPX_VERSION=1.2.0
FFMPEG_VERSION=2.0.1
if [ ! -d "/usr/local/src/libvpx-${LIBVPX_VERSION}" ]; then
cd /usr/local/src
sudo git clone http://git.chromium.org/webm/libvpx.git "libvpx-${LIBVPX_VERSION}"
cd "libvpx-${LIBVPX_VERSION}"
sudo git checkout "v${LIBVPX_VERSION}"
sudo ./configure
sudo make
sudo checkinstall --pkgname=libvpx --pkgversion="${LIBVPX_VERSION}" --backup=no --deldoc=yes --default
fi
if [ ! -d "/usr/local/src/ffmpeg-${FFMPEG_VERSION}" ]; then
cd /usr/local/src
sudo wget "http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2"
sudo tar -xjf "ffmpeg-${FFMPEG_VERSION}.tar.bz2"
cd "ffmpeg-${FFMPEG_VERSION}"
sudo ./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx
sudo make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:${FFMPEG_VERSION}" --backup=no --deldoc=yes --default
fi
$chmod+x install-ffmpeg.sh
$./install-ffmpeg.sh
$ ffmpeg -version
ffmpeg version 2.0.1
built on Sep 1 2013 02:02:28 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
configuration: --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
7.安装BigBlueButton
$sudo apt-get install bigbluebutton
安装完后会提示......Error: FreeSWITCH didn't start
暂时忽略
8.不知道为啥要这样,只知道如果不这样,会出很多问题,例如500错误,无法上传演示文档等
$sudo apt-get install bbb-*
可能会报错:
E: Sub-process/usr/bin/dpkg returned an error code (1)
解决方法:
$sudomv /var/lib/dpkg/info /var/lib/dpkg/info.bak
$sudomkdir /var/lib/dpkg/info
$sudoapt-get install libssl0.9.8
$sudo apt-get install bbb-*
$sudomv /var/lib/dpkg/info/* /var/lib/dpkg/info.bak/
$sudorm -rf /var/lib/dpkg/info/
$sudomv /var/lib/dpkg/info.bak /var/lib/dpkg/info
$sudo bbb-conf--conference freeswitch7.重启
$sudo bbb-conf –clean
$sudo bbb-conf –check
8.升级:
$sudo apt-get remove bbb-freeswitch
$sudo apt-get install bigbluebutton
$sudo bbb-conf --clean
$sudo bbb-conf --check
PS:解决中文乱码
win的字体存放在c:\windows\fonts目录下,我们把喜爱的字体拷贝出来,比如simsun.ttc、simkai.ttf、simhei.ttf、simfang.ttf等。把这些字体文件拷贝到Ubuntu的/usr/share/fonts/xpfonts目录下。
注:如果你发现在/usr/share/fonts/下不能创建新的文件夹,那么请用root用户登录。
导入字体
打开“终端”运行以下命令行,建立字体缓存信息:
sudomkfontscale
sudomkfontdir
sudofc-cache -fv

浙公网安备 33010602011771号