Archive:FreePBX Distribution: Difference between revisions
→Configuring the FreePBX installation: Added time server setup, network configuration, password warning and completing the installation sections, made buttons to click bold. |
Removed unneeded information, preparing to complete article |
||
Line 1: | Line 1: | ||
FreeBPX Distribution is a fully fledged VoIP server allowing complete customisation to your needs and works with most setups. It is an appliance, with a complete Linux setup and web manager to allow easy administration. | FreeBPX Distribution is a fully fledged VoIP server allowing complete customisation to your needs and works with most setups. It is an appliance, with a complete Linux setup and web manager to allow easy administration. | ||
We have implemented FreePBX 15 (SNG7-PBX-64bit-2011-5) and Asterisk 17. This is the latest version of Asterisk and is a LTS release so will be supported well into the future with fixes (slated to be supported until 2024). This is a complete distribution and so needs to be installed on | We have implemented FreePBX 15 (SNG7-PBX-64bit-2011-5) and Asterisk 17. This is the latest version of Asterisk and is a LTS release so will be supported well into the future with fixes (slated to be supported until 2024). This is a complete distribution and so needs to be installed on its own machine. We will be setting this up on a separate virtual machine rather than the main server. | ||
== Prerequisites == | == Prerequisites == | ||
Line 29: | Line 29: | ||
# We will configure the time servers to use ones closer to us in the UK. Click the cog icon next to the 'On' switch. | # We will configure the time servers to use ones closer to us in the UK. Click the cog icon next to the 'On' switch. | ||
# We will change the CentOS NTP servers to UK servers. Double click on each address and change the <code>centos</code> to <code>uk</code>. For example, change <code>0.centos.pool.ntp.org</code> to <code>0.uk.pool.ntp.org</code>. Do this for servers 0-3. | # We will change the CentOS NTP servers to UK servers. Double click on each address and change the <code>centos</code> to <code>uk</code>. For example, change <code>0.centos.pool.ntp.org</code> to <code>0.uk.pool.ntp.org</code>. Do this for servers 0-3. | ||
# We will add the main server IP address as a source too. This is typed in the box and then click '+'. | # We will add the main server IP address as a source too. This is typed in the top box and then click '+'. | ||
# Click 'OK' | # Click 'OK'. | ||
# Click 'Done' | # Click 'Done'. | ||
=== Setting the keyboard layout === | === Setting the keyboard layout === | ||
Line 50: | Line 50: | ||
# Tick 'English (United Kingdom). | # Tick 'English (United Kingdom). | ||
#* Unfortunately, we cannot unselect 'English (United States)'. | #* Unfortunately, we cannot unselect 'English (United States)'. | ||
# Click 'Done' | # Click 'Done'. | ||
=== Setting the hard drive partitioning === | === Setting the hard drive partitioning === | ||
Line 72: | Line 72: | ||
# Click '''KDUMP'''. | # Click '''KDUMP'''. | ||
# Untick the 'Enable kdump' box. | # Untick the 'Enable kdump' box. | ||
# Click 'Done' | # Click 'Done'. | ||
=== Setting the network hostname === | === Setting the network hostname === | ||
Line 79: | Line 79: | ||
# Click '''NETWORK AND HOSTNAME'''. | # Click '''NETWORK AND HOSTNAME'''. | ||
# In the hostname box, replace 'freepbx.sangoma.local' to the hostname of your network | # In the hostname box, replace 'freepbx.sangoma.local' to the hostname of your network (for example freepbx.freddythechick.net). | ||
# Click 'Apply' | # Click 'Apply'. | ||
# Click 'Done' | # Click 'Done'. | ||
=== Starting the installation === | === Starting the installation === | ||
Line 104: | Line 104: | ||
You will now be back at the installation screen - grab a cup of coffee and wait for the installation to finish. | You will now be back at the installation screen - grab a cup of coffee and wait for the installation to finish. | ||
Once the installation is finished, it will say 'SangomaOS 7.8 is now successfully installed and ready to use! Go ahead and reboot to start using it!'. Click the 'Reboot' button and the machine will reboot to the FreePBX terminal. | Once the installation is finished, it will say 'SangomaOS 7.8 is now successfully installed and ready to use! Go ahead and reboot to start using it!'. Click the 'Reboot' button and the machine will reboot to the FreePBX terminal. Remember to remove the DVD/image from the drive! | ||
== First time run of the web interface == | == First time run of the web interface == | ||
== Updating the server == | == Updating the server == | ||
=== General updates === | === General updates === | ||
As with any Linux distribution, from time to time there are updates to the system. | As with any Linux distribution, from time to time there are updates to the system. This will show you how to check these and install them. | ||
# Login to the system as root | # Login to the system at the command prompt or SSH as root. | ||
# Type <code>yum update</code> | # Type <code>yum update</code>. | ||
# After downloading from the internet, a list may be shown showing the latest updates available. If <code>No Packages marked for Update</code> is shown, there are no updates available right now and you can continue to the next step. | # After downloading the update lists from the internet, a list may be shown showing the latest updates available. If <code>No Packages marked for Update</code> is shown, there are no updates available right now and you can continue to the next step. | ||
# | # If there are updates offered, type <code>y</code> to accept the changes. The updates will then be downloaded and installed. Some packages take a long time to install and the system will look like it has hung. Be patient, they will eventually install. | ||
# It is recommended that once the update is finished, you reboot the machine so that | # It is recommended that once the update is finished, you reboot the machine so that the updates are applied. Type <code>reboot</code>. | ||
=== Updating FreePBX modules === | === Updating FreePBX modules === |
Revision as of 20:09, 18 April 2021
FreeBPX Distribution is a fully fledged VoIP server allowing complete customisation to your needs and works with most setups. It is an appliance, with a complete Linux setup and web manager to allow easy administration.
We have implemented FreePBX 15 (SNG7-PBX-64bit-2011-5) and Asterisk 17. This is the latest version of Asterisk and is a LTS release so will be supported well into the future with fixes (slated to be supported until 2024). This is a complete distribution and so needs to be installed on its own machine. We will be setting this up on a separate virtual machine rather than the main server.
Prerequisites
- Download the latest FreePBX ISO image. This is currently FreePBX 15 available here directly or at this website.
- This will need burning to a CD or writing to a USB stick. We use a USB stick and Rufus under windows to write it to a USB stick (use DD mode). This guide will cover the USB method but the CD method is very similar.
Booting the installation system
- Insert the USB stick into the computer.
- Power on the machine.
- Press the key to bring up the boot device menu.
- Select the USB stick that is inserted.
- When the boot menu appears, select 'FreePBX 15 Advanced Installation'.
- Next, select 'Advanced Installation with Normal Video'.
- Next, select 'Advanced Install with Asterisk 17 via Standard Video'. The system will now boot to the Linux installer.
Configuring the FreePBX installation
We will be using a dedicated computer with an empty hard drive. This will be a custom installation so that we can configure the system before it is installed. This guide will show you all the main options that need to be changed - there are other options if you wish to customise the installation but this is what I will be using to install the system.
Setting the date, time and time zone
- Click DATE & TIME to select the correct time zone and set the date & time.
- In the 'Region:' box, type or select 'Europe'.
- In the 'City:' box, change 'Amsterdam' by typing of selecting 'London'.
- If you are already connected to a network, ensure that the 'Network Time' switch is 'On'. This is important as this server will be used to set the times on the phones and needs accurate time to function correctly.
- We will configure the time servers to use ones closer to us in the UK. Click the cog icon next to the 'On' switch.
- We will change the CentOS NTP servers to UK servers. Double click on each address and change the
centos
touk
. For example, change0.centos.pool.ntp.org
to0.uk.pool.ntp.org
. Do this for servers 0-3. - We will add the main server IP address as a source too. This is typed in the top box and then click '+'.
- Click 'OK'.
- Click 'Done'.
Setting the keyboard layout
- Click KEYBOARD.
- Click the '+' button to add a new keyboard layout. We must add the new keyboard layout before removing the one we don't want.
- Type 'UK' in the search box.
- Click 'English (UK)'.
- Click 'Add'.
- Select 'English (US)' from the list.
- Click the '-' button to remove this layout.
- You may test the layout in the box on the right. I usually check that the '£' and '#' symbols come up when I press these keys.
- Click 'Done'.
Setting language support
- Click LANGUAGE SUPPORT.
- Tick 'English (United Kingdom).
- Unfortunately, we cannot unselect 'English (United States)'.
- Click 'Done'.
Setting the hard drive partitioning
As this is a new install, we will be configuring FreePBX to use the whole drive. We would like to use the BtrFS file system so this is slightly different to usual.
- Click INSTALLATION DESTINATION.
- Check that the hard drive we want to use has a tick on it.
- Under 'Partitioning', select 'I will configure partitioning'.
- Click 'Done'.
- Under 'New mount point will use the following partitioning scheme', change 'LVM' to 'Btrfs'.
- If there are already any partitions on the disk, you will have to select each one and click '-' on each one until the disk is empty.
- We want to use the whole drive. At the top of the list, click 'Click here to create them automatically'. This will automatically create the correct partitions using the whole drive.
- Click 'Done'.
- A list of what will be done during the installation will appear which you can review. If you are happy, click 'Accept Changes'.
Disable kdump
I have no use for kdump so will be disabling it.
- Click KDUMP.
- Untick the 'Enable kdump' box.
- Click 'Done'.
Setting the network hostname
The rest of the network settings should be OK unless you have something custom to configure. We will just be changing the hostname.
- Click NETWORK AND HOSTNAME.
- In the hostname box, replace 'freepbx.sangoma.local' to the hostname of your network (for example freepbx.freddythechick.net).
- Click 'Apply'.
- Click 'Done'.
Starting the installation
- If there is any problems preventing installation, there will be a yellow bar at the bottom of the screen saying where the problem is and the section that has the problem will have a yellow exclamation mark. These sections will need fixing before you can continue.
- I have added a picture of what the screen should look like for reference once everything is configured.
- If you are happy with all of the settings, click 'Begin Installation'.
Entering a root password
The installation will start. While the installation continues, we need to set the root password. This will not stop the installation while you are setting this up but must be done before the installation is finished.
- Click ROOT PASSWORD.
- Type a password for the root user in the 'Root Password:' box.
- Retype the password in the 'Confirm:' box.
- Click 'Done'.
This will be an internet facing machine so it is HIGHLY RECOMMENDED to type a password that fills the strength bar so that it says Strong. Use a combination of uppercase letters, lowercase letters, numbers and symbols and make the password as long as you can possibly remember. Do not use common words that may be in the dictionary or names. If you do, you will be warned with a yellow bar at the bottom and will be asked to click 'Done' again. It is HIGHLY RECOMMENDED to use a different password if you are warned of this as you will be at risk of attack.
Completing the installation
You will now be back at the installation screen - grab a cup of coffee and wait for the installation to finish.
Once the installation is finished, it will say 'SangomaOS 7.8 is now successfully installed and ready to use! Go ahead and reboot to start using it!'. Click the 'Reboot' button and the machine will reboot to the FreePBX terminal. Remember to remove the DVD/image from the drive!
First time run of the web interface
Updating the server
General updates
As with any Linux distribution, from time to time there are updates to the system. This will show you how to check these and install them.
- Login to the system at the command prompt or SSH as root.
- Type
yum update
. - After downloading the update lists from the internet, a list may be shown showing the latest updates available. If
No Packages marked for Update
is shown, there are no updates available right now and you can continue to the next step. - If there are updates offered, type
y
to accept the changes. The updates will then be downloaded and installed. Some packages take a long time to install and the system will look like it has hung. Be patient, they will eventually install. - It is recommended that once the update is finished, you reboot the machine so that the updates are applied. Type
reboot
.