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

Problems running the built image on arch #15

Open stlaz opened 1 month ago

stlaz commented 1 month ago

It seems like there are several expectations, some of them a bit odd, that either nspawn or the image itself have.

I was trying to run the image but I was getting a 1 exit code. Checking the journal in turns shows that one should create a couple files/directories:

~/.tmux.conf # install tmux, run it and call `tmux show -g > ~/.tmux.conf`
~/Desktop  ~/Documents # just `mkdir` them; maybe you also need Downloads, I had that one already
/run/pcscd/pcscd.comm # install `scsclite ccid` and `systemctl start pcscd`

After this I was able to start the machine and log into it.

However, when I try to run the intune-portal, the app crashes with:

thread 'main' panicked at intune-portal/src/main.rs:21:17:
Unable to initialize GTK+, make sure GTK3 is installed: BoolError { message: "Failed to initialize GTK", filename: "/home/vscode/.cargo/registry/src/pkgs.dev.azure.com-e85e406ce28526e8/gtk-0.18.1/src/rt.rs", function: "gtk::rt::init", line: 141 }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

I wasn't able to get out of that one yet. I'm using the Wayland build of the image.

stlaz commented 1 month ago

Turns out that intune-portal is not yet wayland ready. Installing xorg-xwayland on the master and restarting sway fixed the issue.

4nd3r commented 1 month ago

Yeah, sorry about that, but this repo is just for the reference.

Tho I should really prefix bind definitions with -, which makes them optional.

I'll look into it "soon" (probably next week, when I'm back from vacation and have to rebuild anyway).

stlaz commented 1 month ago

No worries, it's just something I noticed. Otherwise this repo helped me greatly, many thanks for sharing all this! 🎉

4nd3r commented 1 month ago

Went to change one thing, but in the end did somewhat major changes, see https://github.com/4nd3r/mkosi-intune/commit/5c1b84869f5651308bb47425e20a484c8898f2cf.

@stlaz If you have a moment, and since you are using Wayland, can you please test?

Also ping to @glima.

glima commented 2 weeks ago

Hey, thanks for that Ander.

However, I save mkosi-intune reevaluations to windows of actual failure in my current setup (since I would have to re-create the env anyway). It's been a record success window length here, maybe > 6mo. Not touching that for now, hehe.

When things go south, I'll take a look.

Best, Gustavo.

On Fri, Aug 9, 2024 at 11:28 PM Ander Punnar @.***> wrote:

Went to change one thing, but in the end did somewhat major changes, see 5c1b848 https://github.com/4nd3r/mkosi-intune/commit/5c1b84869f5651308bb47425e20a484c8898f2cf

@stlaz https://github.com/stlaz If you have a moment, and since you are using Wayland, can you please test?

Also ping to @glima https://github.com/glima.

— Reply to this email directly, view it on GitHub https://github.com/4nd3r/mkosi-intune/issues/15#issuecomment-2279685321 or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQQ2O6SHTDX4RIFGQWBL3ZQWXHPBFKMF2HI4TJMJ2XIZLTSSBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLAVFOZQWY5LFVIZTSNRRGI2TONRYG6SG4YLNMWUWQYLTL5WGCYTFNSWHG5LCNJSWG5C7OR4XAZNMJFZXG5LFINXW23LFNZ2KM5DPOBUWG44TQKSHI6LQMWVHEZLQN5ZWS5DPOJ42K5TBNR2WLKJUG4ZTKMJWG4YTBAVEOR4XAZNFNFZXG5LFUV3GC3DVMWVDENBUGIZTKOBXG44IFJDUPFYGLJLMMFRGK3FFOZQWY5LFVIZTSNRRGI2TONRYG6TXI4TJM5TWK4VGMNZGKYLUMU . You are receiving this email because you were mentioned.

Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

-- Gustavo Lima Chaves