这个方法在我的raspbian上安装不成功!!!
先前记得freeswitch是免费的,安装应该很方便,但今天一弄,有点复杂,记一下
fusionpbx有一个安装脚本,我的操作是基于这个脚本的,大家可以下载下来看看。因为我的pi配置太低,所下想先单独安装freeswitch测试一下,所以没有使用安装脚本进行安装。
sudo git clone https://github.com/fusionpbx/fusionpbx-install.sh.git
先看看freeswitch.org安装说明
TOKEN=YOURSIGNALWIRETOKEN
apt-get update && apt-get
install
-y gnupg2 wget lsb-release
wget --http-user=signalwire --http-password=$TOKEN -O - https:
//freeswitch
.signalwire.com
/repo/deb/rpi/debian-release/freeswitch_archive_g0
.pub | apt-key add -
# This is universal for all Debian distros
# `lsb_release -sc` returns buster or stretch
echo
"deb https://freeswitch.signalwire.com/repo/deb/rpi/debian-release/ `lsb_release -sc` main"
>
/etc/apt/sources
.list.d
/freeswitch
.list
echo
"deb-src https://freeswitch.signalwire.com/repo/deb/rpi/debian-release/ `lsb_release -sc` main"
>>
/etc/apt/sources
.list.d
/freeswitch
.list
# you may want to populate /etc/freeswitch at this point.
# if /etc/freeswitch does not exist, the standard vanilla configuration is deployed
apt-get update && apt-get
install
-y freeswitch-meta-all
因为我的raspbian是基于debian 11,所以这里有两个问题
1:用户名和token要用你自己的,所以你要在https://signalwire.com/freeswitch注册一个账号,然后生成一个token,这个token只出现一次,所以你要记好。
要把token和http-usr换成你自己的。如果你不是debian 11,应该用这种方法没有问题,可以继续安装了。
2:因为的我raspbian是基于debian 11的,这里使用apt-key add的方法已经不行了,需要使用下面的方法
要把token和http-usr换成你自己的。如果你不是debian 11,应该用这种方法没有问题,可以继续安装了。
2:因为的我raspbian是基于debian 11的,这里使用apt-key add的方法已经不行了,需要使用下面的方法
a.下载signalwire的gpg文件存放到/usr/share/keyrings
token="your_token_here"
sudo wget --http-user=silentxo --http-password=$token -O /usr/share/keyrings/signalwire-freeswitch-repo.gpg
https://freeswitch.signalwire.com/repo/deb/rpi/debian-release/signalwire-freeswitch-repo.gpg
b.在/etc/apt/auth.conf.d/下面生成一个保存有用户名和token的验证登录文件,文件内容如下
machine freeswitch.signalwire.com login signalwire password "your_token"
c.使用sudo apt update,会出现
The following signatures couldn't be verified because the public key is not available:
NO_PUBKEY 36B4249FA7B0FB03
d.执行验证导入sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36B4249FA7B0FB03
经过上述的操作,可能安装了
sudo apt install freeswitch-meta-all,需要安装382个包,使用954M的磁盘空间。
先进行安装,后续更新
此方法安装完毕,freeswitch启动出现指令错误的提示,无法运行
错误的原因如下:
Setting up ca-certificates-java (20190909) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
Error occurred during initialization of VM
Server VM is only supported on ARMv7+ VFP
dpkg: error processing package ca-certificates-java (--configure):
installed ca-certificates-java package post-installation script subprocess returned error exit status 1
删除原安装,使用编译安装,痛苦的过程。
没有评论:
发表评论