distrobox icon indicating copy to clipboard operation
distrobox copied to clipboard

[Discussion] Trying to understand why intune-portal doesn't work inside of distrobox

Open rayzorben opened this issue 2 years ago • 16 comments

I am wanting to use intune-portal within distrobox, primarily for isolation, but also to be able to connect to my corporate network in another distro.

Everything works, I installed all of the required packages, but no matter what I try, the intune app somehow is not detecting that it is installed or whatever program it needs is not installed.

After authenticating, this button should say something like "Register Device". But instead it thinks it needs to get an app.

image

Unfortunately after clicking on Get App all I get is a blank window and cannot proceed beyond this

image

I have tried strace for file activity to see if it is checking for a file and not finding it, but I do not see anything.

I've seen similar projects such as mkosi-intune which uses nspawn but i'm not successful in getting those working, so I was hoping distrobox would be the answer. I have tried using those as a model to what to install inside of my distrobox container, but also have not been successful.

rayzorben avatar Feb 14 '23 21:02 rayzorben

Hi @rayzorben

primarily for isolation

Keep in mind distrobox is not about isolation, quite the contrary!

Regarding the app issue, is it trying to use the web browser or stuff like this? You can try adding xdg-open to the container by using

sudo ln -s /usr/bin/distrobox-host-exec /usr/local/bin/xdg-open

and try again


Also keep in mind, if this works as a VPN, you will need a rootful container to make it work

89luca89 avatar Feb 25 '23 08:02 89luca89

Hi @rayzorben

primarily for isolation

Keep in mind distrobox is not about isolation, quite the contrary!

Maybe I used the wrong word. By isolation I didn't mean to keep it from seeing the host. I meant I want the ability to install apps inside of the distrobox and if I don't need it anymore, just blow it away.

Regarding the app issue, is it trying to use the web browser or stuff like this? You can try adding xdg-open to the container by using

sudo ln -s /usr/bin/distrobox-host-exec /usr/local/bin/xdg-open

and try again

I don't think it is trying to use the web browser. I assume it is doing some check to see if an app is installed (the only thing I can think of is the app itself intune-portal, and the dialog is a generic intro page that ends up calling back into itself after authentication).

Either way, I assume you mean to do that in the host, which I did, but it did not solve the issue :(

Also keep in mind, if this works as a VPN, you will need a rootful container to make it work

It is not a VPN, but I will try a rootful container anyway and see if it works there. edit: didnt work. I am running docker, and I did a clone --root and enter --root and same issue.

rayzorben avatar Feb 25 '23 17:02 rayzorben

Either way, I assume you mean to do that in the host, which I did, but it did not solve the issue :(

No it was meant to be done on the guest This was to have xdg-open work from the guest directly on the host

89luca89 avatar Feb 27 '23 18:02 89luca89

I tried it on the guest as well, with no luck.

On Mon, Feb 27, 2023 at 10:08 AM Luca Di Maio @.***> wrote:

Either way, I assume you mean to do that in the host, which I did, but it did not solve the issue :(

No it was meant to be done on the guest This was to have xdg-open work from the guest directly on the host

— Reply to this email directly, view it on GitHub https://github.com/89luca89/distrobox/issues/625#issuecomment-1446809554, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3BD2VBILCEXHCZCXEPPO3WZTUTNANCNFSM6AAAAAAU4BNMO4 . You are receiving this because you were mentioned.Message ID: @.***>

rayzorben avatar Feb 27 '23 18:02 rayzorben

Was this ever solved? I'm running into this same exact issue. I have Fedora-38 and running Ubuntu-23 in the distrobox. Seeing this exact issue. Could this be because the drive has to be encrypted?

KonTy avatar Nov 11 '23 19:11 KonTy

I never solved it, but I did have my drive encrypted so I don't think that is it. Also if the drive isn't encrypted it fails during device registration.

I would still love a solution as my favorite distro is CachyOS but I have to be able to get my work done. Right now I am running Ubuntu 23.10 which works great.

rayzorben avatar Nov 11 '23 20:11 rayzorben

@rayzorben well, I just tried 3 distros and without Distrobox. I've tried Ubuntu21, latest Debien, Fedora-38 and Distrobox ubuntu23 in Distrobox on Fedora-38 and nothing works, I get the same error. If you launch it from a terminal you can see some errors, something about not retryable erorr in GTK_WIDGET something something. Basically I lost entire day with this issue, I wish I spent that time with my kids instead.

KonTy avatar Nov 12 '23 00:11 KonTy

You always get the GTK warning regardless, here is mine from a working Ubuntu 23.10. If you are running Ubuntu 22.04+ did you try installing openjdk-11-jre first? sudo apt install openjdk-11-jre?

image

rayzorben avatar Nov 12 '23 03:11 rayzorben

No I nuked it and went back to Windows.

KonTy avatar Nov 12 '23 17:11 KonTy

I'm having something similar happen with using quickGUI in an Ubuntu distro box on Nobara (Fedora 39 based). The app window is blank with nothing in it.

ItsRogueRen avatar Feb 22 '24 19:02 ItsRogueRen

I'm also experiencing this issue, would love to be able to resolve it. Would love to be provided with any info as to how one might approach debugging this problem.

deadmeu avatar Jun 29 '24 17:06 deadmeu

I never got it resolved, but since I run an Arch based distro, I switched to using this and it is working for me https://github.com/recolic/microsoft-intune-archlinux

rayzorben avatar Jun 29 '24 18:06 rayzorben