text
stringlengths
0
152
2. Click on it and to the right under Attributes, there’ll be another tiny disc icon.
3. Click on that, and it’ll ask you to Choose Optical Virtual Disk File.
4. Locate on your hard drive the Minimal ISO you downloaded from CentOS,
and choose it.
5. The Storage Tree should now show the CentOS ISO.
• Network: Adaptor 1
Attached to: Bridged Adapter
Start up the machine you’ve just created, and it should take you through a basic
installation of CentOS. Here are a few items you’ll want to specify (for anything else,
the defaults should do):
• Date and time: Adjust to your time zone if you wish.
• Network and host name: Ethernet—toggle from off to on (it should immediately
grab an IP address from your network; if not, set one manually). Press the Done
button.
• Installation destination: It may require you to confirm the target, but you
shouldn’t need to change anything. Press the Done button.
• That’s it. Begin Installation.
While the installation is taking place, set the root password, and also create a user
named astmin. Make the astmin user an administrator.
28
|
Chapter 3: Installing Asterisk
The installation will take a few minutes. Grab a coffee!
Once the install is done, the installer will ask you to Reboot. The reboot should only
take 15 seconds or so.
Congratulations, your system is ready. Log in as root.
Linux (OpenStack) Host
You’ll obviously need an account with a hosted Linux provider if you’re going to use
this method (we’ve found OpenStack-based offerings to be the cheapest, relative to
the quality/performance/simplicity offered). We’ve been using DigitalOcean for many
years, but have also found Linode and VULTR to be strong providers in this space.6
Once you’ve got that sorted, you can log in and create a new system something like
the following:
• CentOS 7 (lastest version, 64-bit)
• 4 GB 2vCPUs (we don’t really need the 4 GB RAM, but it is good to have the
2xCPUs; you can probably get away with 2 GB 1vCPU, if you’re really cost-
conscious)
• Data center closest to you
Once that’s up and running, log in as the default user (as of this writing, it’s centos).
Note that DigitalOcean instances do not have a firewall by default.
Instead, they provide a firewall as a part of their environment. The
system you build will therefore not have any native firewall in
place, and will be subject to external attacks shortly after you com‐
plete configuration (you’ll see this on the Asterisk console). Differ‐
ent providers will have different firewall policies. You are
responsible for making sure your firewalling is working correctly.
We’ll be discussing security and anti-fraud in more detail later on
in this book.
Dependencies
The system you’ve just built isn’t really much more than a basic bootstrapped system.
In order to prepare it for an Asterisk installation, there are a few things we’ll need to
install first.
6 Amazon’s new Lightsail service also promises to simplify the creation of hosted Linux machines.
Dependencies
|
29
The following commands can be typed from the command line, or added to a simple
shell script and run that way.
sudo yum -y update &&
sudo yum -y install epel-release &&
sudo yum -y install python-pip &&
sudo yum -y install vim wget dnf&&
sudo pip install alembic ansible &&
sudo pip install --upgrade pip &&
sudo mkdir /etc/ansible &&
sudo chown astmin:astmin /etc/ansible &&
sudo echo "[starfish]" >> /etc/ansible/hosts &&