Installing Raspbian Linux on Raspberry Pi
On this topic
Starting with v16, you can install 3CX on the latest Raspberry Pi, model 3B+. The latest version of 3CX can be installed on Raspbian Stretch, the Debian Linux distribution for the Raspberry Pi’s ARM architecture. Useful OS management functions can be performed from within the 3CX web management console or the Linux Command Line Interface (CLI) for advanced users.
Prepare the SD card with Raspbian
To install Raspbian on a micro-SD card:
- Download the Raspbian Stretch Lite image from here.
- Extract the image (.img) file from the downloaded archive.
- Burn the Raspbian Stretch Lite image file via Etcher or Win32 Disk Imager.
- Insert the written SD card in the Raspberry Pi memory card slot and power the device to boot.
- Wait for the boot process to complete and login with the default user “pi” and password “raspberry”.
- Change the default password for the “pi” user with the “passwd” command. You need to enter the old password and then specify twice the new password for the change to occur.
Note: Raspbian Linux requires the use of the “sudo” command to enable authorized users perform administrative tasks. For example, to check the package repositories for updates you need to issue the command “sudo apt update”. Issuing “apt update” without “sudo” prepended, results to denied permission for the command.
To set the device hostname for the Pi:
- Run the Raspbian configuration utility with the command:
- Select “2. Network Options” and press the <Enter> key.
- Select “N1 Hostname”, press the <Enter> key and then “OK” on the warning dialog.
- Enter the Pi's hostname using only alphanumeric characters and dashes (“-”).
- Select <Finish> and then <Yes> to reboot and apply the hostname configuration.
- When the Pi boots again, login with “pi” user and verify the Pi's hostname with the command:
Set a static IP
To set a static IP address for the Pi:
- Edit the “/etc/dhcpcd.conf” file to configure the “eth0” interface with the nano editor:
- Scroll to the end of the file and add the following lines, making sure to replace the values for “ip_address”, “routers” (gateway) and “domain_name_servers” based on your LAN settings:
interface eth0 static ip_address=192.168.1.111/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1 126.96.36.199
static domain_name_servers=192.168.1.1 188.8.131.52
- Press the “Ctrl” + “x” key combination, then “y” and <Enter> to confirm writing changes to the file.
- Reboot the Pi using:
- When the Pi boots again, login with “pi” user and verify “eth0” IP address with the command:
To setup “3CX Session Border Controller (SBC)” follow this guide to install and configure the SBC.