-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full containerized OS using containers #4383
Comments
AFAIK, none of these are absolutely essential, though some applications may misbehave without dbus. Well done for figuring out how to get pulseaudio installed instead of pipewire.
The initial resolution when starting a desktop session can be changed, ie:
The resolution is meant to be changed in response to changes to the browser window dimensions, not directly via BTW, you don't need to install these in a container:
|
I do need the audio. The problem is that even with a system dbus lqunched and pulseaudio installed instead of pipewire, audio isnt working at all :( For video, I will look into it, since it is absolutly ignoring my resolution settings and absolutly not doing dynamic scaling. That is why I tried to use xrandr to fix this issue without success |
So you're running as root inside the container? You may also want to set xpra/xpra/server/mixins/audio.py Line 35 in ba3d760
Since the xpra instance won't be interfering with another one since there aren't any.
What sort of scaling are you expecting it to do?
Oh, it just occurred to me that what you mean by "video" is the resolution of the virtual display. |
Describe the bug
I am currently trying to setup a full-containerized desktop (remote VM if you will) using xpra in the server-side. Audio is not working, and video is (for now at least) a mess (no full screen, stuck at 1280*720 50Hz, cursor not clicking were it is showing)
To Reproduce
wget -O /etc/yum.repos.d/xpra.repo https://raw.githubusercontent.com/Xpra-org/xpra/master/packaging/repos/Fedora/xpra.repo
xpra
andxpra-html5
, firefox, @xfceNow this is where things get weird :
if I run
xpra start-desktop --start-child=xfce4-session --exit-with-children=yes --daemon=no --bind-tcp=0.0.0.0:14500
and checks the logs,pulseaudio
complains it is not finding thesystem-dbus
and is failing to run:I supposed, based on this ticket (#3212) and an other one that is older where it was stated that 'pulseaudio' and all application where using their own "private" dbus to avoid messing with maybe currently running dbus.
Since we are in a container, I supposed that it needed at least the system dbus to be running. I therefore appended this command :
dbus-uuidgen > /var/lib/dbus/machine-id & dbus-daemon --system & && xpra start-desktop --start-child=xfce4-session --exit-with-children=yes --daemon=no --bind-tcp=0.0.0.0:14500
to first run a system dbus on the container.After that,
pulseaudio
stopped complaining about missing system dbus. It was complaining about missingmodule-x11
but a simplednf install pulseaudio-module-x11
fixed the error. Now I am stuck with :Any command, with XDR_RUNTIME_DIR manually set to a bunc of places (/run/xpra, /run/user/&{UID}/xpra, /tmp, /home/user/.xpra) fails with:
Funnly, cloning the xpra repo inside the containers and running the
pactl_impl.py
return sme informations:A lot (if not all) xfce plugins complains with errors of the like
GetManagedObjects() failed: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
For the video side, the xpra always starts with :
2024-10-11 14:11:52,645 setting dummy crtc and output 0 to:
2024-10-11 14:11:52,645 1280x1024 50Hz (339x271 mm, dpi=96)
2024-10-11 14:11:52,647 monitor 0 is 'VFB-0' 1280x1024
I tried using
dnf install xrandr && xrandr --output DUMMY0 --rate 60 --size 1920*1080
or other variations, but the browser wont acknoledge this. In fact, all I want is the OS to dynamically adapt to the size of the browser window :(System Information (please complete the following information):
Additional context
If you could explain how things works that would help me so much. I understand what dbus is for, what pulseaudio is, what xpra is. But I have a hard time undnerstanding how everything talks to each other nicely :(
I did read A LOT of issues in this repo (Almost every issue, from issue that could be sort-of related to ones that dont even link remotely to my problem) but I am still unsure how things work and why I am running into those problems
The text was updated successfully, but these errors were encountered: