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
- Prequisites
- Installing Lando on Ubuntu Server
- Creating a new Lando project
- Sharing the folder with Windows for native file access
- 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
- Connect to your Ubuntu Server using SSH.
- Run the following commands to install Lando:
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.
- After the installation is complete, you can verify the installation by running the following command:
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.