TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Distrobox: Use any Linux distribution inside your terminal

424 pointsby denysoniqueabout 2 years ago

30 comments

blackpelicanabout 2 years ago
I&#x27;m really enjoying Distrobox. With it, I&#x27;ve been able to develop on my Steam Deck and use it as my primary and only device.<p>The Steam Deck default OS (Steam OS 3) is a heavily locked down variant of Arch with only a couple of writable directories. With Distrobox, I can run an Ubuntu environment from one of those directories, ensuring that when I install SDKs or tools, they&#x27;re being installed to a writable area of the OS but require no config to change what they think is intended install location.
评论 #35946459 未加载
评论 #35959653 未加载
评论 #35945716 未加载
FireInsightabout 2 years ago
Should include project name in title (distrobox). This is really a game changer for immutable distros. I use Fedora Kinoite and basically everything I use is in an Arch distrobox or flatpak. Best part is, you can just throw a box in the trash and create a new one with only stuff you need. Distrobox-assemble will simplify it further.
评论 #35945293 未加载
评论 #35944344 未加载
duckqlzabout 2 years ago
From the first line of the README:<p>&quot;Simply put it&#x27;s a fancy wrapper around podman or docker to create and start containers highly integrated with the hosts&quot;
评论 #35947928 未加载
anogrebattleabout 2 years ago
Love it! I&#x27;ve been evangelizing Distrobox in my lab. We do robotics and often have to interface with machines running outdated distros or outdated software. Distrobox has made it trivial to spin up containers running arbitrary versions of whatever we need, while keeping our host machines up to date. In fact, today I&#x27;m running hardware demos where I&#x27;m controlling an arm by dispatching commands through an ancient version of ROS that I set up with Distrobox.
edwintorokabout 2 years ago
I&#x27;ve been using this on top of both Ububtu and Fedora Silver blue, to run a Fedora toolbox, works nicely. There is also a host-exec script that allows to spawn commands outside the container while inside. E.g. it is not possible to run &#x27;podman&#x27; nested, but with host-exec can still run containers while inside distrobox (distrobox isn&#x27;t used for isolation, but for the ability to run a mutable OS of your choice).<p>There are a small number of programs, usually those that need root (such as &#x27;cpupower&#x27;) which also need to be run &quot;outside&quot;.
Paul-Craftabout 2 years ago
See also blendOS, where you can also install Android and web apps.<p><a href="https:&#x2F;&#x2F;www.linux-magazine.com&#x2F;Online&#x2F;News&#x2F;Arch-Based-blendOS-Features-Cool-Trick" rel="nofollow">https:&#x2F;&#x2F;www.linux-magazine.com&#x2F;Online&#x2F;News&#x2F;Arch-Based-blendO...</a>
评论 #35944347 未加载
ktayloraabout 2 years ago
Love distrobox. Use it on my daily driver. If you are running an Ubuntu LTS &#x2F; Debian stable &#x2F; PopOS as your main operating system (because you want stability), but want to run bleeding-edge gui applications in debian testing (or even unstable) in an isolated container, you can. Running GUI applications in Linux containers is usually non-trivial to set-up, but distrobox makes it painless. Install with apt, export to the host operating system with &#x27;distrobox-export --app blah&#x27;.
评论 #35954801 未加载
nixcraftabout 2 years ago
Interesting. I always used LXD. It supported many distros too. You can quickly spin up an LXD container that matches the desired cloud instance type. I can create EC2-like t2.micro instance on local Ubuntu&#x2F;Debian and see how my app would behave on a cloud instance locally on my workstation. LXD also supports GUI apps and NVIDIA GPU acceleration. I will test this one.
评论 #35944818 未加载
评论 #35945380 未加载
评论 #35948465 未加载
评论 #35944827 未加载
netzegoabout 2 years ago
For testing i prefer systemd-nspawn containers with mkosi. A neat tool for running your other fav. distro in a terminal. Works like a charm and integrates nicely in your system. Eg. logs and systemd services or CI testing.<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;systemd&#x2F;mkosi">https:&#x2F;&#x2F;github.com&#x2F;systemd&#x2F;mkosi</a><p>- man:systemd-nspawn(1)<p>- man:machinectl(1)
samarthr1about 2 years ago
How is it different from Toolbox? (<a href="https:&#x2F;&#x2F;github.com&#x2F;containers&#x2F;toolbox">https:&#x2F;&#x2F;github.com&#x2F;containers&#x2F;toolbox</a>)
评论 #35944380 未加载
评论 #35945160 未加载
评论 #35944566 未加载
valvixabout 2 years ago
Distrobox is amazing, been using it on silverblue to have all my coding in an arch container
puzzledobserverabout 2 years ago
I wonder how Distrobox compares to nix shell.<p>If I understand correctly, Distrobox makes it convenient to launch (and destroy) lightweight VMs on demand, while nix shell makes it convenient to drop into a shell with some package installed. The documentation around nix has unfortunately been unapproachable in my experience.<p>Of course, Flatpaks+Podman will be a learning curve, but I&#x27;m eager to try Silverblue+Distrobox on one of my computers.
评论 #35945081 未加载
NayamAmarsheabout 2 years ago
Distrobox is awesome! No need to fight with my Ubuntu based distro for new packages anymore. I just install everything in my arch box now and it works nicely.<p>Stability of Ubuntu with the power of pacman, definitely a great tool!
apexalphaabout 2 years ago
Does this support a full Ubuntu Desktop? At my job we test a lot of projects for which we require a load of (GUI) apps. Until now I&#x27;ve installed these in a VM and then reset the VM after the project so my host OS doesn&#x27;t get cluttered.<p>If Distrobox can give me a full desktop Ubuntu in a container in stead of a VM that would be very welcome.<p>Thanks for the post, I&#x27;m diving in!
评论 #35949344 未加载
评论 #35947115 未加载
Levitatingabout 2 years ago
If you want to actually use multiple distributions at once integrated tightly into each other (like using Ubuntu with AUR packages) I highly recommend <a href="https:&#x2F;&#x2F;bedrocklinux.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bedrocklinux.org&#x2F;</a>. It uses some chroot and symbolic link magic to share files across filesystems.
j16sdizabout 2 years ago
Who are the target audience?<p>For non-admin task, I don&#x27;t think there are much different between distro.<p>For admin task, this won&#x27;t go too far...
评论 #35944270 未加载
评论 #35944628 未加载
评论 #35944234 未加载
评论 #35944244 未加载
Vinnlabout 2 years ago
Does anyone know why Fedora Silverblue includes Toolbox instead of Distrobox by default?
评论 #35948672 未加载
评论 #35949286 未加载
beardogabout 2 years ago
For me the biggest selling point is being able to install things from official or more trustworthy sources than I can otherwise. For example Signal does not show any official way to run the desktop app on Fedora, but I trust the Archlinux community repo so I can just install it on an Arch distrobox environment and add a launcher for it to my bin. This beats the unofficial Flatpak in my opinion.
pongo1231about 2 years ago
It&#x27;s what allowed me to make the jump to NixOS without having to give up much - every userspace program that isn&#x27;t packaged up or has quirks along with anything gaming related where I consistently want the newest and greatest runs inside an Arch distrobox container. Can highly recommend!
weinzierlabout 2 years ago
This is an excellent puzzle piece for testing your software in different environments. What I&#x27;m looking for in addition to something like Distrobox is away to easily test with older kernel versions. Does anyone know a tool that makes this easy, easier than juggling VM&#x27;s manually?
cookiepersonabout 2 years ago
This is a good idea. Are there any down sides to using it? I feel like a proper implementation of this could reduce a lot of noise in the development experience. Some part of me wonders if you can brick your box with it or if there are less than obvious performance costs?
评论 #35947937 未加载
drKarlabout 2 years ago
The experimental Sandboxed Mode sounds interesting, there should be a dedicated fork focused on sandbox mode replicating QubesOS with containers rather than VMs.
omaniabout 2 years ago
I use LXD. I can spawn any distro I want. I also use GUI apps this way (including video&#x2F;audio eg firefox). I also use chezmoi for different HOME environments I want to have inside my LXD containers.
ocayabout 2 years ago
Distrobox is awesome! I exclusively use it for any linux development
johnchristopherabout 2 years ago
How does it handle EOL distros like Debian 7 for which packages are not available anymore ?<p>I need to compile the most recent version possible of rsync (or one with some specific zip support) for Debian 7 but I can&#x27;t install the build tools in Debian 7 in docker :&#x2F;. What I got so far:<p><pre><code> $ docker run -it debian&#x2F;eol:wheezy &#x2F;bin&#x2F;dash # apt-get update E: Method http has died unexpectedly! E: Sub-process http received a segmentation fault.</code></pre>
评论 #35946579 未加载
评论 #35945679 未加载
pm2222about 2 years ago
Extracting rootfs.tar and “systemd-nspawn -D &lt;rootfs-dir&gt;” is what I do. Pretty neat.
pmoriartyabout 2 years ago
How does this compare to Docker?
评论 #35945831 未加载
artemonsterabout 2 years ago
Also long before there was &quot;Junest&quot; that did same thing based on chroot
评论 #35945017 未加载
评论 #35945125 未加载
jq-rabout 2 years ago
As an occasional user of Multipass, how does Distrobox compare to it?
wheelerof4teabout 2 years ago
All wrong.<p>The only true Unix way is to use Slackware stable as base and build your own software from source. Bonus points for writing that source yourself.<p>&#x2F;s
评论 #35947412 未加载