You are not logged in.

#1 2023-08-09 12:46:08

25pwn
Member
Registered: 2023-01-22
Posts: 26

How do I pass a virtual terminal to a container?

It's possible to run eg.

sddm

or

dbus-run-session startplasma-wayland

to make programs run on Virtual Terminals. How do I do the same from within a container?

Last edited by 25pwn (2023-08-09 12:59:00)

Offline

#2 2023-08-10 17:08:38

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,453

Re: How do I pass a virtual terminal to a container?

Accessing high-level graphics from "within" a container is typically not done, because it defeats the purpose of containerization. A container is not a virtual machine, it's an isolated process launched from a self-contained image.

Perhaps this is more of an X-Y problem: what are you actually trying to achieve?

Offline

#3 2023-08-12 10:33:10

25pwn
Member
Registered: 2023-01-22
Posts: 26

Re: How do I pass a virtual terminal to a container?

I'm trying to write a general script for running containerized sessions. One of the features I want is graphical sessions eg. get a graphical session running on VTn

I'm trying to do this instead of sharing the wayland socket etc. because that requires more integration with the host. Doing this probably involves sharing /dev/dri, /sys etc. which kind of defeats the point of containerization but I want the container to be as independent to what's running on the host as possible

distrobox and x11docker can run sessions like what I'm trying to do if you create display manager entries(distrobox, x11docker) and launch them from a display manager. I've been trying to recreate this but haven't been successful yet.

Last edited by 25pwn (2023-08-12 10:34:22)

Offline

Board footer

Powered by FluxBB