System Preparation

Install Debian 8

The first thing that is required is a Debian 8 machine - this can be physical or virtual.

  1. Install Debian 8 (Jessie) via usual mechanism (e.g., netboot CD, ISO in VMware/VirtualBox or the DVD image.
  2. Choose the following server install options: "Debian desktop, SSH server, Standard system utilities”.
  3. Create/choose a secure root password and an initial system user account.
  4. Once installed, make sure you run an apt-get update and apt-get upgrade to ensure your system is fully up to date.

We would recommend using LVM when disk partitioning to allow easier partition/disk expansion on a live system.

After install, you will want to secure/lockdown the server as best practice dictates - for both the server and any extra software installed. This is beyond the remit of this guide but there are many guides available that provide information on securing your Debian servers and applications.

Configure Debian 8

Next, there are a few Debian configuration options that need to be set in advance.

Networking configuration

For production deployments, it is recommended that the machine be assigned a static IP address.

For Debian networking information please refer to the Debian documentation:

Firewall configuration

The following ports are required to be accessible from the outside world, both in the local firewall and in any external firewalls:

Add the Moonshot Repository

  1. Add the Moonshot Debian Jessie repository to your system. To do this, run the following command (as root, or using sudo):

    $ echo "deb jessie main" > /etc/apt/sources.list.d/moonshot.list
  2. Install the Moonshot GPG key:

    $ wget -O - | apt-key add -

    If you wish to verify the Moonshot GPG key's validity and integrity, please see the Packaging GPG Key for further details.

  3. Update the apt cache with the new repository information:

    $ apt-get update