Skip to main content

2 posts tagged with "vm"

View All Tags

· 2 min read

This post is to explain what is Chocolatey, how can we install it and how can we use it

Chocolatey:

Chocolatey is a module for windows to install packages (tools) on to the machine. Also known as a software management tool.

It allows us to perform various tasks via command line.

For example, "choco install tool" is the equivalent to "apt install tool" on Ubuntu.

So to install it you need to copy paste this command line to your terminal:

config.vm.provision "shell", inline: <<-SHELL

Set-ExecutionPolicy Bypass -Scope Process -orce; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

SHELL

This command will install chocolatey and allow you to use "choco install" to install other tools into your windows machine such as Git or VSCode.

Example:

You want to install some tools that you need and to do so you'll use Chocolatey!

So, in your terminal type any of the following commands:

choco install git -y
choco install vscode -y
choco install hugo -y

These commands will install the respective tools, but you can install the tools that you need. The only thing that you need to is choco install "tool that you want" :) Note, that the -y is to answer Yes to the questions asked by the installation process;

· 2 min read

This post will explain to you how to deploy an Ubuntu machine very easily and quick!

What do you need?

We will use 2 tools to make the deployment of the Ubuntu vm very fast!

These tools are Vagrant and Virtual Box.

Installation

By Download

Note that you have to choose the OS where you wish to install the tool (Linux, Windows, etc...)

By using package management

Windows - Chocolatey

To start you need to install Chocolatey. For that I have a post explaining how to it correctly here -> Now that you have installed Chocolatey lets use it. Lets start with VirtualBox, so for this use the following command:

choco install virtualbox

And now Vagrant:

choco install vagrant

Linux - apt

This is the same concept as choco install but for Linux of course. So, for Linux, we will use apt install. For VirtualBox:

sudo apt install virtualbox

For Vagrant:

sudo apt install vagrant

Deployment:

So, first we need the Vagrant box (don't forget to see the Vagrant post on the page to learn a bit more about Vagrant boxes). For this example we will use Ubuntu 18.04 LTS

Now, in your local machine, access your terminal, create a folder for your Vagrant box and, inside your new folder, type:

vagrant init ubuntu/bionic64

Doing this will add the box to your local Vagrant. And now, let's create our Ubuntu virtual machine! So tap in your terminal:

vagrant up

And there it is! Your first fresh and clean Ubuntu vm!