4nd3r / mkosi-intune

Intune for Linux feat. systemd-nspawn
https://learn.microsoft.com/en-us/mem/intune/user-help/enroll-device-linux
18 stars 4 forks source link

Add Wayland support #7

Closed glima closed 1 year ago

glima commented 1 year ago

Nothing like screen share tested yet with this, but at least Teams is there and functional. Flipping between X and Wayland might jeopardize the container's Intune registration (I lost it for reasons, the first time I manually went the Wayland route after having an image built and the second time around I went directly to Wayland-only, for Edge).

Random note: we should maybe add somewhere that mkosi up to version 13 work, but not 14. The fix might belong in mkosi itself or our repo.

Signed-off-by: Gustavo Lima Chaves gustavo.chaves@microsoft.com

4nd3r commented 1 year ago

Random note: we should maybe add somewhere that mkosi up to version 13 work, but not 14. The fix might belong in mkosi itself or our repo.

If you are brave enough to use something like this (in this repo), you know what you are doing and know your way around. That's the reason I didn't include supported versions and left it for the users to figure out. "Tested only on Debian Sid with bleeding edge dependencies" also implies that things can break any time :smile:

glima commented 1 year ago

Hey, thank you. Well, I guess I'll keep it local/forked, for now. Feel free to link, if you think that brings value to others! This was also ran on bleeding edge Fedora 37 and the major pain there was mkosi 14 by default.

4nd3r commented 1 year ago

@glima added link to your fork. Please merge your changes to your fork's main branch.

glima commented 1 year ago

Done. Thank you! BTW, any luck with sharing camera on your end?

4nd3r commented 1 year ago

It should work if you Bind= all your /dev/video* devices. These devices are usually owned by root:video, so you should add your container user to video group. Make sure numeric ids in host and container for video group are the same or you have to hack things around a bit.

I want to leverage machinectl bind ... /dev/video0 --mkdir etc to add these devices dynamically, because names and number of these devices change as I change machines or dock/undock. But I met somekind of wall and I haven't had time to debug it more.