2025-08-24 06:49:42 -03:00
|
|
|
|
### Install Distrobox and Podman PERMANENT on Steam Deck >= 3.5
|
2024-02-01 21:30:06 +00:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
**1 - Modify $PATH for binaries**
|
|
|
|
|
|
First, verify if ~/.bashrc contains the necessary $PATH modification. Open the file with:
|
2025-08-24 13:28:13 +02:00
|
|
|
|
`nano ~/.bashrc`
|
2025-08-24 06:49:42 -03:00
|
|
|
|
Add the following line if it’s not already there:
|
|
|
|
|
|
`export PATH=/home/deck/.local/bin:$PATH`
|
2024-03-25 18:54:48 +01:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
**2 - Install and configure Distrobox**
|
2025-08-24 13:28:13 +02:00
|
|
|
|
To install Distrobox in the defined $PATH, use one of the following commands
|
|
|
|
|
|
depending on whether you need the latest version (`--next`) or not:
|
|
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
`curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sh -s -- --prefix $HOME/.local`
|
2024-03-25 18:54:48 +01:00
|
|
|
|
|
2025-08-24 13:28:13 +02:00
|
|
|
|
After installing, create the file `~/.distroboxrc` if it doesn't already exist.
|
|
|
|
|
|
Open it with:
|
|
|
|
|
|
|
|
|
|
|
|
`nano ~/.distroboxrc`
|
|
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
Add the following lines to configure Distrobox:
|
2024-03-25 18:54:48 +01:00
|
|
|
|
|
2025-08-24 13:28:13 +02:00
|
|
|
|
```sh
|
2025-08-24 06:49:42 -03:00
|
|
|
|
# Ensure the graphical apps can talk to the Xwayland session
|
2024-05-01 16:52:41 +02:00
|
|
|
|
xhost +si:localuser:$USER >/dev/null
|
2025-08-24 06:49:42 -03:00
|
|
|
|
# Force the use of pulseaudio inside the container
|
2023-09-12 07:03:36 +00:00
|
|
|
|
export PIPEWIRE_RUNTIME_DIR=/dev/null
|
2025-08-24 06:49:42 -03:00
|
|
|
|
# Needed to ensure distrobox can find the podman binary we previously downloaded
|
|
|
|
|
|
export PATH=/home/deck/.local/bin:$PATH
|
|
|
|
|
|
export PATH=$PATH:/home/deck/.local/bin
|
2023-09-12 07:03:36 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
**3 - Install and configure Podman**
|
|
|
|
|
|
To install Podman, download the latest version from the GitHub releases page:
|
|
|
|
|
|
[](https://github.com/89luca89/podman-launcher/releases)
|
2025-08-24 13:28:13 +02:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
`curl -L -o /home/deck/Downloads/podman-launcher-amd64 https://github.com/89luca89/podman-launcher/releases/download/v0.0.5/podman-launcher-amd64`
|
|
|
|
|
|
|
|
|
|
|
|
Next, move and rename the Podman binary with ROOT permissions to the $PATH:
|
2025-08-24 13:28:13 +02:00
|
|
|
|
|
|
|
|
|
|
`mv /home/deck/Downloads/podman-launcher-amd64 /home/deck/.local/bin/podman`
|
2023-09-12 07:03:36 +00:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
Then, make Podman executable:
|
2025-08-24 13:28:13 +02:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
`chmod +x /home/deck/.local/bin/podman`
|
2023-09-12 07:03:36 +00:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
Configure the deck user’s UID and GID mapping with the following commands:
|
2025-08-24 13:28:13 +02:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
`sudo touch /etc/subuid /etc/subgid`
|
2025-08-24 13:28:13 +02:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
`sudo usermod --add-subuid 100000-165535 --add-subgid 100000-165535 deck`
|
2023-09-12 07:03:36 +00:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
**4 - Configure Distrobox Icon folder** - (if you install distrobox with sudo)
|
2025-08-24 13:28:13 +02:00
|
|
|
|
To ensure Distrobox can store its icons correctly, set the proper permissions
|
|
|
|
|
|
on the `/home/deck/.local/share/icons` folder with:
|
|
|
|
|
|
|
|
|
|
|
|
`chown deck:deck /home/deck/.local/share/icons`
|
2023-09-12 07:03:36 +00:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
**5 - Verify installations**
|
2025-08-24 13:28:13 +02:00
|
|
|
|
After the installation steps, verify that both Distrobox and Podman are properly
|
|
|
|
|
|
installed and configured. Use the following commands:
|
|
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
`which distrobox`
|
|
|
|
|
|
`which podman`
|
|
|
|
|
|
`distrobox --version`
|
|
|
|
|
|
`podman --version`
|
|
|
|
|
|
`podman info`
|
2023-09-12 07:03:36 +00:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
**6 - Create and test distros** - install pulseaudio within the distros
|
2025-08-24 13:28:13 +02:00
|
|
|
|
You can now create and test containers with Distrobox. To create and test a
|
|
|
|
|
|
ROOTLESS container, run:
|
|
|
|
|
|
|
|
|
|
|
|
`distrobox create --image docker.io/library/archlinux:latest --name arch`
|
|
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
For a ROOT container, use:
|
2025-08-24 13:28:13 +02:00
|
|
|
|
|
|
|
|
|
|
`distrobox create --image docker.io/library/archlinux:latest --name rarch --root`
|
2023-09-12 07:03:36 +00:00
|
|
|
|
|
2025-08-24 06:49:42 -03:00
|
|
|
|
You can either remove the created distros later or keep them for regular use.
|