Set up Microsoft Intune on Linux
Based on https://www.jdegoeij.com/posts/intune-ubuntu-24-04/
For Ubuntu 24.04
-
Using
sudo gnome-text-editor /etc/apt/sources.list.d/ubuntu.sources
, add this to the end of the file: In thept
server, pick the server that is closest to where you leaveTypes: deb URIs: http://pt.archive.ubuntu.com/ubuntu/ Suites: mantic Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: mantic-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
-
Install Microsoft Edge
-
Install Microsoft Intune dependencies
sudo apt install openjdk-11-jre libicu72 libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37
-
Install Microsoft Intune according to Microsoft's documentation
-
Reboot your computer
-
Go to Further instructions
For older versions of Ubuntu
- https://learn.microsoft.com/en-us/mem/intune/user-help/enroll-device-linux
-
Go to Further instructions
Further instructions
Setup PAM policy
Required if your organization requires some password complexity
-
Use
sudo gedit /etc/pam.d/common-password
to replacepassword requisite pam_pwquality.so retry=3
withpassword requisite pam_pwquality.so retry=3 minlen=8 dcredit=-1 ocredit=-1 ucredit=-1 lcredit=-1
Troubleshooting
Your password complexity still shows as non-compliant
-
sudo rm /run/intune/1000/pwquality
- Open Intune, and refresh the issues.
Unknown problems
You can diagnose further problems by looking at what Microsoft Intune is searching for in your computer.
Just use Linux's strace
command to check what calls are
being made by Microsoft Intune to the Linux kernel
intune-portal & sudo strace -p $! -e trace=\!poll,recvmsg,writev,write,read,shmget,shmat,shmctl,futex