Archive:FreePBX Distribution: Difference between revisions
m Sam moved page AsteriskNOW! to FreePBX Distribution: Distribution name change |
Saved progress, major rework for FreePBX |
||
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. | |||
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 a machine. We will be setting this up on a separate computer rather than the main server. | |||
== | == Prerequisites == | ||
* Download the latest FreePBX ISO image. This is currently FreePBX 15 available [https://downloads.freepbxdistro.org/ISO/SNG7-FPBX-64bit-2011-5.iso here directly] or at [https://www.freepbx.org/downloads/ 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 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 the bare minimum that 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. | |||
# Click 'Done' | |||
# | |||
# In | |||
# | |||
# | |||
=== | === 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' | |||
=== 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'. | |||
== First time run of the web interface == | == First time run of the web interface == |
Revision as of 15:51, 21 March 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 a machine. We will be setting this up on a separate computer 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 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 the bare minimum that 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.
- 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'
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'.
First time run of the web interface
Updating the server
Updating the distribution
The latest version of AsteriskNOW! available from the website is not the latest version of the distribution. The distribution must be updated manually to get up to the latest version.
We will start off on the 6.12.65 track. As of 31st December 2015, this has reached its End of Life. We will be upgrading to the 10.13.66 track which is the latest. To look for the latest version, the website is http://wiki.freepbx.org/display/PPS/FreePBX-Distro-10.13.66
- Login to your system as root with SSH or go to the Virtual Machine Manager, open the machine and login.
- Type
cd ~
. This will take you to the home directory where we can download. - Type
mkdir upgradescripts
thencd upgradescripts
. This will make a new directory and take you into the new directory. - Type
wget https://upgrades.freepbxdistro.org/stable/10.13.66/upgrade-10.13.66-1.sh
. This will download the script to update the distribution to the new track. You can also download this from this server by typingwget http://192.168.0.24/hpserver/images/2/24/Upgrade-10.13.66-1.sh
then rename it to lowercase by typingmv Upgrade-10.13.66-1.sh upgrade-10.13.66-1.sh
. - Type
chmod +x upgrade-10.13.66-1.sh
. This changes the permissions so we can execute the file. - Type
./upgrade-10.13.66-1.sh
to run the script. - While the script is running, you may see some errors. These are normal and as long as the script runs through to the end, you can safely ignore these.
- When the script is finished, it will say
REBOOT YOUR BOX NOW
. Follow these instructions and typereboot
.- Once the machine has rebooted, we will need to update to the latest version of the track (At the time of writing, it was 10.12.66-10, we will use this as an example. Use the latest version available at http://wiki.freepbx.org/display/PPS/FreePBX-Distro-10.13.66).
- Login in again as root.
- We did a lot of the legwork in the last example so it makes it easier this time round.
- You should already be in the home directory so type
cd upgradescripts
to move to theupgradescript
folder we made earlier. - Look on the FreePBX site, then with the lastest script, type
wget https://upgrades.freepbxdistro.org/stable/10.13.66/upgrade-10.13.66-10.sh
, changing the last part to whatever the latest version is. - Type
chmod +x upgrade-10.13.66-10.sh
to make the script executable. - Type
cd /
. This will take us to the root directory. Due to the way this script works, you must run it from the top root directory. - Type
./root/upgradescripts/upgrade-10.13.66-10.sh
to run the script. - Once again, errors that don't stop the script are normal and can be ignored.
- Once you have reached
REBOOT YOUR BOX NOW
, reboot the machine by typingreboot
.
NOTE
It is a good idea to keep an eye on the FreePBX website for updates from time to time. You can use the second half of the tutorial to do the minor updates at any time, substituting the example script version for the latest.
General updates
As with any Linux distribution, from time to time there are updates to the system. We will show you how to check these and install them.
- Login to the system as root
- Type
yum update
- After downloading 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. - 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 any updates downloaded get used. Type
reboot