Skip to content

Instantly share code, notes, and snippets.

@amanjuman
Last active June 20, 2024 08:01
Show Gist options
  • Save amanjuman/d3703ec1c8bf6a5d9fe286d4a0620698 to your computer and use it in GitHub Desktop.
Save amanjuman/d3703ec1c8bf6a5d9fe286d4a0620698 to your computer and use it in GitHub Desktop.
Install 3CX on Debian 12 Bookworm

Install the dependencies:

apt update && apt install sudo wget gnupg gnupg2 dphys-swapfile -y

Verify the PGP Key

wget -O- https://repo.3cx.com/key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/3cx-archive-keyring.gpg >> /dev/null

Adding stable source

echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main" | tee /etc/apt/sources.list.d/3cxpbx.list

Add beta mirror source (can be skipped)

echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm-testing main" | tee /etc/apt/sources.list.d/3cxpbx.list

Repo Update

sudo apt update -y && sudo apt-get upgrade -y --with-new-pkgs  && sudo apt dist-upgrade -y && sudo apt autoremove -y

Install 3CX

sudo apt install 3cxpbx -y

Check available version to install

sudo apt-cache policy 3cxpbx

Install Specific Version

sudo apt-get install 3cxpbx=xx.x.xxxx

Clean if there existing install

sudo /usr/sbin/3CXWizard --cleanup

Install SBC

sudo apt install 3cxsbc -y

One Click Auto Install

wget -O /tmp/post-install http://downloads-global.3cx.com/downloads/debian12iso/post-install_12.1.0_46a7ea2.txt; chmod +x /tmp/post-install; bash /tmp/post-install
bash /usr/local/bin/post-install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment