this post was submitted on 25 Sep 2023
33 points (100.0% liked)

Linux

48184 readers
1343 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi all,

I use a wayland Gentoo system, but I want to run Lutris for gaming. I would like to do this with at least some degree of filesystem isolation, as Lutris seems to install dependencies on its own and it pollutes the system in ways I cannot track.

What is the best way to do this? is it possible to do in a chroot? or mount namespaces? will it give me a lot of trouble?

It seems that merely installing things in a chroot and running it is not enough.

top 7 comments
sorted by: hot top controversial new old
[–] InverseParallax@lemmy.world 14 points 1 year ago* (last edited 1 year ago)

I do this using lxc, all my environments are different, debian base, arch gaming and some browsing, Ubuntu for work, etc.

Look at lxc-create -t download

Then you just add permissions for the child os to access the x11 and dri and it's gorgeous.

[–] dark_stang@beehaw.org 7 points 1 year ago (1 children)

I guess the flatpak package would be the easiest, and most supported, option you have. You can use flatseal to restrict what permissions it has, including what directories it has access to.

[–] cyclohexane@lemmy.ml 2 points 1 year ago* (last edited 1 year ago) (1 children)

If I just use the flatpak as is, does it already provide filesystem isolation akin to a chroot? I dont need it to be incredibly secure, just some basic isolation is enough for me. I just want the installation to be easily reversible rather than having to track down installed files. Lutris installs a lot of stuff outside of the package manager, so I figured filesystem isolation would provide easy means of undoing everything it does

[–] dark_stang@beehaw.org 3 points 1 year ago

Flatpak can provide file system isolation, but not to the level of chroot. It provides a sandbox for things to run in and a way to distribute packages and dependencies. And it has a permission system to keep things in check. But with lutris, you may want to let it write to ~/Games/ or whenever you want your games at.

Maybe give the docs a skim for more details.

[–] wildbus8979@sh.itjust.works 5 points 1 year ago* (last edited 1 year ago)

Install it using the flatpack and tweak the desired access with FlatSeal

[–] rodbiren@midwest.social 3 points 1 year ago

Bottles has isolation. You can further that with the flatpak version of bottles.

[–] richardisaguy@lemmy.world 2 points 1 year ago

You can do that with distrobox, which uses podman