Lesson 1 of 19 ↓
- 1.Fedora + Distrobox + Arch + AUR Setup Guide
- 2.Enabling Hibernate on Linux
- 3.A Practical Git Workflow
- 4.Useful Linux Commands & Tips
- 5.Mirroring Your Android Screen with Scrcpy
- 6.Downloading Media with Yt-dlp
- 7.Consistent C/c++ Style with Clang-format
- 8.Auto-mounting Drives at Boot
- 9.Customizing Grub
- 10.Linux Swap Files Explained
- 11.Zram: Compressed Swap in Ram
- 12.Custom App Launch Behavior Via .desktop Files
- 13.Custom Mime Icons in Gnome
- 14.Fixing Missing Dock Icons (startupwmclass)
- 15.Installing Questasim for Hdl Simulation
- 16.Building Python 2 From Source
- 17.Auto-Starting WhatsApp and Telegram (Minimized or Tray)
- 18.Custom Neovim Configuration Guide
- 19.Running Windows Applications on Linux Seamlessly with WinBoat (Docker)
2 min read
Fedora + Distrobox + Arch + AUR Setup Guide
This guide explains how to:
- Install Distrobox on Fedora
- Create an Arch Linux container
- Enable NVIDIA GPU support
- Install and use AUR inside Arch
- Export GUI applications back to Fedora
- Troubleshoot common errors
1) Install Distrobox on Fedora
sudo dnf install distroboxInstall Podman if not already installed:
sudo dnf install podmanVerify installation:
distrobox --version2) Create an Arch Linux Container
Create the container (recommended lowercase name):
distrobox create --name arch --image archlinux:latestIf you want NVIDIA GPU support (recommended for CUDA, AI, Gaming, or GPU rendering), create the container with explicit NVIDIA integration:
distrobox create \
--name arch \
--image archlinux:latest \
--nvidiaWhat --nvidia does:
- Mounts NVIDIA device files into the container
- Shares host NVIDIA driver libraries
- Enables CUDA / OpenGL / Vulkan acceleration inside Arch
⚠️ Requirements before using --nvidia:
- NVIDIA drivers must be correctly installed on Fedora (host).
nvidia-smimust work on the host system.- You must NOT use
sudo distrobox create(rootless is recommended).
Verify host GPU before creating container:
nvidia-smiIf this works on Fedora, GPU will work inside the container.
Enter the container:
distrobox enter arch3) First Time Arch Setup
Update system:
sudo pacman -SyuInstall build tools required for AUR:
sudo pacman -S base-devel git4) Install yay (AUR Helper)
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -siTest installation:
yay -S google-chrome5) Installing WhatsApp from AUR (Example)
Search for correct package name:
yay -S whatsapp-for-linuxIf prompted for clean build:
- Choose
Afor clean build - Press
qto exit diff view - Confirm with
Y
Launch application:
whatsapp-for-linux6) Export Arch Apps to Fedora
To make an installed Arch application available in Fedora menu:
distrobox-export --app whatsapp-for-linux7) NVIDIA GPU Usage Inside Container
Ensure NVIDIA driver works on Fedora host:
nvidia-smiInside Arch install utilities:
sudo pacman -S nvidia-utilsTest GPU:
nvidia-smiFor hybrid GPU systems (Optimus), force NVIDIA usage:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia program-name8) Common Mistakes & Troubleshooting
Mistake: Deleting ~/.cache During Setup
Do NOT run:
rm -rf ~/.cacheDistrobox stores required files in:
~/.cache/distrobox/If broken:
distrobox rm arch
rm -rf ~/.cache/distroboxThen recreate container.
Error: "crun: ptsname: Inappropriate ioctl for device"
Possible causes:
- Interrupted container setup
- Terminal session issue
Fix:
podman system resetOr simply reboot / logout-login.
9) Remove the Container
distrobox rm archKey Notes
- Arch inside Distrobox does NOT affect Fedora
- Home directory is shared
- GPU, sound, themes are integrated
- You can safely experiment with AUR
Comments
Loading the discussion…