How to enable Target Display Mode on an iMac in Linux?

How to enable Target Display Mode on an iMac in Linux?