VOOZH about

URL: https://thenewstack.io/cubic-build-a-custom-linux-distribution-based-on-ubuntu/

⇱ Cubic: Build a Custom Linux Distribution Based on Ubuntu - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-03-23 07:00:05
Cubic: Build a Custom Linux Distribution Based on Ubuntu
tutorial,
Linux / Tech Culture

Cubic: Build a Custom Linux Distribution Based on Ubuntu

Cubic simplifies the creation of custom Linux distributions based on Ubuntu or Debian by providing a GUI and virtual terminal environment for customizing ISO images
Mar 23rd, 2025 7:00am by Jack Wallen
👁 Featued image for: Cubic: Build a Custom Linux Distribution Based on Ubuntu
Background feature image based on Unsplash.

Have you ever wanted to build your own custom Linux distribution? You might have a specific need for a distribution that includes specific apps, files, and customizations so you can then turn around and install it on any number of machines on your business or home network.

It might sound like a challenging task, but there’s a GUI tool for Ubuntu (and Ubuntu-based distributions) that makes it much easier.

That app is called Cubic.

Cubic makes it easy to navigate the ISO customization steps (with the help of a GUI and an integrated virtual command line environment) to customize the Linux filesystem. With Cubic you can create new distributions or customize existing ones.

Cubic can be used on Ubuntu 18.04.5 and newer or Debian 11 Bullseye and newer. With Cubic, you can customize the following live ISO images:

  • All versions of Ubuntu from 14.04 and newer.
  • Most distributions based on Ubuntu.
  • Many versions of Debian (tested on Debian 11 Bullseye and above).
  • Many distributions based on Debian.

How do you use Cubic? Let me show you.

What You’ll Need

To make this work, you’ll need a running instance of a Ubuntu-based distribution, plenty of local storage (or an attached USB drive), and a user with sudo privileges. You’ll also need to download the ISO image for the distribution you want to customize. Do note that some distributions do not work well with Cubic. During my testing, I created ISOs from an elementaryOS image and one for Debian. The end result was an ISO image from elementaryOS that wouldn’t boot but one based on Debian that worked fine, so your mileage may vary.

That’s it. Let’s get to work.

Installing Cubic

The first thing you have to do is install Cubic. To do that, log into your Ubuntu-based distribution, open a terminal app, and first add the necessary repository with the command:

sudo apt-add-repository ppa:cubic-wizard/release

Update apt with the command:

sudo apt-get update

Finally, install Cubic with:

sudo apt-get install --no-install-recommends cubic -y

Once the app is installed, you can open it from your desktop menu.

Using Cubic

When you first open Cubic, you’ll need to select a project directory by clicking the small folder icon to the right of the drop-down (Figure 1).

👁 Cubic start page.

Figure 1: The main Cubic window is very well-designed and simple to use.

Once you’ve selected a project directory, click Next.

In the resulting window (Figure 2), you must first select the original ISO image to be used. Click the folder icon associated with Filename and then locate the ISO you downloaded. This will automatically fill in most of the other bits of information. If something fails to autofill, you can’t fill it in manually, so it’ll remain blank.

👁 Cubic screenshot.

Figure 2: After you select your ISO, everything should auto-populate.

Click Next.

Cubic will then analyze the disk image, copy files from the original image to the project folder, and extract the uncompressed Linux file system. When that completes, click Customize, which will land you in the terminal-based virtual environment (Figure 3).

👁 Cubic screenshot.

Figure 3: The Cubic virtual environment is where you customize the distribution.

You can now use the command line you’ll use for customization. Yes, that means you’ll need to use the command line. You can use the apt or flatpak package managers to install (or remove) anything you need for the distribution. For example, you might want to install LibreOffice, GIMP, Slack, Snapd, and whatever apps you need like so:

apt-get install libreoffice gimp snapd

One thing you cannot do is use Flatpak or Snap to install apps because they cannot connect to the system bus.

You could even replace the kernel for, say, a real-time or HWE kernel for better hardware recognition and less latency, or enable zRAM for better performance.

Maybe you want to create specific users for the ISO with the command:

adduser USERNAME

Where USERNAME is the name of the user to be added.

The tasks you can undertake from the virtual terminal is impressive. You can read more about this on the official Cubic Terminal Page Wiki.

Once you’ve finished with the customizations, click Next. The virtual environment will close and Cubic will then land on a page where you can remove any applications to shrink the size of the ISO it creates. You can go through the list (Figure 4) and select whatever apps you don’t need.

👁 Screenshot.

Figure 4: The Cubic app removal page.

Make sure to not select anything the system relies on to run. For this, you only want to remove user-facing applications.

When you complete that, click Next. In the resulting window (Figure 5), you can select the kernel you want to use.

👁 Screenshot.

Figure 5: I would suggest sticking with the default here.

Click Next and then, in the resulting window (Figure 6), select your compression level and then click Generate.

👁 Screenshot.

Figure 6: If you want smaller ISO images, use zstd or xz compression.

And now… we wait. This process can take some time (depending on the original ISO and the customizations you’ve made). When the generation completes, click Finish.

Once the generation completes, you receive a summary and can click Close. Your new custom ISO image will be found in the project directory you selected at the beginning of the process. You can burn that image to a USB drive or share it with other people, who can then install the distribution at will.

And that, my friends, is you how can create a custom Linux distribution based on Ubuntu or Debian. Enjoy this awesome tool.

TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.