Next steps after downloading the imageInstructions on how to write the downloaded image to your card can be found here:
The image is only utilizing 4GB of your card, even if you bought a bigger one. On a bigger card, you can make more space available to your root partition by running on the console of your booted RPi:
raspi-configSelect the option expand_rootfs. If you rather prefer to do this manually, one of the easiest ways is using GParted on Linux. Details can be found here:
1. Determine hostname / IP addressOnce your RPi is booted, you need to know it’s hostname or IP address for ssh login or to open the web GUI. On Windows computers, you can just use the hostname raspbx to access your RPi.
ssh root@raspbxWeb GUI:
http://raspbxOn Macintosh, use raspbx.local instead:
ssh email@example.comWeb GUI:
http://raspbx.localIn case this is not successful you can check your router’s DHCP client list, and search for the IP associated with the name raspbx.
If this is still not working out, you can always just connect an HDMI monitor and USB keyboard, log in to the console with user root, password raspberry, and run the command:
2. Basic configurationAfter your RPi has booted successfully, log in either on the console or by ssh with user root and password raspberry. Follow these steps to complete the initial configuration:
Choose your timezone:
dpkg-reconfigure tzdataConfigure locale settings:
dpkg-reconfigure localesConfigure keyboard settings (not needed when working with ssh only):
3. Email setupEmail delivery from your RPi is needed if you plan to have voicemails sent to users by email. Email already works in the default configuration using Exim4 as MTA. By default, Exim is configured to directly send mails to the recipient MX hosts. This is however discouraged, as many email providers classify emails coming from dynamic IP adresses as spam. To avoid this, you need to set a smarthost. Unless you have an open SMTP server on your network that can be used as smarthost without authentication, you will need to specify SMTP authentication credentials as well. It is basically possible to use almost any publicly available freemailer as smarthost with the RPi. Have username and password as well as SMTP hostname (sometimes also referred to as outgoing mail server) of the email account you are going to use ready. Run on the console:
dpkg-reconfigure exim4-configOn the first configuration page select “mail sent by smarthost; no local mail”. On the following pages just keep the default values by pressing enter, until you reach the page starting with “Please enter the IP address or the host name of a mail server…”. Here, enter the SMTP hostname of your email provider. Again, keep default values on the remaining pages.
Then, edit the file passwd.client by running:
nano /etc/exim4/passwd.clientAdd your credentials at the bottom of this file in the following format:
SMTP_HOSTNAME:USERNAME:PASSWORDIn most cases, the SMTP hostname used in this file is identical to the hostname used as smarthost before. If email fails to work, specify the reverse lookup of your email provider’s SMTP host IP address here. For Google Mail, this is currently gmail-smtp-msa.l.google.com
Some email providers also require you to use sender addresses identical to one of the public email adresses of your account. In this case, edit:
nano /etc/email-addressesOn the bottom of this file add:
root: firstname.lastname@example.org asterisk: email@example.comThis configures the sender address of all outgoing mail to firstname.lastname@example.org.
Finally, to activate your configuration run:
update-exim4.confYou can test your email setup with this command:
send_test_email email@example.comA test email should reach your inbox shortly.
4. Initial Asterisk setupPoint your browser to the RPi’s hostname or IP address (http://raspbx).
The default login to FreePBX is:
For inital setup please follow this guide:
Most of the configuration steps presented here apply to the RPi as well. If you are going to use SIP technology, you absolutely need to follow section 5, “Configure Asterisk SIP Settings”. After filling the Asterisk SIP Settings page, you need to go back to the console and run:
amportal restartThis step is only required once after Asterisk SIP Settings have been configured for the first time. For all other configuration changes just use the red apply config button in the GUI.