Lab 2.1 - Prep Ubuntu

Note

This installation will utilize Ubuntu v16.04 (Xenial)

Important

The following commands need to be run on all three nodes unless otherwise specified.

  1. From the jumpbox open mRemoteNG and start a session to each of the following servers. The sessions are pre-configured to connect with the default user “ubuntu”.

    • mesos-master1
    • mesos-agent2
    • mesos-agent3
    ../../_images/MremoteNG3.png
  2. Elevate to “root”

    su -
    
    #When prompted for password enter "default" without the quotes
    
  3. For your convenience we’ve already added the host IP & names to /etc/hosts. Verify the file

    cat /etc/hosts
    

    The file should look like this:

    ../../_images/ubuntu-hosts-file1.png

    If entries are not there add them to the bottom of the file be editing “/etc/hosts” with ‘vim’

    vim /etc/hosts
    
    #cut and paste the following lines to /etc/hosts
    
    10.2.10.21    mesos-master1
    10.2.10.22    mesos-agent1
    10.2.10.23    mesos-agent2
    
  4. Ensure the OS is up to date, run the following command

    apt update && apt upgrade -y
    
    #This can take a few seconds to several minute depending on demand to download the latest updates for the OS.
    
  5. Add the docker repo

    curl \-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add \-
    
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    
  6. Install the docker packages

    apt update && apt install docker-ce -y
    
  7. Verify docker is up and running

    docker run --rm hello-world
    

    If everything is working properly you should see the following message

    ../../_images/setup-test-docker1.png
  8. Install java for the mesos and marathon processes.

    apt install -y openjdk-8-jdk
    
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/