-
Notifications
You must be signed in to change notification settings - Fork 376
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
Tins: Which tools do you recommend? #251
Comments
I'll look closer a bit later, here just some quick tips:
|
@mviereck thank you so much for taking time to give some tips! I thought a display manager is mandatory to start a desktop environment? To be honest my understanding of how the GUI startup process works and how the responsibilities of the different jobs are is quite limited as of now. Good to know GNOME3 is unstable in containers, will keep this in mind. Although there is no specific reason why I used it for my tests - it just seems to be the easiest starting point as its kind of the default desktop for Ubuntu ;) |
No, it is just a graphical login screen. You can as well switch to a tty, log in and run e.g. I want to point at a further setup possibility: Edit: Instead of running Xwayland in container, you can run it on host as well. TL;DR: I recommend to run |
@mviereck thank soooo much for all this insight! I will definetely give |
As an alternative, USBIP is a kernel module. I have successfully used it on Docker Desktop for Windows, in order to share arbitrary USB devices. Unfortunately, I found no open source client for Windows. See https://github.com/ghdl/docker/tree/master/usbip#readme |
Could you share some of your experience? |
It seems to be the same speed as native. Just try it out:
Edit: You can use x11docker to set up an X server only, without using Docker at all.
Running x11docker with option |
What can you tell regarding the (transitional) downsides of wayland?
Then again I read about XWayland, which gives support for Applications that only run on X. |
@toby63 I probably start playing with Xwayland & weston later today - with containerized Xfce. While I donβt have any experience with this yet, from what I understood Xwayland adds the compatibility layer here - so ideally itβs not necessary for Xfce to officially support Wayland cause it does not need to be aware of any difference. That is, of course, the working theory as of now. Weβll see if thatβs really the case in practice π€ͺ |
That's entirely correct. I should clarify one point:
I am only aware of issues with the closed source NVIDIA driver.
In practice I do not use Wayland but Xfce. So I can tell how to technically provide Wayland to a container, but not much about downsides in daily use.
There is some interesting discussion of the LXQt developers: lxqt/lxqt#10. |
@mviereck was playing with weston all day long, but was not able to sucessfully run it via Tins. When I execute the weston command in Terminal it works, but not when executed via Vala. Do you have any idea what might be wrong? This is the weston.ini created:
And the output produced by Tins:
|
Interesting, so everything is the same as you tried in terminal? It might be to obvious, but just in case, I see two potencial problems:
|
@toby63 I assume its related to environment variables, since everything is executed on host and under the same user. I'm currently passing the following environment variables programmatically:
Obviously these are different when weston is started in Terminal directly. But I'm not sure what is really needed by weston and Xwayland to work properly: some of them need to be different since we are actually creating a new X server, some of them maybe need to be the same because the new X server is nested - and others might be completely missing in the list above. The code which creates the environment and runs weston is located here: UPDATE: I guess the first issue to resolve is the |
Hmmm...I just read that Update: A little off-topic: |
For all I assume you try to run It seems that you are confusing the
This is a bit confusing, I'd assume it should say Some pitfalls:
|
Weston has three most important ways to run:
Currently you want to run Weston nested in X.
It generates:
Xwayland needs:
A container needs only |
Thanks @mviereck, the environment variables did the trick! Now weston and Xwayland start sucessfully on host, thanks to this code. Next I just need to figure out how to correctly map Xwayland into the container and then how to correctly start the desktop environment - hopefully that's not too hard anymore. Thank you very much for all your help guys - highly appreciate! |
If I understand correctly, you are mapping Edit: |
Closing here because we rather discuss in marbetschar/tins#16 (comment). |
Hi @mviereck ποΈ,
I'm currently tinkering with LXD to achieve something similar to what x11docker does (my approach is named "Tins"): The ultimate goal is to enable users to quickly setup a containerized desktop environment for development (the whole container is writeable, so its more of a lightweight virtual machine).
Although I was able to let the Display Manager rendering the login screen using
Xephyr
as you can see here, I'm puzzled how to go further. I'm overwhelmed by all the different tools involved, which problems they solve and whether they are suitable for my use case or not.As you have a lot of experience with these tools, I'd highly appreciate your opinion: Which ones would you choose today to achieve which part of the following goals?
Love to hear your thoughts!
Goals
Host
Container
Wish List
Container
The text was updated successfully, but these errors were encountered: