在 Debian 10 Buster 上使用命令行安装 3CX(技术预览版)

3CX 最新的技术预览版已经支持在 Debian 10 Buster 上运行了。具体详情可以参考我们的文档:3CX 发布了 Debian Buster 的技术预览版

由于目前 3CX 只提供了 ISO 的下载链接,那么我们今天来分享一下在原生 Debian 10 Buster 上安装 3CX 的方法吧。

Debian 10 Buster 镜像

由于 3CX 提供的 ISO 文件,在国内访问不太好,安装需要很长时间。所以我们推荐使用官方镜像,这样在安装的时候可以选择国内镜像源。

目前 Debian 10 Buster 的镜像还推出了一个 Standard 的版本,即完全可以不需要网络完成基础系统的安装(安装激活 3CX 还是需要网络哒)。对于国内用户是个非常好的消息。

我们推荐在国内的镜像源下载 debian 10 buster 的 standard 版本。

这里就不放出具体链接了,因为 debian 版本更新后可能就下不到老版本的 ISO 了。例如目前版本是 10.4,镜像源下不到 10.3 的 ISO。

教大家下载 standard 版本的方法:点击下方给出的任一链接,选择以 Standard.iso 结尾的文件下载即可(同时注意一下文件大小,不要选错)。

注意:另外需要注意,standard 版本安装好是不带 openssh server 的,需要在服务器上安装 ssh 后才可以远程通过 SSH 访问。

安装 3CX

安装好 Debian 10 以后我们就可以安装 3CX 了。输入以下命令安装(非root用户):

$ apt-get -y install gnupg2 ca-certificates mc htop openssh-server net-tools 
$ wget -O- http://downloads.3cx.com/downloads/3cxpbx/public.key | apt-key add -
​$ echo "deb http://downloads-global.3cx.com/downloads/debian buster main" | sudo tee /etc/apt/sources.list.d/3cxpbx.list
​$ echo "deb http://downloads-global.3cx.com/downloads/debian buster-testing main" | sudo tee /etc/apt/sources.list.d/3cxpbx-testing.list
​$ apt update
$ apt -t testing install 3cxpbx

出现上图页面后按 1 即可打开浏览器进入 3CX 向导阶段,后面的配置请查看:运行3CX PBX配置工具