Atoms 是一个可以让你轻松管理 Linux Chroot 环境的 GUI 工具
chroot
![](/data/attachment/album/202209/30/113748nxg0zps10q58q5wr.jpg)


chroot 环境为你在 Linux 中进行测试提供了隔离。你无需费心创建虚拟机。相反，如果你想测试应用或其他东西，请创建一个允许你选择不同根目录的 chroot 环境。


因此，使用 chroot，你可以在不让应用访问系统其余部分的情况下进行测试。你安装的任何应用或你尝试的任何东西都会被限制在该目录中，并且不会影响操作系统的功能。


chroot 有它的好处，这就是为什么它是为各种用户（尤其是系统管理员）测试事物的便捷方式。


不幸的是，所有这些都通过 Linux 终端运行。如果你可以有一个图形用户界面来让事情变得简单一些呢？这就是“**Atoms**”的用武之地。


### Atoms：管理 Linux Chroot 的 GUI


![atoms](/data/attachment/album/202209/30/113824uz0ya5tabh2b2hh3.png)


Atoms 是一个 GUI 工具，它可以方便地创建和管理 Linux chroot 环境。


它还支持与 [Distrobox](https://itsfoss.com/distrobox/) 的集成。因此，你还可以使用 Atoms 管理容器。


但是，开发人员提到，该工具不提供与 Podman 的无缝集成，并解释其用途：“*它的目的只是允许用户在新环境中打开 shell，无论是 chroot 还是容器。*”


如果你正在寻找这样的东西，你可能需要试试 [pods](https://github.com/marhkb/pods)。


### Atoms 的特性


![atoms options](/data/attachment/album/202209/30/113825bpadwo2e07xzto9p.png)


Atoms 是一个简单的 GUI 程序，可让你为多个受支持的 Linux 发行版创建 chroot 环境。


让我重点介绍支持的发行版及其提供的功能：


* 浏览创建的 chroot 文件。
* 能够选择要露出的挂载点。
* 访问控制台。
* 支持的 Linux 发行版包括 Ubuntu、Alpine Linux、Fedora、Rocky Linux、Gentoo、AlmaLinux、OpenSUSE、Debian 和 CentOS。


它非常易于使用。从该应用中创建一个 atom 只需一键。（LCTT 校注：该应用创建的每一个 chroot 环境称之为一个“atom”。）


你所要做的就是为该 atom 命名，然后从可用选项列表中选择 Linux 发行版（Ubuntu 作为上面截图中的选择）。它会在几分钟内下载镜像并为你设置 chroot 环境，如下所示。


![atom config](/data/attachment/album/202209/30/113826u8p5oi8hazsle5jh.png)


完成后，你可以访问选项启动控制台以管理 chroot 环境，或自定义/删除它。


![atoms option](/data/attachment/album/202209/30/113826eoh4oai734lzt447.png)


要访问控制台，请转到另一个选项卡菜单。非常顺滑的体验，并且运行良好，至少对于我测试过的 Ubuntu 而言。


![atoms console](/data/attachment/album/202209/30/113827co8pdqqm15sr5msq.png)


此外，你可以分离控制台以将其作为单独的窗口进行访问。


![atoms detach console](/data/attachment/album/202209/30/113828assrh3ljtlr44m16.png)


### 在 Linux 上安装 Atom


你可以使用 [Flathub](https://flathub.org/apps/details/pm.mirko.Atoms) 上提供的 Flatpak 包在任何 Linux 发行版上安装 Atoms。如果你是 Linux 新手，请遵循我们的 [Flatpak 指南](https://itsfoss.com/flatpak-guide/)。


**注意：** 最新的稳定版本 **1.0.2** 只能通过 Flathub 获得。


要探索其源代码和其他详细信息，请访问其 [GitHub 页面](https://github.com/AtomsDevs/Atoms)。


### 总结


Linux 命令行功能强大，你几乎可以使用这些命令执行任何操作。但并不是每个人都对它感到满意，因此像 Atoms 这样的工具通过提供 GUI 使其更加方便。


Atoms 并不是唯一的这类工具。还有 [Grub Customizer](https://itsfoss.com/grub-customizer-ubuntu/) 可以更轻松地更改本来通过通过命令行完成的 [Grub](https://itsfoss.com/what-is-grub/) 配置。


我相信还有更多这样的工具。


*你如何看待使用像 Atom 这样的 GUI 程序来管理 Chroot 环境？在下面的评论中分享你的想法。*




---


via: <https://itsfoss.com/atoms-chroot-tool/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lkxed](https://github.com/lkxed) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
A chroot environment provides you with isolation for testing in Linux. You do not need to take the hassle of creating a virtual machine. Instead, if you want to test an application or something else, create a chroot environment that allows you to select a different root directory.

So, with chroot, you get to test stuff without giving the application access to the rest of the system. Any application you install or anything you try gets confined to that directory and does not affect the functioning of your operating system.

Chroot has its perks, which is why it is a convenient way to test things for various users (especially system administrators).

Unfortunately, all of this works via the Linux terminal. What if you can have a graphical user interface to make things a little easy? That’s where “**Atoms**” comes in.

## Atoms: A GUI to Manage Linux Chroot(s)

Atoms is a GUI tool that makes it convenient to create and manage Linux chroot environments.

It also supports integration with [Distrobox](https://itsfoss.com/distrobox/). So, you can also manage containers using Atoms.

However, the developers mention that this tool does not offer seamless integration with Podman, explaining its purpose: “*its purpose is only to allow the user to open a shell in a new environment, be it chroot or container.”*

If you are looking for such a thing, you might want to check out [pods](https://github.com/marhkb/pods).

## Features of Atoms

Atoms is a straightforward GUI program that lets you create chroot environments for several supported Linux distributions.

Let me highlight the supported distros along with their functionalities offered:

- Browse files for the chroot(s) created.
- Ability to choose mount points to expose.
- Access to the console.
- Supported Linux distros include Ubuntu, Alpine Linux, Fedora, Rocky Linux, Gentoo, AlmaLinux, OpenSUSE, Debian, and CentOS.

It is incredibly easy to use. Creating an atom from within the app is a one-click process.

All you have to do is name the atom, and select the Linux distribution from the list of available options (Ubuntu as the selection in the screenshot above). It downloads the image and sets up the chroot environment for you in a few minutes as shown below.

Once its done, you can access the options to launch the console to manage the chroot environment or customize/delete it.

To access the console, head to the other tab menu. Pretty seamless experience, and works well, at least for Ubuntu that I tested.

Additionally, you can detach the console to access it as a separate window.

## Installing Atoms on Linux

You can install Atoms on any Linux distribution with the Flatpak package available on [Flathub](https://flathub.org/apps/details/pm.mirko.Atoms). Follow our [Flatpak guide](https://itsfoss.com/flatpak-guide/) if you are new to Linux.

**Note:** The latest stable version **1.0.2** is only available via Flathub.

To explore its source code and other details, head to its [GitHub page](https://github.com/AtomsDevs/Atoms).

## Conclusion

The Linux command line is powerful and you can do almost anything with the commands. But not everyone feels comfortable with it and thus tools like Atoms make it more convenient by providing a GUI.

And Atoms is not the only one of this kind. There is [Grub Customizer](https://itsfoss.com/grub-customizer-ubuntu/) that makes it easier to change [Grub](https://itsfoss.com/what-is-grub/) configuration which can be done with the command line.

I believe there are many more such tools out there.

*What do you think about using a GUI program like Atom to manage Chroot environments? Share your thoughts in the comments down below.*