VOOZH about

URL: https://thenewstack.io/linux-manage-chroot-environments-with-atoms/

⇱ Linux: Manage chroot Environments with Atoms - 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
2024-02-10 06:00:31
Linux: Manage chroot Environments with Atoms
Linux / Operations

Linux: Manage chroot Environments with Atoms

The chroot command creates virtualized copies of a software system, and Atom allows you to do so within a GUI.
Feb 10th, 2024 6:00am by Jack Wallen
👁 Featued image for: Linux: Manage chroot Environments with Atoms
Feature image by Sly via Pixabay

Ask any old-school Linux user about chroot environments and they’ll either nod in the understanding of what the tool offers or turn away, so you can’t see the fear in their eyes.

Although that might be a bit hyperbolic, creating chroot environments isn’t exactly the easiest thing to do from the command line.

But wait… what are chroot environments?

What Are chroot Environments?

Essentially, chroot environments create isolated, virtualized copies of a software system that can be used for testing or development, without harming your host operating system. These environments are a great option for testing things that pose any kind of risk to a production machine.

Traditionally, chroot environments have been created via the command line, which can be a bit complicated. Fortunately, there’s a GUI tool available that makes managing chroot environments much easier.

That app is called Atoms and it allows you to create, manage, and use chroot environments. Atoms currently supports the following Linux images:

  • Alpine Linux
  • Ubuntu
  • Fedora
  • Alma Linux
  • Centos
  • Debian
  • Gentoo
  • OpenSUSE
  • RockyLinux

With Atoms, you can easily select which distribution (as well as the release) image you want your environment to use. Once you’ve created your environment, you can access it, do whatever you need to do, and then exit it, knowing that whatever you did within the environment didn’t harm your host OS.

Think of Atoms as yet another user-friendly means of creating virtualized environments without making any changes to your production file system.

Let me show you how to install Atoms and then we’ll create our first chroot environment.

How to Install Atoms

To work with Atoms, you’ll need a Linux distribution that supports Flatpak. You won’t find Atoms as a .deb or .rpm package, nor is it available via Snap. So if you’re current Linux OS doesn’t have Flatpak installed, you’ll need to install that first. Distributions such as Fedora ship with Flatpak pre-installed. For Ubuntu-based distributions, you can install Flatpak with a command like:

sudo apt-get install flatpak -y

If you are only now installing Flatpak, you’ll need to set it up before it can install apps from Flathub. To do that, make sure to issue the following command (after Flatpak is installed):

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Once you’ve done that, restart your system so the changes take effect.

Installing Atoms

The installation of Atoms is very simple. Open your terminal window and issue the following command:

flatpak install flathub pm.mirko.Atoms

Make sure to answer y to all the questions. After the installation completes, you can either log in and log out (so the Atoms launcher will be added to your desktop menu) or run Atoms immediately with the command:

flatpak run pm.mirko.Atoms

When Atoms first launches, you’ll see the Create New Atom button (Figure 1).

👁 Image

Figure 1: The Atoms app at first run doesn’t include any chroot environments.

The Atoms app at first run doesn’t include any chroot environments.

Create Your First chroot Environment (aka Atom)

Click Create New Atom and, in the resulting pop-up (Figure 2), you’ll be required to name the atom, select a distribution to use as the base image, and then select the release version of the chosen distribution. You might find, with certain distributions, that you are limited to only the latest release.

👁 Image

Figure 2: I’m creating a new Atom Chroot named New Stack Test, using the latest version of Rocky Linux.

After configuring your new Atom, click Create and the app will do its thing. When the process completes (which should take less than a minute), close the pop-up window and you’ll see your atom listed.

Using Your New Atom

From the Dashboard tab, click the entry for your new Atom and you’ll see entries for Browse Files, Details, Bindings, and Destructive Actions (Figure 3).

👁 Image

Figure 3: The Atom Dashboard for my New Stack Test Atom.

If you click Browse Files, it will mount the environment and open your file manager, so you can navigate around the file system hierarchy. The real work, however, happens in the Console tab.

Click the Console tab and you’ll find yourself at the root prompt for your environment, where you can start testing, developing, and whatever you need (Figure 4).

👁 Image

Figure 4: Upgrading the Rocky Linux chroot environment from the command line.

One thing to keep in mind is that a chroot environment isn’t 100% analogous to either a virtual machine or a bare metal installation. You’ll run into trouble when installing applications such as Docker, Podman, Apache2, etc.

However, what you can do is, from the Dashboard, click Browse files and then, using your file manager, copy and paste your source/scripts into the required directory and work from there. Using that same method, you can create new directories. You might also find permissions issues, so you’ll want to drop to the console and create a new user like so:

useradd -m USERNAME

Where USERNAME is the username to add.

Then, give that user a password with the command:

passwd USERNAME

You can then change to that user with the command:

su USERNAME

At this point, you will have permission to write to the new user’s home directory (change into with the cd command).

When you’re done using the Atom, you can click the left-pointing arrow at the top left of the Dashboard tab. If you no longer need the Atom, click Destructive Actions in the Dashboard, and then click Destroy Atom.

Atoms is a great way to quickly create chroot environments. It may take you a while to get up to speed on using them, but at least the hard part is taken care of. Add chroot environments, by way of Atom, to your development/testing process and see if they don’t make your life a bit easier (and less destructive to your production systems).

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
The Linux Foundation is a sponsor of The New Stack.
TNS owner Insight Partners is an investor in: Alma, Docker.
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.