Skip to content

OSSCanada/linux_training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Training

MS Loves Linux

This training is meant to be a hands on study guide to learn linux administration in general, but with the context of Microsoft Azure in mind. It is also designed for a Ubuntu Server environment.

Setup

Run the following commands to setup the Azure environment required to run the exercises.

You will need to have an Azure account. In our setup scripts we will be deploying DS2_V2 VMs running Ubuntu 14.04.5.

You may deploy what you would like, just ensure you meet the below requirements.

Requirements

  • A Virtual Machine with Ubuntu 14.04 or newer installed
  • One of Azure File Storage, NFS or SMB file share
  • 4 attached disk drives

Setting up environment with Azure

Alternatively you may deploy all the required services as a few commands with Azure and Azure-CLI.

You can find instructions to install Azure-CLI here

This template will deploy an Azure VM of size D2_V2 and attach 4 additional disk drives (we will use these for creating disk partitions, managing RAID configuration, formatting drives, backup/restore and other exercises).

The Azure template also creates the following default admin account (line 115 and 116 of scripts/ARM/arm.template.json):

  • Default username: linuxadmin
  • Default password: @dminpassw0rd!
# Update Azure-CLI
az component update

# login to your Azure account
az login

# list your subscriptions (you will need to choose one in a moment)
az account list

# set the subscription to deploy services into
az account set --subscription <subscription-id>

# create a new Azure resource group to deploy servces into
az group create --name <resource_group_name> -l <azure_datacentre_location>

# example
az group create --name linuxtraining -l canadacentral

# deploy the included azure template (scpits/ARM/arm.template.json)
az group deployment create --name lfcsarmtest --template-file scripts/ARM/arm.template.json --resource-group linuxtraining --no-wait

## Alternatively run the deploy script from this repository directly
az group deployment create --name lfcsarmtest --template-uri https://raw.githubusercontent.com/OSSCanada/linux_training/master/scripts/ARM/arm.template.json --resource-group linuxtraining --no-wait

# or deploy straight from github
az group deployment create --name lfcsarmtest --template-uri https://raw.githubusercontent.com/raykao/azure_workshops/master/04_Others/Linux_training/scripts/ARM/arm.template.json --resource-group linuxtraining --no-wait

Copying repo files to your VM

Via Git

  1. Install git on your system
    • sudo apt-get install git-core
  2. clone this repository to your home directory
    • cd ~/ Ensures you are in your home directory
    • git clone https://github.com/OSSCanada/linux_training.git
  3. You now have a local working copy of this repository

Via Wget and unzip

  1. Use wget to download a copy of this repository to your home folder
    • cd ~/ to ensure you're in your home directory
    • wget https://github.com/OSSCanada/linux_training/archive/master.zip
    • you now have a copy of the repository in a zip file
  2. Install unzip to unpack the zip file
    • sudo apt-get install unzip
    • unzip master.zip
    • you should now see using ls command a new folder containg a copy of this repository

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages