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:-
Add
focal
suite to thehttp://archive.ubuntu.com/ubuntu
repository -
Add
focal-security
to thehttp://security.ubuntu.com/ubuntu
repository
-
Add
-
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