skip to content
Afternoon Software

Efficient repeatable Development Setup with Lando

/ 2 min read

What is the goal of this setup?

The goal is to create an efficient development environment that we can run anywhere.

  • Easy to start with a single click of a button
  • Fast in file access and response times without WSL2 overhead
  • Securely isolated from the Host operating system
  • Only tools installed that we actually need for the project
  • Easy to back up with no need to re-install and re-configure development environment when the OS is re-installed

Outline

  1. Prequisites
  2. Installing Lando on Ubuntu Server
  3. Creating a new Lando project
  4. Sharing the folder with Windows for native file access
  5. Creating single-click start-up and shut-down scripts

Step 1: Prequisites

If you haven’t already, you need to install VirtualBox and Ubuntu Server on it. Here is a refresher on how to do it:

Step 2: Install Lando on Ubuntu Server

  1. Connect to your Ubuntu Server using SSH.
  2. Run the following commands to install Lando:
Terminal window
/bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

You will be asked to enter your password. Enter your password and press Enter. Press enter to accept the default installation path.

This will install all the necessary dependencies and Lando including Docker and Docker Compose.

It will ask for the password again to install the necessary packages. Enter the password.

If installation fails, simply run the command again.

  1. After the installation is complete, you can verify the installation by running the following command:
Terminal window
lando version

Step 3: Creating a new Lando project

You can install your project and create a lando project for it. There are many templates available for different types of projects. You can find an extensive list recipies here.

In this example, we will create a new Laravel Project.