Google Chromebook

Install Terraform and Ansible on Google Chromebook Pixel

As may know Google have enabled support for Linux apps on Google Chromebooks. I have the latest Google Chromebook Pixelwhich is very nice machine and once you enable support for Linux apps – it becomes great DevOps machine.

  1. Open Settings
  2. Click on Help
  3. Click on About Chrome OS
  4. Click on Detailed Build Information
  5. Change the channel to Beta
  6. Wait for Chromebook to finish install and update
  7. Go back to Settings and scroll down
  8. Click on Linux(Beta) – Turn On
  9. Wait for installation of the Linux
  10. New icon is place in your apps
  11. Click the Terminal icon
  12. You are in your Linux console

Now when you have Linux installed and you are in console you can easily install some apps in my case I have installed Terraform and Ansible and Microsoft Visual Code.

Here is the script for Terraform:

# Install and configure Terraform
# Check for latest release
sudo apt-get install wget git unzip gnupg python3 python3-pip -y
sudo apt-get update && sudo apt-get upgrade
sudo wget
sudo unzip
sudo mv terraform /usr/local/bin/
terraform –version

Here is script for installation of Ansible:

# Install Ansible
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ansible
ansible --version

And last package is Microsoft Visual Code:

sudo pt-get update && sudo apt-get upgrade
sudo wget
sudo dpkg -i code*-1536736588.deb
# It will fail so need to re-run
sudo apt --fix-broken install
sudo apt-get update
sudo dpkg -i code*-1536736588.deb

You have now all 3 apps installed on your Linux running out of Google Chromebook Pixel — all works like charm and you can start to write your code and deploy with ansible and terraform.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.