Set up your computer
Lock the screen
To be able to lock the screen from the menu bar:
- In Finder search for Keychain Access and start it,
- In the Keychain Access menu select Preferences,
- Check the Show keychain status in menu bar checkbox,
This will place a lock icon in the menu bar.
To lock your screen
- Click the lock icon on the menu bar
- Select Lock Screen
Show hidden files and folders
If you don’t have an Apple ID create one. You can obtain one without a credit card:
- Start iTunes on your Macintosh,
- Click the drop down menu in the upper right corner,
- If Apps is visible, select it, otherwise click Edit Menu…
- Select Apps to display it in the drop down.
- Search for a free app in the App Store and start to download it,
- Create a new Apple Id and select None for credit card type.
Show the user home directory
- Open Finder
- In the Finder menu select Preferences
- In the Favorites section select the checkbox next to your user name
Create a directory for optional applications
Create the opt folder in the root of the harddisk.
Homebrew can install packages on your Macintosh that apple does not provide.
Installation instructions are at http://brew.sh/
Remote Desktop Client
Download the Microsoft Remote Desktop app from the App Store
- Open the App Store
- Search for “microsoft remote desktop”
- Click the Microsoft Remote Desktop icon
- Click the blue Get button
- Click the green Install App button
- Download it from https://atom.io/
- Double click the downloaded ZIP file to extract the application,
- Drag the Atom application into Applications
Install iTerm2, a smart terminal emulator to issue Bash commands and log into Linux servers.
Enable unlimited scroll back
- Start iTerm2 and open the preferences window by pressing ⌘, (command-comma)
- On the Terminal tab click the Unlimited scrollback check box.
Start iTerm2 from Finder
To be able to open iTerm2 in any folder from Finder follow the steps below based on https://gist.github.com/shuntaroy/e5ce3ad61c0deb7e27f0
- Start Automator,
- On the top of the screen set Service receives selected to files and folders,
- Set in to Finder,
- On the second side bar from the left double click Run AppleScript,
- Paste the code from the website referenced above into the editor window replacing the sample script in the editor window,
- In the File menu save the script,
- Do not run it, it does not execute in the Automator.
To use it
- Open Finder and navigate to the location you want to work in,
- Right click a folder to work in that folder or a file to work in the current folder
- Select Services, iTerm2 in Finder
“Solarized” color scheme
Meslo Powerline font
Make the prompt shorter
to remove your username@computername from the prompt
To color the prompt:
- Download the agnoster theme
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Edit the ~/.zshrc file and set the ZSH_THEME to ZSH_THEME=”agnoster”
More configuration suggestions are at
Information on how terminals read settings at https://shreevatsa.wordpress.com/2008/03/30/zshbash-startup-files-loading-order-bashrc-zshrc-etc/
- Navigate to https://git-scm.com/download/mac to download Git for Windows. The page automatically downloads the installer for the operating system you use.
- This app is not trusted by Apple, so to install it
- Control-click the downloaded file and select Open
- Click the Open button to confirm the action
If you use two factor authentication
Create a Personal Access Token to use it as password in the command line tools,
- Log into GitHub and in the pull down at the upper right select Settings,
- On the left select Personal access tokens and click the Generate new token button,
- Enter a description for your token (so you can keep track and revoke them individually later, should you have a security breach),
- Select all options to be able to use the token for administration,
- Click the Generate button,
- Copy the token (40 characters long) and use that as your password on the command line.git
Move the Git repositories to a new workstation
If you want to move Git repositories to your new workstation
- Commit and push all repositories to GitHub on the old workstation
- Copy the folders from your old workstation to the new
- Execute the following command in all Git repositories on the new workstation
git reset --hard
Download Virtual Box from https://www.virtualbox.org/wiki/Downloads and follow the instructions to install it.
At the time of writing this was the section where the installer files were referenced
Run the downloaded installer file and accept all default values.
The installer starts the application. You can close it, we will use other tools to start it in the future.
The default credentials of a Vagrant server are:
- UserName: vagrant
- Password: vagrant
Ruby is already a part of the operating system.
Chef Development Kit
Terraform by Hashicorp
- Download Terraform from https://www.terraform.io/downloads.html
- Double click the downloaded ZIP file to extract the application
- Create a directory, terraform for the Terraform application in the /opt folder
- Move the Terraform application into the terraform directoryin the /opt folder
Add the location to the path
Depending on the terminal window you use, it may open different configuration files. If you use iTerm2 you need to update the path in the~/.zshrc file. Other terminal windows usually read the configuration from the ~/.bash_profile file. To be safe you can add the following to both configuration files:
# PATH Export
Graphviz is a Dependency Graph Visualization Software. We will use this utility to display the Terraform graphs.
To install execute the following in the terminal
brew install graphviz
Set up the DevOps development environment in Beginner’s Guide to DevOps Engineering part 2.
to the Tutorials page