Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

VM Setup

Before we start installing Rust, GTK, or Flatpak, we need to prepare a clean development environment.

This tutorial assumes you are starting from a fresh Linux system.

The recommended approach is to use a Virtual Machine (VM).

What Is a Virtual Machine?

A Virtual Machine (VM) is a software-based computer that runs inside your real computer.

It allows you to:

  • Install a fresh operating system
  • Test development environments safely
  • Avoid breaking your main system
  • Reproduce a clean "first-time developer" setup

Think of it as a separate computer running inside your laptop.

Why Use a Virtual Machine?

Using a VM ensures that:

  • No tools are preinstalled
  • No hidden dependencies exist
  • The setup process reflects a real onboarding experience
  • All required packages are installed manually
  • Errors are visible and reproducible

For learning and evaluation purposes, this is extremely important.

If you already have Rust and GTK installed globally, you may skip some setup steps but using a VM is strongly recommended.

You can use any virtualization software such as:

  • VirtualBox
  • GNOME Boxes
  • VMware

For this tutorial, the recommended configuration is:

  • Operating System: Debian 13
  • RAM: 4 GB (minimum 2 GB)
  • Disk Space: 20 GB
  • CPU: 2 cores (recommended)

These values provide enough resources to build Rust projects and Flatpak packages comfortably.

Step 1 - Install a Linux Distribution

Download one platform :

  • Debian (stable)

Install the operating system inside your VM.

During installation:

  • Enable standard utilities
  • Enable network access
  • Create a user account with sudo privileges

Once installation is complete, log in to your new system.

Step 2 - Update the System

Before installing development tools, update your system:

sudo apt update
sudo apt upgrade -y

Step 3 - Install Basic Development Tools

Install essential build tools:

sudo apt install build-essential curl git pkg-config -y

Step 4 - Verify Network Access

Since this tutorial fetches data from an online API, verify that your system has internet access:

ping google.com

If this works, your network is configured correctly.

Optional - Install a Code Editor

You may use any editor, such as:

  • VS Code
  • GNOME Builder
  • Vim
  • Nano

For beginners, VS Code is often the most comfortable choice.

Example installation:

sudo snap install code --classic

install from your distribution’s package manager.