How to use any Linux distribution on one PC


You don’t need to dual-boot or switch between distros. Distrobox lets you install and run any Linux distribution inside a virtual container or “box.” You can access that distro’s package manager and install apps (GUI or CLI) that run within your native distros desktop space.

How I stopped distro hopping

A few years ago, I suffered from a kind of “shiny object” syndrome for Linux distributions. Instead of installing and setting up an OS and using it daily for work, I kept switching to every new distro I came across. I later found out it’s actually fairly common among Linux hobbyists. So common, in fact, that there’s a name for it. It’s called “distro hopping.”

Some Linux Distro screens. Credit: Lucas Gouveia / How-To Geek

The weird part is that most of the Linux distros I hopped to and from were all based on Debian. When I eventually decided to settle on one setup, I realized that I was chasing aesthetics and customization with my distro hopping hobby. It was an interesting realization because the community taught me that I could customize any distro to look like any other. I could just swap out the desktop environment, the lock screen, the bootloader, and everything in between.

Linux mascot jumping between large bouncing icons of different Linux distributions.

What I can’t hot swap is the default package manager and how the system handles updates. Debian and Debian-based systems, for example, use the APT package manager. The official repos for this package manager have far fewer packages than the official Arch Linux repos. The apt packages are typically not up-to-date either. With Arch and the Arch User Wiki (AUR) in particular, you get access to the latest versions of twice as many packages. I also favor Arch’s pacman package manager because it’s much faster and has better features.

Boxes labeled A, P, and T with Pac-Man beside them and the Tux penguin behind them. Credit: 

So if I could find a way to access my favorite package managers on any Linux system, I would have no reason to distro hop. That’s exactly what I did.

Running Linux boxes inside a Linux system

Docker and Podman are container engines which allow you to run services and applications inside containers or boxes. Instead of installing an app on your machine, you can run it inside an isolated sandbox which contains the app needs (libraries, dependencies, configs, everything). That’s what Docker or Podman do.

Illustration of the Docker logo, featuring a stylized whale carrying containers and a NAS server. Credit: Lucas Gouveia/How-To Geek | pixalane/Aozorastock

It takes an image (which acts like a template or a recipe) and spins up a container based on it. The image can be anything. It doesn’t have to be an app or a service. It can be an entire Linux operating system.

Distrobox is a Linux designed expressly for this job. It uses Docker or Podman to spin up Linux boxes. This is different from a virtual machine because Distrobox is not emulating hardware or running a separate kernel. It’s working off the native host kernel, so it gives you near-native performance.

Several Distrobox boxes open on a desktop. Credit: Distrobox

All you need to do is open a terminal, enter a single command to create a new Linux box, and enter it. You can run apps (GUI or CLI) directly from the terminal using the display sockets of your host desktop. Graphical apps will pop up in a separate window on your desktop.

You can use those apps normally just like you would native apps because the Linux container (by default) has access to your Home directory. So all your files are accessible within the Distrobox container.

Setting up Distrobox

You’ll need to install Docker or Podman before you can run Distrobox. If you already have Docker or Podman installed, you can skip this step. I use Docker regularly, so I’ll show you how to set up Distrobox with Docker. You can use Podman, if you like.

On Arch systems, you can install Docker and Docker Compose with the following command:

sudo pacman -S docker

On Debian and Fedora systems, try this:

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

These commands run an official Bash script from Docker that conveniently installs and starts the Docker engine.

Let’s test if Docker is working properly.

sudo docker run hello-world
The Hello World Docker container being run on an Ubuntu server.

If everything goes well, you should see a message confirming that Docker is running as expected. Now let’s get Distrobox.

On Debian and Ubuntu systems, run this command to install Distrobox.

sudo apt install distrobox

Arch and Fedora have Distrobox in the official repos.

Creating a Linux box and running apps

To create a new Distrobox container, you just need to know the name of the distro and the version number. For rolling distros, you can just type “latest” next to the distro’s name. For example, you can create a new Arch Linux box with the following command.

distrobox create --name archbox --image archlinux:latest
An Arch Linux box created with Distrobox.

You can give the container any name next to the --name flag. Remember that name because you’ll need it to enter the container.

distrobox enter archbox

You can now install apps from the official pacman repos or from the Arch User Repository and run them within this same terminal.

To create an Ubuntu box, you can run a command like this.

distrobox create --name my-ubuntu --image ubuntu:22.04

This command will get you a Fedora Box.

distrobox create --name my-fedora --image fedora:latest

Type distrobox stop container_name, to stop a distro container. You can delete a box with the distrobox rm container_name command. You can stop a container with distrobox stop container_name. Also, you can get a list of all installed boxes with distrobox list.

A list of Distrobox containers.


There’s no need to install a new Linux operating system just to access its repos and package manager. Distrobox makes it incredibly simple to create as many Linux boxes as you need. You can even run multiple Linux distros side-by-side.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Spotify aims to provide a consistent listening experience that uses minimal data. As a result, your audio quality might be less than ideal, especially if you’re using a pair of high-fidelity headphones or high-end speakers. Here’s how to fix that.

Switch audio streaming quality to Very High or Lossless

The default audio streaming quality in both the mobile and desktop Spotify apps is set to Automatic, which usually keeps the audio quality at Normal, which is only 96 Kbps. Even though Spotify uses the Ogg Vorbis codec, which is superior to MP3, OGG files exhibit slight (but noticeable) digital noise, poor bass detail, dull treble, and a narrow soundstage at 96 Kbps.

Even worse, Spotify is aggressive about adjusting the automatic bitrate. Even though 4G is more than fast enough to stream high-quality OGG files, even with a weak signal, Spotify may still drop the quality to Low, which has a bitrate of just 24 Kb/s. You will notice such a sharp drop in quality, even on a pair of bottom-of-the-barrel headphones.

To rectify this, open the Spotify app, tap your user image, open “Settings and privacy,” and tap the “Media Quality” menu. Once there, set Wi-Fi streaming quality and cellular streaming quality to “Very high” or “Lossless.”

I recommend setting cellular streaming quality to Very high and reserving Lossless for Wi-Fi, since lossless streaming is very data-intensive. One hour of streaming lossless files can take up to 1GB of data, as well as a good chunk of your phone’s storage, because Spotify caches files you’re frequently streaming. Besides, you’ll struggle to notice the difference unless you’re listening to music on a wired pair of high-end headphones or speakers; wireless connection just doesn’t have the bandwidth needed to convey the full fidelity of Spotify lossless audio.

You might opt for High quality if you have a capped data plan, but I recommend doing so only if you stream hours upon hours’ worth of music every single day over a cellular network. For instance, I burn through about 8 GB of data per month on average while streaming about two hours of very high-quality music over a cellular network each day.

Illustration of a headphone with various music icons around.


How Audio Compression Works and Why It Can Affect Your Music Quality

Feeling the squeeze when listening to your favorite song?

Set audio download quality to Very high or Lossless

If you tend to download songs and albums for offline listening, you should also set the audio download quality to “Very high” or “Lossless.” This setting is located just under the audio streaming quality section.

The audio download quality menu in Spotify's mobile app.

If you’ve got enough free storage on your phone, opt for the latter, but if you’d rather save storage space, set it to Very high. You’ll hardly hear the difference, but lossless files are about five times larger than the 320 Kb/s OGG files Spotify offers at its Very high quality setting, and they can quickly fill up your phone’s storage.

Adjust video streaming quality at your discretion

The last section of the Media quality menu is Video streaming quality. This sets the quality of video podcasts and music videos available for certain songs. Since I care about neither, I set it to “Very high” on Wi-Fi and “Normal” on cellular, but you should tweak the two options at your discretion because songs sound notably better at higher video streaming quality levels.

If you often watch videos over cellular and have unlimited data, feel free to toggle video quality to very high.

Make sure Data Saver mode is disabled

Even if your audio quality is set to Very high or Lossless, Spotify will switch to low-quality streaming if the app’s Data saver mode is enabled. This option is located in the Data saving and offline menu. Open the menu, then set it to “Always off,” or choose “Automatic” to have Spotify’s Data Saver mode kick in alongside your phone’s Data Saver mode.

You can also enable volume normalization and play around with the built-in equalizer

Spotify logo in the center of the screen with an equalizer in front. Credit: Lucas Gouveia / How-To Geek

Last but not least, there are two additional features you can play with to improve your listening experience. The first is volume normalization, which sets the same loudness for every track you’re listening to. This can be handy because different albums are mastered at different loudness levels, with newer music usually being louder.

Since I’m an album-oriented listener, I keep the option disabled. I can just play an album and set the audio volume accordingly, and I don’t really mind louder songs when listening to playlists, artists, or song radios.

But if you can’t stand one song being quiet and the next rattling the windows, visit the Playback menu, enable “Volume normalization,” and set it to “Quiet” or “Normal.” The “Loud” option can digitally compress files, and neither Spotify nor I recommend using it. This also happens with “Quiet” and “Normal,” since both adjust the decibel level of the master recording for each song, but the compression level is much lower and extremely hard to notice.

Before I end this, I should also mention that you can access the equalizer directly from the Spotify app, where you can fine-tune your music listening experience or pick one of the available equalizer presets. If your phone has a built-in equalizer, Spotify will open it; if it doesn’t, you can use Spotify’s. On my phone (a Samsung Galaxy S21 FE), I can only use One UI’s built-in equalizer.

To open the equalizer, open “Playback,” then hit the “Equalizer” button. Now you can equalize your audio to your heart’s content.


Adjusting just a few settings can have a drastic impact on your Spotify listening experience. If you aren’t satisfied with Spotify’s sound quality, make sure to adjust the audio before jumping ship. You should also check the sound quality settings from time to time, as Spotify can reset them during app updates.​​​​​​​

Three phones with a Spotify screen and the logo in the center.


These 8 Spotify Features Are My Favorite Hidden Gems

Look for these now.



Source link